kms

package
v0.22.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: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupCryptoKey

func SetupCryptoKey(mgr ctrl.Manager, o controller.Options) error

SetupCryptoKey adds a controller that reconciles CryptoKeys.

func SetupCryptoKeyPolicy

func SetupCryptoKeyPolicy(mgr ctrl.Manager, o controller.Options) error

SetupCryptoKeyPolicy adds a controller that reconciles CryptoKeyPolicys.

func SetupKeyRing

func SetupKeyRing(mgr ctrl.Manager, o controller.Options) error

SetupKeyRing adds a controller that reconciles KeyRings.

Types

type RelativeResourceNamerKeyRing

type RelativeResourceNamerKeyRing struct {
	// contains filtered or unexported fields
}

RelativeResourceNamerKeyRing allows the controller to generate the "relative resource name" for the KeyRing and GCP project based on the keyRing external-name annotation. https://cloud.google.com/apis/design/resource_names#relative_resource_name The relative resource name for KeyRing has the following format: projects/{projectName}/locations/{location}/keyRings/{keyRingName}

func NewRelativeResourceNamerKeyRing

func NewRelativeResourceNamerKeyRing(projectName, location string) RelativeResourceNamerKeyRing

NewRelativeResourceNamerKeyRing makes an instance of the RelativeResourceNamerKeyRing which is the only type that is allowed to know how to construct GCP resource names for the KMS Keyring type.

func (RelativeResourceNamerKeyRing) LocationRRN

func (rrn RelativeResourceNamerKeyRing) LocationRRN() string

LocationRRN yields the relative resource name for a GCP Project Location

func (RelativeResourceNamerKeyRing) ProjectRRN

func (rrn RelativeResourceNamerKeyRing) ProjectRRN() string

ProjectRRN yields the relative resource name for a GCP project

func (RelativeResourceNamerKeyRing) ResourceName

func (rrn RelativeResourceNamerKeyRing) ResourceName(kr *v1alpha1.KeyRing) string

ResourceName yields the relative resource name for the KeyRing resource

Jump to

Keyboard shortcuts

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