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.
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 ApplyCryptoKey(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func ApplyEkmConnection(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func ApplyKeyRing(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func CryptoKeyHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (bool, error)
- func CryptoKeyID(u *unstructured.Resource) (string, error)
- func CryptoKeyToUnstructured(r *dclService.CryptoKey) *unstructured.Resource
- func DeleteCryptoKey(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- func DeleteEkmConnection(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- func DeleteKeyRing(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- func DeletePolicyMemberCryptoKey(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) error
- func DeletePolicyMemberEkmConnection(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) error
- func EkmConnectionHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (bool, error)
- func EkmConnectionID(u *unstructured.Resource) (string, error)
- func EkmConnectionToUnstructured(r *dclService.EkmConnection) *unstructured.Resource
- func GetCryptoKey(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func GetEkmConnection(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func GetKeyRing(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func GetPolicyCryptoKey(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func GetPolicyEkmConnection(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func GetPolicyMemberCryptoKey(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func GetPolicyMemberEkmConnection(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func KeyRingHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (bool, error)
- func KeyRingID(u *unstructured.Resource) (string, error)
- func KeyRingToUnstructured(r *dclService.KeyRing) *unstructured.Resource
- func ListCryptoKey(ctx context.Context, config *dcl.Config, project string, location string, ...) ([]*unstructured.Resource, error)
- func ListEkmConnection(ctx context.Context, config *dcl.Config, project string, location string) ([]*unstructured.Resource, error)
- func ListKeyRing(ctx context.Context, config *dcl.Config, project string, location string) ([]*unstructured.Resource, error)
- func SetPolicyCryptoKey(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func SetPolicyEkmConnection(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func SetPolicyMemberCryptoKey(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func SetPolicyMemberEkmConnection(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func SetPolicyWithEtagCryptoKey(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func SetPolicyWithEtagEkmConnection(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func UnstructuredToCryptoKey(u *unstructured.Resource) (*dclService.CryptoKey, error)
- func UnstructuredToEkmConnection(u *unstructured.Resource) (*dclService.EkmConnection, error)
- func UnstructuredToKeyRing(u *unstructured.Resource) (*dclService.KeyRing, error)
- type CryptoKey
- func (r *CryptoKey) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *CryptoKey) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
- func (r *CryptoKey) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) error
- func (r *CryptoKey) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *CryptoKey) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *CryptoKey) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *CryptoKey) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (bool, error)
- func (r *CryptoKey) ID(resource *unstructured.Resource) (string, error)
- func (r *CryptoKey) STV() unstructured.ServiceTypeVersion
- func (r *CryptoKey) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *CryptoKey) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *CryptoKey) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- type EkmConnection
- func (r *EkmConnection) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *EkmConnection) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
- func (r *EkmConnection) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) error
- func (r *EkmConnection) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *EkmConnection) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *EkmConnection) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *EkmConnection) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (bool, error)
- func (r *EkmConnection) ID(resource *unstructured.Resource) (string, error)
- func (r *EkmConnection) STV() unstructured.ServiceTypeVersion
- func (r *EkmConnection) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *EkmConnection) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *EkmConnection) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- type KeyRing
- func (r *KeyRing) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *KeyRing) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
- func (r *KeyRing) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) error
- func (r *KeyRing) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *KeyRing) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *KeyRing) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *KeyRing) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (bool, error)
- func (r *KeyRing) ID(resource *unstructured.Resource) (string, error)
- func (r *KeyRing) STV() unstructured.ServiceTypeVersion
- func (r *KeyRing) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *KeyRing) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *KeyRing) 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 ApplyCryptoKey ¶
func ApplyCryptoKey(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func ApplyEkmConnection ¶ added in v1.9.0
func ApplyEkmConnection(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func ApplyKeyRing ¶
func ApplyKeyRing(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func CryptoKeyHasDiff ¶
func CryptoKeyHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func CryptoKeyID ¶
func CryptoKeyID(u *unstructured.Resource) (string, error)
func CryptoKeyToUnstructured ¶
func CryptoKeyToUnstructured(r *dclService.CryptoKey) *unstructured.Resource
func DeleteCryptoKey ¶
func DeleteEkmConnection ¶ added in v1.9.0
func DeleteKeyRing ¶
func DeletePolicyMemberCryptoKey ¶ added in v1.4.0
func DeletePolicyMemberCryptoKey(ctx context.Context, config *dcl.Config, u *unstructured.Resource, m *unstructured.Resource) error
func DeletePolicyMemberEkmConnection ¶ added in v1.9.0
func DeletePolicyMemberEkmConnection(ctx context.Context, config *dcl.Config, u *unstructured.Resource, m *unstructured.Resource) error
func EkmConnectionHasDiff ¶ added in v1.9.0
func EkmConnectionHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func EkmConnectionID ¶ added in v1.9.0
func EkmConnectionID(u *unstructured.Resource) (string, error)
func EkmConnectionToUnstructured ¶ added in v1.9.0
func EkmConnectionToUnstructured(r *dclService.EkmConnection) *unstructured.Resource
func GetCryptoKey ¶
func GetCryptoKey(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
func GetEkmConnection ¶ added in v1.9.0
func GetEkmConnection(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
func GetKeyRing ¶
func GetKeyRing(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
func GetPolicyCryptoKey ¶ added in v1.4.0
func GetPolicyCryptoKey(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
func GetPolicyEkmConnection ¶ added in v1.9.0
func GetPolicyEkmConnection(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
func GetPolicyMemberCryptoKey ¶ added in v1.4.0
func GetPolicyMemberCryptoKey(ctx context.Context, config *dcl.Config, u *unstructured.Resource, role, member string) (*unstructured.Resource, error)
func GetPolicyMemberEkmConnection ¶ added in v1.9.0
func GetPolicyMemberEkmConnection(ctx context.Context, config *dcl.Config, u *unstructured.Resource, role, member string) (*unstructured.Resource, error)
func KeyRingHasDiff ¶
func KeyRingHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func KeyRingToUnstructured ¶
func KeyRingToUnstructured(r *dclService.KeyRing) *unstructured.Resource
func ListCryptoKey ¶
func ListEkmConnection ¶ added in v1.9.0
func ListKeyRing ¶
func SetPolicyCryptoKey ¶ added in v1.4.0
func SetPolicyCryptoKey(ctx context.Context, config *dcl.Config, u *unstructured.Resource, p *unstructured.Resource) (*unstructured.Resource, error)
func SetPolicyEkmConnection ¶ added in v1.9.0
func SetPolicyEkmConnection(ctx context.Context, config *dcl.Config, u *unstructured.Resource, p *unstructured.Resource) (*unstructured.Resource, error)
func SetPolicyMemberCryptoKey ¶ added in v1.4.0
func SetPolicyMemberCryptoKey(ctx context.Context, config *dcl.Config, u *unstructured.Resource, m *unstructured.Resource) (*unstructured.Resource, error)
func SetPolicyMemberEkmConnection ¶ added in v1.9.0
func SetPolicyMemberEkmConnection(ctx context.Context, config *dcl.Config, u *unstructured.Resource, m *unstructured.Resource) (*unstructured.Resource, error)
func SetPolicyWithEtagCryptoKey ¶ added in v1.4.0
func SetPolicyWithEtagCryptoKey(ctx context.Context, config *dcl.Config, u *unstructured.Resource, p *unstructured.Resource) (*unstructured.Resource, error)
func SetPolicyWithEtagEkmConnection ¶ added in v1.9.0
func SetPolicyWithEtagEkmConnection(ctx context.Context, config *dcl.Config, u *unstructured.Resource, p *unstructured.Resource) (*unstructured.Resource, error)
func UnstructuredToCryptoKey ¶
func UnstructuredToCryptoKey(u *unstructured.Resource) (*dclService.CryptoKey, error)
func UnstructuredToEkmConnection ¶ added in v1.9.0
func UnstructuredToEkmConnection(u *unstructured.Resource) (*dclService.EkmConnection, error)
func UnstructuredToKeyRing ¶
func UnstructuredToKeyRing(u *unstructured.Resource) (*dclService.KeyRing, error)
Types ¶
type CryptoKey ¶
type CryptoKey struct{}
func (*CryptoKey) Apply ¶
func (r *CryptoKey) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func (*CryptoKey) DeletePolicyMember ¶ added in v1.1.0
func (r *CryptoKey) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error
func (*CryptoKey) Get ¶
func (r *CryptoKey) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*CryptoKey) GetPolicy ¶
func (r *CryptoKey) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*CryptoKey) GetPolicyMember ¶
func (*CryptoKey) STV ¶
func (r *CryptoKey) STV() unstructured.ServiceTypeVersion
func (*CryptoKey) SetPolicy ¶
func (r *CryptoKey) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
func (*CryptoKey) SetPolicyMember ¶
func (r *CryptoKey) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)
func (*CryptoKey) SetPolicyWithEtag ¶ added in v1.1.0
func (r *CryptoKey) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
type EkmConnection ¶ added in v1.9.0
type EkmConnection struct{}
func (*EkmConnection) Apply ¶ added in v1.9.0
func (r *EkmConnection) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func (*EkmConnection) Delete ¶ added in v1.9.0
func (r *EkmConnection) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
func (*EkmConnection) DeletePolicyMember ¶ added in v1.9.0
func (r *EkmConnection) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error
func (*EkmConnection) Get ¶ added in v1.9.0
func (r *EkmConnection) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*EkmConnection) GetPolicy ¶ added in v1.9.0
func (r *EkmConnection) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*EkmConnection) GetPolicyMember ¶ added in v1.9.0
func (r *EkmConnection) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)
func (*EkmConnection) HasDiff ¶ added in v1.9.0
func (r *EkmConnection) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func (*EkmConnection) ID ¶ added in v1.9.0
func (r *EkmConnection) ID(resource *unstructured.Resource) (string, error)
func (*EkmConnection) STV ¶ added in v1.9.0
func (r *EkmConnection) STV() unstructured.ServiceTypeVersion
func (*EkmConnection) SetPolicy ¶ added in v1.9.0
func (r *EkmConnection) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
func (*EkmConnection) SetPolicyMember ¶ added in v1.9.0
func (r *EkmConnection) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)
func (*EkmConnection) SetPolicyWithEtag ¶ added in v1.9.0
func (r *EkmConnection) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
type KeyRing ¶
type KeyRing struct{}
func (*KeyRing) Apply ¶
func (r *KeyRing) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func (*KeyRing) DeletePolicyMember ¶ added in v1.1.0
func (r *KeyRing) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error
func (*KeyRing) Get ¶
func (r *KeyRing) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*KeyRing) GetPolicy ¶
func (r *KeyRing) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*KeyRing) GetPolicyMember ¶
func (*KeyRing) STV ¶
func (r *KeyRing) STV() unstructured.ServiceTypeVersion
func (*KeyRing) SetPolicy ¶
func (r *KeyRing) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
func (*KeyRing) SetPolicyMember ¶
func (r *KeyRing) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)
func (*KeyRing) SetPolicyWithEtag ¶ added in v1.1.0
func (r *KeyRing) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)