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 ¶
- func ApplyConnection(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func ApplyRepository(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func ConnectionHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (bool, error)
- func ConnectionID(u *unstructured.Resource) (string, error)
- func ConnectionToUnstructured(r *dclService.Connection) *unstructured.Resource
- func DeleteConnection(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- func DeleteRepository(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- func GetConnection(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func GetRepository(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func ListConnection(ctx context.Context, config *dcl.Config, project string, location string) ([]*unstructured.Resource, error)
- func ListRepository(ctx context.Context, config *dcl.Config, project string, location string, ...) ([]*unstructured.Resource, error)
- func RepositoryHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (bool, error)
- func RepositoryID(u *unstructured.Resource) (string, error)
- func RepositoryToUnstructured(r *dclService.Repository) *unstructured.Resource
- func UnstructuredToConnection(u *unstructured.Resource) (*dclService.Connection, error)
- func UnstructuredToRepository(u *unstructured.Resource) (*dclService.Repository, error)
- type Connection
- func (r *Connection) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Connection) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
- func (r *Connection) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) error
- func (r *Connection) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Connection) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Connection) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Connection) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (bool, error)
- func (r *Connection) ID(resource *unstructured.Resource) (string, error)
- func (r *Connection) STV() unstructured.ServiceTypeVersion
- func (r *Connection) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Connection) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Connection) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- type Repository
- func (r *Repository) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Repository) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
- func (r *Repository) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) error
- func (r *Repository) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Repository) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Repository) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Repository) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (bool, error)
- func (r *Repository) ID(resource *unstructured.Resource) (string, error)
- func (r *Repository) STV() unstructured.ServiceTypeVersion
- func (r *Repository) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Repository) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Repository) 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 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 DeleteRepository ¶
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 ListRepository ¶
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 (r *Connection) STV() unstructured.ServiceTypeVersion
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 (r *Repository) STV() unstructured.ServiceTypeVersion
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)