Documentation ¶
Overview ¶
Copyright 2022 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2022 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2022 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func ApplyAutoscalingPolicy(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func ApplyCluster(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func ApplyWorkflowTemplate(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func AutoscalingPolicyHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (bool, error)
- func AutoscalingPolicyID(u *unstructured.Resource) (string, error)
- func AutoscalingPolicyToUnstructured(r *dclService.AutoscalingPolicy) *unstructured.Resource
- func ClusterHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (bool, error)
- func ClusterID(u *unstructured.Resource) (string, error)
- func ClusterToUnstructured(r *dclService.Cluster) *unstructured.Resource
- func DeleteAutoscalingPolicy(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- func DeleteCluster(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- func DeleteWorkflowTemplate(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- func GetAutoscalingPolicy(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func GetCluster(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func GetPolicyCluster(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func GetPolicyMemberCluster(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func GetWorkflowTemplate(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func ListAutoscalingPolicy(ctx context.Context, config *dcl.Config, project string, location string) ([]*unstructured.Resource, error)
- func ListCluster(ctx context.Context, config *dcl.Config, project string, location string) ([]*unstructured.Resource, error)
- func ListWorkflowTemplate(ctx context.Context, config *dcl.Config, project string, location string) ([]*unstructured.Resource, error)
- func SetPolicyCluster(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func SetPolicyMemberCluster(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func UnstructuredToAutoscalingPolicy(u *unstructured.Resource) (*dclService.AutoscalingPolicy, error)
- func UnstructuredToCluster(u *unstructured.Resource) (*dclService.Cluster, error)
- func UnstructuredToWorkflowTemplate(u *unstructured.Resource) (*dclService.WorkflowTemplate, error)
- func WorkflowTemplateHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (bool, error)
- func WorkflowTemplateID(u *unstructured.Resource) (string, error)
- func WorkflowTemplateToUnstructured(r *dclService.WorkflowTemplate) *unstructured.Resource
- type AutoscalingPolicy
- func (r *AutoscalingPolicy) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *AutoscalingPolicy) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
- func (r *AutoscalingPolicy) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *AutoscalingPolicy) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *AutoscalingPolicy) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *AutoscalingPolicy) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (bool, error)
- func (r *AutoscalingPolicy) ID(resource *unstructured.Resource) (string, error)
- func (r *AutoscalingPolicy) STV() unstructured.ServiceTypeVersion
- func (r *AutoscalingPolicy) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *AutoscalingPolicy) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- type Cluster
- func (r *Cluster) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Cluster) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
- func (r *Cluster) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Cluster) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Cluster) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Cluster) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (bool, error)
- func (r *Cluster) ID(resource *unstructured.Resource) (string, error)
- func (r *Cluster) STV() unstructured.ServiceTypeVersion
- func (r *Cluster) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Cluster) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- type WorkflowTemplate
- func (r *WorkflowTemplate) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *WorkflowTemplate) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
- func (r *WorkflowTemplate) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *WorkflowTemplate) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *WorkflowTemplate) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *WorkflowTemplate) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (bool, error)
- func (r *WorkflowTemplate) ID(resource *unstructured.Resource) (string, error)
- func (r *WorkflowTemplate) STV() unstructured.ServiceTypeVersion
- func (r *WorkflowTemplate) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *WorkflowTemplate) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyAutoscalingPolicy ¶
func ApplyAutoscalingPolicy(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func ApplyCluster ¶
func ApplyCluster(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func ApplyWorkflowTemplate ¶
func ApplyWorkflowTemplate(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func AutoscalingPolicyHasDiff ¶
func AutoscalingPolicyHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func AutoscalingPolicyID ¶
func AutoscalingPolicyID(u *unstructured.Resource) (string, error)
func AutoscalingPolicyToUnstructured ¶
func AutoscalingPolicyToUnstructured(r *dclService.AutoscalingPolicy) *unstructured.Resource
func ClusterHasDiff ¶
func ClusterHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func ClusterToUnstructured ¶
func ClusterToUnstructured(r *dclService.Cluster) *unstructured.Resource
func DeleteAutoscalingPolicy ¶
func DeleteCluster ¶
func DeleteWorkflowTemplate ¶
func GetAutoscalingPolicy ¶
func GetAutoscalingPolicy(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
func GetCluster ¶
func GetCluster(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
func GetPolicyCluster ¶
func GetPolicyCluster(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
func GetPolicyMemberCluster ¶
func GetPolicyMemberCluster(ctx context.Context, config *dcl.Config, u *unstructured.Resource, role, member string) (*unstructured.Resource, error)
func GetWorkflowTemplate ¶
func GetWorkflowTemplate(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
func ListAutoscalingPolicy ¶
func ListCluster ¶
func ListWorkflowTemplate ¶
func SetPolicyCluster ¶
func SetPolicyCluster(ctx context.Context, config *dcl.Config, u *unstructured.Resource, p *unstructured.Resource) (*unstructured.Resource, error)
func SetPolicyMemberCluster ¶
func SetPolicyMemberCluster(ctx context.Context, config *dcl.Config, u *unstructured.Resource, m *unstructured.Resource) (*unstructured.Resource, error)
func UnstructuredToAutoscalingPolicy ¶
func UnstructuredToAutoscalingPolicy(u *unstructured.Resource) (*dclService.AutoscalingPolicy, error)
func UnstructuredToCluster ¶
func UnstructuredToCluster(u *unstructured.Resource) (*dclService.Cluster, error)
func UnstructuredToWorkflowTemplate ¶
func UnstructuredToWorkflowTemplate(u *unstructured.Resource) (*dclService.WorkflowTemplate, error)
func WorkflowTemplateHasDiff ¶
func WorkflowTemplateHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func WorkflowTemplateID ¶
func WorkflowTemplateID(u *unstructured.Resource) (string, error)
func WorkflowTemplateToUnstructured ¶
func WorkflowTemplateToUnstructured(r *dclService.WorkflowTemplate) *unstructured.Resource
Types ¶
type AutoscalingPolicy ¶
type AutoscalingPolicy struct{}
func (*AutoscalingPolicy) Apply ¶
func (r *AutoscalingPolicy) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func (*AutoscalingPolicy) Delete ¶
func (r *AutoscalingPolicy) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
func (*AutoscalingPolicy) Get ¶
func (r *AutoscalingPolicy) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*AutoscalingPolicy) GetPolicy ¶
func (r *AutoscalingPolicy) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*AutoscalingPolicy) GetPolicyMember ¶
func (r *AutoscalingPolicy) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)
func (*AutoscalingPolicy) HasDiff ¶
func (r *AutoscalingPolicy) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func (*AutoscalingPolicy) ID ¶
func (r *AutoscalingPolicy) ID(resource *unstructured.Resource) (string, error)
func (*AutoscalingPolicy) STV ¶
func (r *AutoscalingPolicy) STV() unstructured.ServiceTypeVersion
func (*AutoscalingPolicy) SetPolicy ¶
func (r *AutoscalingPolicy) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
func (*AutoscalingPolicy) SetPolicyMember ¶
func (r *AutoscalingPolicy) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)
type Cluster ¶
type Cluster struct{}
func (*Cluster) Apply ¶
func (r *Cluster) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func (*Cluster) Get ¶
func (r *Cluster) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Cluster) GetPolicy ¶
func (r *Cluster) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Cluster) GetPolicyMember ¶
func (*Cluster) STV ¶
func (r *Cluster) STV() unstructured.ServiceTypeVersion
func (*Cluster) SetPolicy ¶
func (r *Cluster) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
func (*Cluster) SetPolicyMember ¶
func (r *Cluster) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)
type WorkflowTemplate ¶
type WorkflowTemplate struct{}
func (*WorkflowTemplate) Apply ¶
func (r *WorkflowTemplate) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func (*WorkflowTemplate) Delete ¶
func (r *WorkflowTemplate) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
func (*WorkflowTemplate) Get ¶
func (r *WorkflowTemplate) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*WorkflowTemplate) GetPolicy ¶
func (r *WorkflowTemplate) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*WorkflowTemplate) GetPolicyMember ¶
func (r *WorkflowTemplate) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)
func (*WorkflowTemplate) HasDiff ¶
func (r *WorkflowTemplate) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func (*WorkflowTemplate) ID ¶
func (r *WorkflowTemplate) ID(resource *unstructured.Resource) (string, error)
func (*WorkflowTemplate) STV ¶
func (r *WorkflowTemplate) STV() unstructured.ServiceTypeVersion
func (*WorkflowTemplate) SetPolicy ¶
func (r *WorkflowTemplate) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
func (*WorkflowTemplate) SetPolicyMember ¶
func (r *WorkflowTemplate) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)