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.
Index ¶
- func ApplyCluster(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func ApplyNodePool(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- 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 DeleteCluster(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- func DeleteNodePool(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- func GetCluster(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func GetNodePool(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func ListCluster(ctx context.Context, config *dcl.Config, project string, location string) ([]*unstructured.Resource, error)
- func ListNodePool(ctx context.Context, config *dcl.Config, project string, location string, ...) ([]*unstructured.Resource, error)
- func NodePoolHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (bool, error)
- func NodePoolID(u *unstructured.Resource) (string, error)
- func NodePoolToUnstructured(r *dclService.NodePool) *unstructured.Resource
- func UnstructuredToCluster(u *unstructured.Resource) (*dclService.Cluster, error)
- func UnstructuredToNodePool(u *unstructured.Resource) (*dclService.NodePool, 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) DeletePolicyMember(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)
- func (r *Cluster) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- type NodePool
- func (r *NodePool) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *NodePool) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
- func (r *NodePool) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) error
- func (r *NodePool) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *NodePool) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *NodePool) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *NodePool) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (bool, error)
- func (r *NodePool) ID(resource *unstructured.Resource) (string, error)
- func (r *NodePool) STV() unstructured.ServiceTypeVersion
- func (r *NodePool) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *NodePool) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *NodePool) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyCluster ¶
func ApplyCluster(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func ApplyNodePool ¶
func ApplyNodePool(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
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 DeleteCluster ¶
func DeleteNodePool ¶
func GetCluster ¶
func GetCluster(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
func GetNodePool ¶
func GetNodePool(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
func ListCluster ¶
func ListNodePool ¶
func NodePoolHasDiff ¶
func NodePoolHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func NodePoolID ¶
func NodePoolID(u *unstructured.Resource) (string, error)
func NodePoolToUnstructured ¶
func NodePoolToUnstructured(r *dclService.NodePool) *unstructured.Resource
func UnstructuredToCluster ¶
func UnstructuredToCluster(u *unstructured.Resource) (*dclService.Cluster, error)
func UnstructuredToNodePool ¶
func UnstructuredToNodePool(u *unstructured.Resource) (*dclService.NodePool, error)
Types ¶
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) DeletePolicyMember ¶ added in v1.1.0
func (r *Cluster) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *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)
func (*Cluster) SetPolicyWithEtag ¶ added in v1.1.0
func (r *Cluster) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
type NodePool ¶
type NodePool struct{}
func (*NodePool) Apply ¶
func (r *NodePool) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func (*NodePool) DeletePolicyMember ¶ added in v1.1.0
func (r *NodePool) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error
func (*NodePool) Get ¶
func (r *NodePool) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*NodePool) GetPolicy ¶
func (r *NodePool) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*NodePool) GetPolicyMember ¶
func (*NodePool) STV ¶
func (r *NodePool) STV() unstructured.ServiceTypeVersion
func (*NodePool) SetPolicy ¶
func (r *NodePool) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
func (*NodePool) SetPolicyMember ¶
func (r *NodePool) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)
func (*NodePool) SetPolicyWithEtag ¶ added in v1.1.0
func (r *NodePool) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)