clouddeploy

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 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 ApplyDeliveryPipeline

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

func ApplyTarget

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

func DeleteDeliveryPipeline

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

func DeleteTarget

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

func DeliveryPipelineHasDiff

func DeliveryPipelineHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func DeliveryPipelineID

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

func DeliveryPipelineToUnstructured

func DeliveryPipelineToUnstructured(r *dclService.DeliveryPipeline) *unstructured.Resource

func GetDeliveryPipeline

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

func GetTarget

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

func ListDeliveryPipeline

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

func ListTarget

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

func TargetHasDiff

func TargetHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func TargetID

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

func TargetToUnstructured

func TargetToUnstructured(r *dclService.Target) *unstructured.Resource

func UnstructuredToDeliveryPipeline

func UnstructuredToDeliveryPipeline(u *unstructured.Resource) (*dclService.DeliveryPipeline, error)

func UnstructuredToTarget

func UnstructuredToTarget(u *unstructured.Resource) (*dclService.Target, error)

Types

type DeliveryPipeline

type DeliveryPipeline struct{}

func (*DeliveryPipeline) Apply

func (r *DeliveryPipeline) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)

func (*DeliveryPipeline) Delete

func (r *DeliveryPipeline) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error

func (*DeliveryPipeline) DeletePolicyMember

func (r *DeliveryPipeline) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error

func (*DeliveryPipeline) Get

func (*DeliveryPipeline) GetPolicy

func (r *DeliveryPipeline) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)

func (*DeliveryPipeline) GetPolicyMember

func (r *DeliveryPipeline) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)

func (*DeliveryPipeline) HasDiff

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

func (*DeliveryPipeline) ID

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

func (*DeliveryPipeline) STV

func (*DeliveryPipeline) SetPolicy

func (r *DeliveryPipeline) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)

func (*DeliveryPipeline) SetPolicyMember

func (r *DeliveryPipeline) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)

func (*DeliveryPipeline) SetPolicyWithEtag

func (r *DeliveryPipeline) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)

type Target

type Target struct{}

func (*Target) Apply

func (r *Target) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)

func (*Target) Delete

func (r *Target) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error

func (*Target) DeletePolicyMember

func (r *Target) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error

func (*Target) Get

func (r *Target) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)

func (*Target) GetPolicy

func (r *Target) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)

func (*Target) GetPolicyMember

func (r *Target) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)

func (*Target) HasDiff

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

func (*Target) ID

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

func (*Target) STV

func (*Target) SetPolicy

func (r *Target) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)

func (*Target) SetPolicyMember

func (r *Target) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)

func (*Target) SetPolicyWithEtag

func (r *Target) 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