GetConfigYAML fetches the raw config.yaml content.
()
| 127 | |
| 128 | // GetConfigYAML fetches the raw config.yaml content. |
| 129 | func (c *Client) GetConfigYAML() (string, error) { |
| 130 | data, err := c.get("/v0/management/config.yaml") |
| 131 | if err != nil { |
| 132 | return "", err |
| 133 | } |
| 134 | return string(data), nil |
| 135 | } |
| 136 | |
| 137 | // PutConfigYAML uploads new config.yaml content. |
| 138 | func (c *Client) PutConfigYAML(yamlContent string) error { |