containeraws

package
v1.20.1 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

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

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 ClusterID

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

func ClusterToUnstructured

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

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

Jump to

Keyboard shortcuts

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