run

package
v1.54.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: Apache-2.0 Imports: 7 Imported by: 1

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.

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyJob

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

func ApplyService

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

func DeleteJob

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

func DeletePolicyMemberJob added in v1.1.0

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

func DeletePolicyMemberService added in v1.1.0

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

func DeleteService

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

func GetJob

func GetPolicyJob

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

func GetPolicyMemberJob

func GetPolicyMemberJob(ctx context.Context, config *dcl.Config, u *unstructured.Resource, role, member string) (*unstructured.Resource, error)

func GetPolicyMemberService

func GetPolicyMemberService(ctx context.Context, config *dcl.Config, u *unstructured.Resource, role, member string) (*unstructured.Resource, error)

func GetPolicyService

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

func GetService

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

func JobHasDiff

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

func JobID

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

func JobToUnstructured

func JobToUnstructured(r *dclService.Job) *unstructured.Resource

func ListJob

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

func ListService

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

func ServiceHasDiff

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

func ServiceID

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

func ServiceToUnstructured

func ServiceToUnstructured(r *dclService.Service) *unstructured.Resource

func SetPolicyWithEtagJob added in v1.1.0

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

func SetPolicyWithEtagService added in v1.1.0

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

func UnstructuredToJob

func UnstructuredToJob(u *unstructured.Resource) (*dclService.Job, error)

func UnstructuredToService

func UnstructuredToService(u *unstructured.Resource) (*dclService.Service, error)

Types

type Job

type Job struct{}

func (*Job) Apply

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

func (*Job) Delete

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

func (*Job) DeletePolicyMember added in v1.1.0

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

func (*Job) Get

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

func (*Job) GetPolicy

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

func (*Job) GetPolicyMember

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

func (*Job) HasDiff

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

func (*Job) ID

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

func (*Job) STV

func (*Job) SetPolicy

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

func (*Job) SetPolicyMember

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

func (*Job) SetPolicyWithEtag added in v1.1.0

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

type Service

type Service struct{}

func (*Service) Apply

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

func (*Service) Delete

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

func (*Service) DeletePolicyMember added in v1.1.0

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

func (*Service) Get

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

func (*Service) GetPolicy

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

func (*Service) GetPolicyMember

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

func (*Service) HasDiff

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

func (*Service) ID

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

func (*Service) STV

func (*Service) SetPolicy

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

func (*Service) SetPolicyMember

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

func (*Service) SetPolicyWithEtag added in v1.1.0

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