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 ApplyKey(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func DeleteKey(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- func GetKey(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func KeyHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (bool, error)
- func KeyID(u *unstructured.Resource) (string, error)
- func KeyToUnstructured(r *dclService.Key) *unstructured.Resource
- func ListKey(ctx context.Context, config *dcl.Config, project string) ([]*unstructured.Resource, error)
- func UnstructuredToKey(u *unstructured.Resource) (*dclService.Key, error)
- type Key
- func (r *Key) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Key) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
- func (r *Key) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) error
- func (r *Key) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Key) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Key) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Key) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (bool, error)
- func (r *Key) ID(resource *unstructured.Resource) (string, error)
- func (r *Key) STV() unstructured.ServiceTypeVersion
- func (r *Key) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Key) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Key) 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 ApplyKey ¶
func ApplyKey(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func GetKey ¶
func GetKey(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
func KeyHasDiff ¶
func KeyHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func KeyToUnstructured ¶
func KeyToUnstructured(r *dclService.Key) *unstructured.Resource
func UnstructuredToKey ¶
func UnstructuredToKey(u *unstructured.Resource) (*dclService.Key, error)
Types ¶
type Key ¶
type Key struct{}
func (*Key) Apply ¶
func (r *Key) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func (*Key) DeletePolicyMember ¶ added in v1.1.0
func (r *Key) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error
func (*Key) Get ¶
func (r *Key) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Key) GetPolicy ¶
func (r *Key) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Key) GetPolicyMember ¶
func (*Key) STV ¶
func (r *Key) STV() unstructured.ServiceTypeVersion
func (*Key) SetPolicy ¶
func (r *Key) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
func (*Key) SetPolicyMember ¶
func (r *Key) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)
func (*Key) SetPolicyWithEtag ¶ added in v1.1.0
func (r *Key) 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.