Documentation ¶
Overview ¶
Copyright 2023 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 2023 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 2023 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 ApplyClient(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 ApplyNodePool(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func ClientHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (bool, error)
- func ClientID(u *unstructured.Resource) (string, error)
- func ClientToUnstructured(r *dclService.AzureClient) *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 DeleteClient(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- 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 GetClient(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 GetNodePool(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func ListClient(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 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 UnstructuredToClient(u *unstructured.Resource) (*dclService.AzureClient, error)
- func UnstructuredToCluster(u *unstructured.Resource) (*dclService.Cluster, error)
- func UnstructuredToNodePool(u *unstructured.Resource) (*dclService.NodePool, error)
- type Client
- func (r *Client) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Client) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
- func (r *Client) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) error
- func (r *Client) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Client) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Client) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Client) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (bool, error)
- func (r *Client) ID(resource *unstructured.Resource) (string, error)
- func (r *Client) STV() unstructured.ServiceTypeVersion
- func (r *Client) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Client) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Client) SetPolicyWithEtag(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) 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 ApplyClient ¶
func ApplyClient(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 ApplyNodePool ¶
func ApplyNodePool(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func ClientHasDiff ¶
func ClientHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func ClientToUnstructured ¶
func ClientToUnstructured(r *dclService.AzureClient) *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 DeleteClient ¶
func DeleteCluster ¶
func DeleteNodePool ¶
func GetClient ¶
func GetClient(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 GetNodePool ¶
func GetNodePool(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
func ListClient ¶
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 UnstructuredToClient ¶
func UnstructuredToClient(u *unstructured.Resource) (*dclService.AzureClient, error)
func UnstructuredToCluster ¶
func UnstructuredToCluster(u *unstructured.Resource) (*dclService.Cluster, error)
func UnstructuredToNodePool ¶
func UnstructuredToNodePool(u *unstructured.Resource) (*dclService.NodePool, error)
Types ¶
type Client ¶
type Client struct{}
func (*Client) Apply ¶
func (r *Client) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func (*Client) DeletePolicyMember ¶ added in v1.1.0
func (r *Client) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error
func (*Client) Get ¶
func (r *Client) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Client) GetPolicy ¶
func (r *Client) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Client) GetPolicyMember ¶
func (*Client) STV ¶
func (r *Client) STV() unstructured.ServiceTypeVersion
func (*Client) SetPolicy ¶
func (r *Client) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
func (*Client) SetPolicyMember ¶
func (r *Client) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)
func (*Client) SetPolicyWithEtag ¶ added in v1.1.0
func (r *Client) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *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) 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)