key

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultDeletePendingWindowInDays = int64(7)
)

Variables

View Source
var (
	GroupVersionResource = svcapitypes.GroupVersion.WithResource("keys")
	GroupKind            = metav1.GroupKind{
		Group: "kms.services.k8s.aws",
		Kind:  "Key",
	}
)
View Source
var (
	// PolicyName is the only allowed value for KMS Key's PolicyName
	// https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kms.html#KMS.Client.put_key_policy
	PolicyName = "default"
)

Functions

func FromACKTags added in v0.0.16

func FromACKTags(tags acktags.Tags) []*svcapitypes.Tag

FromACKTags converts the tags parameter into []*svcapitypes.Tag shape. This method helps in setting the tags back inside AWSResource after merging default controller tags with existing resource tags.

func GetDeletePendingWindowInDays

func GetDeletePendingWindowInDays(
	m *metav1.ObjectMeta,
) int64

GetDeletePendingWindowInDays returns the pending window (in days) as determined by the annotation on the object, or the default value otherwise.

func ToACKTags added in v0.0.16

func ToACKTags(tags []*svcapitypes.Tag) acktags.Tags

ToACKTags converts the tags parameter into 'acktags.Tags' shape. This method helps in creating the hub(acktags.Tags) for merging default controller tags with existing resource tags.

Types

This section is empty.

Jump to

Keyboard shortcuts

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