containerazure

package
v1.76.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Copyright 2024 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 2024 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 2024 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

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 ClientID

func ClientID(u *unstructured.Resource) (string, 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 ClusterID

func ClusterID(u *unstructured.Resource) (string, error)

func ClusterToUnstructured

func ClusterToUnstructured(r *dclService.Cluster) *unstructured.Resource

func DeleteClient

func DeleteClient(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error

func DeleteCluster

func DeleteCluster(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error

func DeleteNodePool

func DeleteNodePool(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error

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 ListClient(ctx context.Context, config *dcl.Config, project string, location string) ([]*unstructured.Resource, error)

func ListCluster

func ListCluster(ctx context.Context, config *dcl.Config, project string, location string) ([]*unstructured.Resource, error)

func ListNodePool

func ListNodePool(ctx context.Context, config *dcl.Config, project string, location string, cluster string) ([]*unstructured.Resource, error)

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) Delete

func (r *Client) Delete(ctx context.Context, config *dcl.Config, resource *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 (r *Client) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)

func (*Client) HasDiff

func (r *Client) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func (*Client) ID

func (r *Client) ID(resource *unstructured.Resource) (string, error)

func (*Client) STV

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) Delete

func (r *Cluster) Delete(ctx context.Context, config *dcl.Config, resource *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 (r *Cluster) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)

func (*Cluster) HasDiff

func (r *Cluster) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func (*Cluster) ID

func (r *Cluster) ID(resource *unstructured.Resource) (string, error)

func (*Cluster) STV

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) Delete

func (r *NodePool) Delete(ctx context.Context, config *dcl.Config, resource *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 (r *NodePool) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)

func (*NodePool) HasDiff

func (r *NodePool) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func (*NodePool) ID

func (r *NodePool) ID(resource *unstructured.Resource) (string, error)

func (*NodePool) STV

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL