MCPcopy Create free account
hub / github.com/convox/rack / SystemResourceUpdate

Method SystemResourceUpdate

sdk/methods.go:1063–1076  ·  view source on GitHub ↗
(name string, opts structs.ResourceUpdateOptions)

Source from the content-addressed store, hash-verified

1061}
1062
1063func (c *Client) SystemResourceUpdate(name string, opts structs.ResourceUpdateOptions) (*structs.Resource, error) {
1064 var err error
1065
1066 ro, err := stdsdk.MarshalOptions(opts)
1067 if err != nil {
1068 return nil, err
1069 }
1070
1071 var v *structs.Resource
1072
1073 err = c.Put(fmt.Sprintf("/resources/%s", name), ro, &v)
1074
1075 return v, err
1076}
1077
1078func (c *Client) SystemUninstall(name string, w io.Writer, opts structs.SystemUninstallOptions) error {
1079 err := fmt.Errorf("not available via api")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected