forked from bgentry/heroku-go
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig_var.go
23 lines (20 loc) · 1023 Bytes
/
config_var.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// WARNING: This code is auto-generated from the Heroku Platform API JSON Schema
// by a Ruby script (gen/gen.rb). Changes should be made to the generation
// script rather than the generated files.
package heroku
// Get config-vars for app.
//
// appIdentity is the unique identifier of the ConfigVar's App.
func (c *Client) ConfigVarInfo(appIdentity string) (map[string]string, error) {
var configVar map[string]string
return configVar, c.Get(&configVar, "/apps/"+appIdentity+"/config-vars")
}
// Update config-vars for app. You can update existing config-vars by setting
// them again, and remove by setting it to nil.
//
// appIdentity is the unique identifier of the ConfigVar's App. options is the
// hash of config changes – update values or delete by seting it to nil.
func (c *Client) ConfigVarUpdate(appIdentity string, options map[string]*string) (map[string]string, error) {
var configVarRes map[string]string
return configVarRes, c.Patch(&configVarRes, "/apps/"+appIdentity+"/config-vars", options)
}