cloudkms

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Copyright 2022 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 2022 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 ApplyCryptoKey

func ApplyCryptoKey(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 DeleteCryptoKey(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error

func DeleteKeyRing

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

func DeletePolicyMemberCryptoKey added in v1.4.0

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

func GetCryptoKey

func GetCryptoKey(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 GetPolicyMemberCryptoKey added in v1.4.0

func GetPolicyMemberCryptoKey(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 KeyRingID

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

func KeyRingToUnstructured

func KeyRingToUnstructured(r *dclService.KeyRing) *unstructured.Resource

func ListCryptoKey

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

func ListKeyRing

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

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 SetPolicyMemberCryptoKey added in v1.4.0

func SetPolicyMemberCryptoKey(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 UnstructuredToCryptoKey

func UnstructuredToCryptoKey(u *unstructured.Resource) (*dclService.CryptoKey, 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) Delete

func (r *CryptoKey) Delete(ctx context.Context, config *dcl.Config, resource *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 (r *CryptoKey) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)

func (*CryptoKey) HasDiff

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

func (*CryptoKey) ID

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

func (*CryptoKey) STV

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 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) Delete

func (r *KeyRing) Delete(ctx context.Context, config *dcl.Config, resource *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 (r *KeyRing) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)

func (*KeyRing) HasDiff

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

func (*KeyRing) ID

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

func (*KeyRing) STV

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL