cloudkms

package
v1.63.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Overview

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

func DeleteEkmConnection added in v1.9.0

func DeleteEkmConnection(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 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 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 ListEkmConnection added in v1.9.0

func ListEkmConnection(ctx context.Context, config *dcl.Config, project string, location 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 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) 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 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 (*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) 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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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