cloudbuildv2

package
v1.39.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

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 ApplyConnection

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

func ApplyRepository

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

func ConnectionHasDiff

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

func ConnectionID

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

func ConnectionToUnstructured

func ConnectionToUnstructured(r *dclService.Connection) *unstructured.Resource

func DeleteConnection

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

func DeleteRepository

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

func GetConnection

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

func GetRepository

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

func ListConnection

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

func ListRepository

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

func RepositoryHasDiff

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

func RepositoryID

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

func RepositoryToUnstructured

func RepositoryToUnstructured(r *dclService.Repository) *unstructured.Resource

func UnstructuredToConnection

func UnstructuredToConnection(u *unstructured.Resource) (*dclService.Connection, error)

func UnstructuredToRepository

func UnstructuredToRepository(u *unstructured.Resource) (*dclService.Repository, error)

Types

type Connection

type Connection struct{}

func (*Connection) Apply

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

func (*Connection) Delete

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

func (*Connection) DeletePolicyMember

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

func (*Connection) Get

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

func (*Connection) GetPolicy

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

func (*Connection) GetPolicyMember

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

func (*Connection) HasDiff

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

func (*Connection) ID

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

func (*Connection) STV

func (*Connection) SetPolicy

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

func (*Connection) SetPolicyMember

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

func (*Connection) SetPolicyWithEtag

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

type Repository

type Repository struct{}

func (*Repository) Apply

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

func (*Repository) Delete

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

func (*Repository) DeletePolicyMember

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

func (*Repository) Get

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

func (*Repository) GetPolicy

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

func (*Repository) GetPolicyMember

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

func (*Repository) HasDiff

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

func (*Repository) ID

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

func (*Repository) STV

func (*Repository) SetPolicy

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

func (*Repository) SetPolicyMember

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

func (*Repository) SetPolicyWithEtag

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