cryptokeypolicy

package
v0.23.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArePoliciesSame

func ArePoliciesSame(p1, p2 *cloudkms.Policy) bool

ArePoliciesSame compares and returns true if two policies are same

func GenerateCryptoKeyPolicyInstance

func GenerateCryptoKeyPolicyInstance(in v1alpha1.CryptoKeyPolicyParameters, ck *cloudkms.Policy)

GenerateCryptoKeyPolicyInstance generates *kmsv1.Policy instance from CryptoKeyPolicyParameters.

func IsEmpty

func IsEmpty(in *cloudkms.Policy) bool

IsEmpty returns if Policy is empty

func IsUpToDate

func IsUpToDate(in *v1alpha1.CryptoKeyPolicyParameters, observed *cloudkms.Policy) (bool, error)

IsUpToDate checks whether current state is up-to-date compared to the given set of parameters.

Types

type Client

type Client interface {
	GetIamPolicy(resource string) *cloudkms.ProjectsLocationsKeyRingsCryptoKeysGetIamPolicyCall
	SetIamPolicy(resource string, setiampolicyrequest *cloudkms.SetIamPolicyRequest) *cloudkms.ProjectsLocationsKeyRingsCryptoKeysSetIamPolicyCall
}

Client should be satisfied to conduct SA operations.

Jump to

Keyboard shortcuts

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