assuredworkloads

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyWorkload

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

func DeleteWorkload

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

func GetWorkload

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

func ListWorkload

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

func UnstructuredToWorkload

func UnstructuredToWorkload(u *unstructured.Resource) (*dclService.Workload, error)

func WorkloadHasDiff

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

func WorkloadID

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

func WorkloadToUnstructured

func WorkloadToUnstructured(r *dclService.Workload) *unstructured.Resource

Types

type Workload

type Workload struct{}

func (*Workload) Apply

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

func (*Workload) Delete

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

func (*Workload) DeletePolicyMember added in v1.1.0

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

func (*Workload) Get

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

func (*Workload) GetPolicy

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

func (*Workload) GetPolicyMember

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

func (*Workload) HasDiff

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

func (*Workload) ID

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

func (*Workload) STV

func (*Workload) SetPolicy

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

func (*Workload) SetPolicyMember

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

func (*Workload) SetPolicyWithEtag added in v1.1.0

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