MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / GetConfigYAML

Method GetConfigYAML

internal/tui/client.go:129–135  ·  view source on GitHub ↗

GetConfigYAML fetches the raw config.yaml content.

()

Source from the content-addressed store, hash-verified

127
128// GetConfigYAML fetches the raw config.yaml content.
129func (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.
138func (c *Client) PutConfigYAML(yamlContent string) error {

Callers

nothing calls this directly

Calls 1

getMethod · 0.95

Tested by

no test coverage detected