mirror of
https://github.com/rancher/types.git
synced 2025-08-01 13:07:05 +00:00
generated changes
This commit is contained in:
parent
5020bf5159
commit
f2566f3a00
@ -98,6 +98,8 @@ type ClusterOperations interface {
|
||||
ByID(id string) (*Cluster, error)
|
||||
Delete(container *Cluster) error
|
||||
|
||||
ActionExportYaml(resource *Cluster) (*ExportOutput, error)
|
||||
|
||||
ActionGenerateKubeconfig(resource *Cluster) (*GenerateKubeConfigOutput, error)
|
||||
|
||||
ActionImportYaml(resource *Cluster, input *ImportClusterYamlInput) (*ImportYamlOutput, error)
|
||||
@ -148,6 +150,12 @@ func (c *ClusterClient) Delete(container *Cluster) error {
|
||||
return c.apiClient.Ops.DoResourceDelete(ClusterType, &container.Resource)
|
||||
}
|
||||
|
||||
func (c *ClusterClient) ActionExportYaml(resource *Cluster) (*ExportOutput, error) {
|
||||
resp := &ExportOutput{}
|
||||
err := c.apiClient.Ops.DoAction(ClusterType, "exportYaml", &resource.Resource, nil, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ClusterClient) ActionGenerateKubeconfig(resource *Cluster) (*GenerateKubeConfigOutput, error) {
|
||||
resp := &GenerateKubeConfigOutput{}
|
||||
err := c.apiClient.Ops.DoAction(ClusterType, "generateKubeconfig", &resource.Resource, nil, resp)
|
||||
|
10
client/management/v3/zz_generated_export_output.go
Normal file
10
client/management/v3/zz_generated_export_output.go
Normal file
@ -0,0 +1,10 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
ExportOutputType = "exportOutput"
|
||||
ExportOutputFieldYAMLOutput = "yamlOutput"
|
||||
)
|
||||
|
||||
type ExportOutput struct {
|
||||
YAMLOutput string `json:"yamlOutput,omitempty" yaml:"yamlOutput,omitempty"`
|
||||
}
|
Loading…
Reference in New Issue
Block a user