(name string, opts structs.ResourceUpdateOptions)
| 1061 | } |
| 1062 | |
| 1063 | func (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 | |
| 1078 | func (c *Client) SystemUninstall(name string, w io.Writer, opts structs.SystemUninstallOptions) error { |
| 1079 | err := fmt.Errorf("not available via api") |
nothing calls this directly
no outgoing calls
no test coverage detected