-
Notifications
You must be signed in to change notification settings - Fork 158
/
config_var.go
24 lines (21 loc) · 1.08 KB
/
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
24
// 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, message string) (map[string]string, error) {
rh := RequestHeaders{CommitMessage: message}
var configVarRes map[string]string
return configVarRes, c.PatchWithHeaders(&configVarRes, "/apps/"+appIdentity+"/config-vars", options, rh.Headers())
}