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.
Index ¶
- func ApplyWorkload(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func DeleteWorkload(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- func GetWorkload(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func ListWorkload(ctx context.Context, config *dcl.Config, organization string, location string) ([]*unstructured.Resource, error)
- func UnstructuredToWorkload(u *unstructured.Resource) (*dclService.Workload, error)
- func WorkloadHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (bool, error)
- func WorkloadID(u *unstructured.Resource) (string, error)
- func WorkloadToUnstructured(r *dclService.Workload) *unstructured.Resource
- type Workload
- func (r *Workload) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Workload) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
- func (r *Workload) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) error
- func (r *Workload) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Workload) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Workload) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Workload) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (bool, error)
- func (r *Workload) ID(resource *unstructured.Resource) (string, error)
- func (r *Workload) STV() unstructured.ServiceTypeVersion
- func (r *Workload) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Workload) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Workload) 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 ApplyWorkload ¶
func ApplyWorkload(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func DeleteWorkload ¶
func GetWorkload ¶
func GetWorkload(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
func ListWorkload ¶
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) 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 (*Workload) STV ¶
func (r *Workload) STV() unstructured.ServiceTypeVersion
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)
Click to show internal directories.
Click to hide internal directories.