v1alpha1

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=kms.tencentcloud.crossplane.io +versionName=v1alpha1

Index

Constants

View Source
const (
	CRDGroup   = "kms.tencentcloud.crossplane.io"
	CRDVersion = "v1alpha1"
)

Package type metadata.

Variables

View Source
var (
	ExternalKey_Kind             = "ExternalKey"
	ExternalKey_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: ExternalKey_Kind}.String()
	ExternalKey_KindAPIVersion   = ExternalKey_Kind + "." + CRDGroupVersion.String()
	ExternalKey_GroupVersionKind = CRDGroupVersion.WithKind(ExternalKey_Kind)
)

Repository type metadata.

View Source
var (
	// CRDGroupVersion is the API Group Version used to register the objects
	CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: CRDGroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var (
	Key_Kind             = "Key"
	Key_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Key_Kind}.String()
	Key_KindAPIVersion   = Key_Kind + "." + CRDGroupVersion.String()
	Key_GroupVersionKind = CRDGroupVersion.WithKind(Key_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type ExternalKey

type ExternalKey struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ExternalKeySpec   `json:"spec"`
	Status            ExternalKeyStatus `json:"status,omitempty"`
}

ExternalKey is the Schema for the ExternalKeys API +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,tencentcloudjet}

func (*ExternalKey) DeepCopy

func (in *ExternalKey) DeepCopy() *ExternalKey

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalKey.

func (*ExternalKey) DeepCopyInto

func (in *ExternalKey) DeepCopyInto(out *ExternalKey)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ExternalKey) DeepCopyObject

func (in *ExternalKey) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ExternalKey) GetCondition

func (mg *ExternalKey) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this ExternalKey.

func (*ExternalKey) GetConnectionDetailsMapping

func (tr *ExternalKey) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this ExternalKey

func (*ExternalKey) GetDeletionPolicy

func (mg *ExternalKey) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this ExternalKey.

func (*ExternalKey) GetID

func (tr *ExternalKey) GetID() string

GetID returns ID of underlying Terraform resource of this ExternalKey

func (*ExternalKey) GetObservation

func (tr *ExternalKey) GetObservation() (map[string]interface{}, error)

GetObservation of this ExternalKey

func (*ExternalKey) GetParameters

func (tr *ExternalKey) GetParameters() (map[string]interface{}, error)

GetParameters of this ExternalKey

func (*ExternalKey) GetProviderConfigReference

func (mg *ExternalKey) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this ExternalKey.

func (*ExternalKey) GetProviderReference

func (mg *ExternalKey) GetProviderReference() *xpv1.Reference

GetProviderReference of this ExternalKey. Deprecated: Use GetProviderConfigReference.

func (*ExternalKey) GetPublishConnectionDetailsTo

func (mg *ExternalKey) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this ExternalKey.

func (*ExternalKey) GetTerraformResourceType

func (mg *ExternalKey) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this ExternalKey

func (*ExternalKey) GetTerraformSchemaVersion

func (tr *ExternalKey) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*ExternalKey) GetWriteConnectionSecretToReference

func (mg *ExternalKey) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this ExternalKey.

func (*ExternalKey) LateInitialize

func (tr *ExternalKey) LateInitialize(attrs []byte) (bool, error)

LateInitialize this ExternalKey using its observed tfState. returns True if there are any spec changes for the resource.

func (*ExternalKey) SetConditions

func (mg *ExternalKey) SetConditions(c ...xpv1.Condition)

SetConditions of this ExternalKey.

func (*ExternalKey) SetDeletionPolicy

func (mg *ExternalKey) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this ExternalKey.

func (*ExternalKey) SetObservation

func (tr *ExternalKey) SetObservation(obs map[string]interface{}) error

SetObservation for this ExternalKey

func (*ExternalKey) SetParameters

func (tr *ExternalKey) SetParameters(params map[string]interface{}) error

SetParameters for this ExternalKey

func (*ExternalKey) SetProviderConfigReference

func (mg *ExternalKey) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this ExternalKey.

func (*ExternalKey) SetProviderReference

func (mg *ExternalKey) SetProviderReference(r *xpv1.Reference)

SetProviderReference of this ExternalKey. Deprecated: Use SetProviderConfigReference.

func (*ExternalKey) SetPublishConnectionDetailsTo

func (mg *ExternalKey) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this ExternalKey.

func (*ExternalKey) SetWriteConnectionSecretToReference

func (mg *ExternalKey) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this ExternalKey.

type ExternalKeyList

type ExternalKeyList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ExternalKey `json:"items"`
}

ExternalKeyList contains a list of ExternalKeys

func (*ExternalKeyList) DeepCopy

func (in *ExternalKeyList) DeepCopy() *ExternalKeyList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalKeyList.

func (*ExternalKeyList) DeepCopyInto

func (in *ExternalKeyList) DeepCopyInto(out *ExternalKeyList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ExternalKeyList) DeepCopyObject

func (in *ExternalKeyList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ExternalKeyList) GetItems

func (l *ExternalKeyList) GetItems() []resource.Managed

GetItems of this ExternalKeyList.

type ExternalKeyObservation

type ExternalKeyObservation struct {
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	KeyState *string `json:"keyState,omitempty" tf:"key_state,omitempty"`
}

func (*ExternalKeyObservation) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalKeyObservation.

func (*ExternalKeyObservation) DeepCopyInto

func (in *ExternalKeyObservation) DeepCopyInto(out *ExternalKeyObservation)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ExternalKeyParameters

type ExternalKeyParameters struct {

	// Name of CMK. The name can only contain English letters, numbers, underscore and hyphen '-'. The first character must be a letter or number.
	// +kubebuilder:validation:Required
	Alias *string `json:"alias" tf:"alias,omitempty"`

	// Description of CMK. The maximum is 1024 bytes.
	// +kubebuilder:validation:Optional
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// Specify whether to archive key. Default value is `false`. This field is conflict with `is_enabled`, valid when key_state is `Enabled`, `Disabled`, `Archived`.
	// +kubebuilder:validation:Optional
	IsArchived *bool `json:"isArchived,omitempty" tf:"is_archived,omitempty"`

	// Specify whether to enable key. Default value is `false`. This field is conflict with `is_archived`, valid when key_state is `Enabled`, `Disabled`, `Archived`.
	// +kubebuilder:validation:Optional
	IsEnabled *bool `json:"isEnabled,omitempty" tf:"is_enabled,omitempty"`

	// The base64-encoded key material encrypted with the public_key. For regions using the national secret version, the length of the imported key material is required to be 128 bits, and for regions using the FIPS version, the length of the imported key material is required to be 256 bits.
	// +kubebuilder:validation:Optional
	KeyMaterialBase64SecretRef *v1.SecretKeySelector `json:"keyMaterialBase64SecretRef,omitempty" tf:"-"`

	// Duration in days after which the key is deleted after destruction of the resource, must be between 7 and 30 days. Defaults to 7 days.
	// +kubebuilder:validation:Optional
	PendingDeleteWindowInDays *float64 `json:"pendingDeleteWindowInDays,omitempty" tf:"pending_delete_window_in_days,omitempty"`

	// Tags of CMK.
	// +kubebuilder:validation:Optional
	Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`

	// This value means the effective timestamp of the key material, 0 means it does not expire. Need to be greater than the current timestamp, the maximum support is 2147443200.
	// +kubebuilder:validation:Optional
	ValidTo *float64 `json:"validTo,omitempty" tf:"valid_to,omitempty"`

	// The algorithm for encrypting key material. Available values include `RSAES_PKCS1_V1_5`, `RSAES_OAEP_SHA_1` and `RSAES_OAEP_SHA_256`. Default value is `RSAES_PKCS1_V1_5`.
	// +kubebuilder:validation:Optional
	WrappingAlgorithm *string `json:"wrappingAlgorithm,omitempty" tf:"wrapping_algorithm,omitempty"`
}

func (*ExternalKeyParameters) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalKeyParameters.

func (*ExternalKeyParameters) DeepCopyInto

func (in *ExternalKeyParameters) DeepCopyInto(out *ExternalKeyParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ExternalKeySpec

type ExternalKeySpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     ExternalKeyParameters `json:"forProvider"`
}

ExternalKeySpec defines the desired state of ExternalKey

func (*ExternalKeySpec) DeepCopy

func (in *ExternalKeySpec) DeepCopy() *ExternalKeySpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalKeySpec.

func (*ExternalKeySpec) DeepCopyInto

func (in *ExternalKeySpec) DeepCopyInto(out *ExternalKeySpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ExternalKeyStatus

type ExternalKeyStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        ExternalKeyObservation `json:"atProvider,omitempty"`
}

ExternalKeyStatus defines the observed state of ExternalKey.

func (*ExternalKeyStatus) DeepCopy

func (in *ExternalKeyStatus) DeepCopy() *ExternalKeyStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalKeyStatus.

func (*ExternalKeyStatus) DeepCopyInto

func (in *ExternalKeyStatus) DeepCopyInto(out *ExternalKeyStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Key

type Key struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              KeySpec   `json:"spec"`
	Status            KeyStatus `json:"status,omitempty"`
}

Key is the Schema for the Keys API +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,tencentcloudjet}

func (*Key) DeepCopy

func (in *Key) DeepCopy() *Key

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Key.

func (*Key) DeepCopyInto

func (in *Key) DeepCopyInto(out *Key)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Key) DeepCopyObject

func (in *Key) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Key) GetCondition

func (mg *Key) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this Key.

func (*Key) GetConnectionDetailsMapping

func (tr *Key) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this Key

func (*Key) GetDeletionPolicy

func (mg *Key) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this Key.

func (*Key) GetID

func (tr *Key) GetID() string

GetID returns ID of underlying Terraform resource of this Key

func (*Key) GetObservation

func (tr *Key) GetObservation() (map[string]interface{}, error)

GetObservation of this Key

func (*Key) GetParameters

func (tr *Key) GetParameters() (map[string]interface{}, error)

GetParameters of this Key

func (*Key) GetProviderConfigReference

func (mg *Key) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this Key.

func (*Key) GetProviderReference

func (mg *Key) GetProviderReference() *xpv1.Reference

GetProviderReference of this Key. Deprecated: Use GetProviderConfigReference.

func (*Key) GetPublishConnectionDetailsTo

func (mg *Key) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this Key.

func (*Key) GetTerraformResourceType

func (mg *Key) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Key

func (*Key) GetTerraformSchemaVersion

func (tr *Key) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Key) GetWriteConnectionSecretToReference

func (mg *Key) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this Key.

func (*Key) LateInitialize

func (tr *Key) LateInitialize(attrs []byte) (bool, error)

LateInitialize this Key using its observed tfState. returns True if there are any spec changes for the resource.

func (*Key) SetConditions

func (mg *Key) SetConditions(c ...xpv1.Condition)

SetConditions of this Key.

func (*Key) SetDeletionPolicy

func (mg *Key) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this Key.

func (*Key) SetObservation

func (tr *Key) SetObservation(obs map[string]interface{}) error

SetObservation for this Key

func (*Key) SetParameters

func (tr *Key) SetParameters(params map[string]interface{}) error

SetParameters for this Key

func (*Key) SetProviderConfigReference

func (mg *Key) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this Key.

func (*Key) SetProviderReference

func (mg *Key) SetProviderReference(r *xpv1.Reference)

SetProviderReference of this Key. Deprecated: Use SetProviderConfigReference.

func (*Key) SetPublishConnectionDetailsTo

func (mg *Key) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this Key.

func (*Key) SetWriteConnectionSecretToReference

func (mg *Key) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this Key.

type KeyList

type KeyList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Key `json:"items"`
}

KeyList contains a list of Keys

func (*KeyList) DeepCopy

func (in *KeyList) DeepCopy() *KeyList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KeyList.

func (*KeyList) DeepCopyInto

func (in *KeyList) DeepCopyInto(out *KeyList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KeyList) DeepCopyObject

func (in *KeyList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*KeyList) GetItems

func (l *KeyList) GetItems() []resource.Managed

GetItems of this KeyList.

type KeyObservation

type KeyObservation struct {
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	KeyState *string `json:"keyState,omitempty" tf:"key_state,omitempty"`
}

func (*KeyObservation) DeepCopy

func (in *KeyObservation) DeepCopy() *KeyObservation

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KeyObservation.

func (*KeyObservation) DeepCopyInto

func (in *KeyObservation) DeepCopyInto(out *KeyObservation)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type KeyParameters

type KeyParameters struct {

	// Name of CMK. The name can only contain English letters, numbers, underscore and hyphen '-'. The first character must be a letter or number.
	// +kubebuilder:validation:Required
	Alias *string `json:"alias" tf:"alias,omitempty"`

	// Description of CMK. The maximum is 1024 bytes.
	// +kubebuilder:validation:Optional
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// Specify whether to archive key. Default value is `false`. This field is conflict with `is_enabled`, valid when key_state is `Enabled`, `Disabled`, `Archived`.
	// +kubebuilder:validation:Optional
	IsArchived *bool `json:"isArchived,omitempty" tf:"is_archived,omitempty"`

	// Specify whether to enable key. Default value is `false`. This field is conflict with `is_archived`, valid when key_state is `Enabled`, `Disabled`, `Archived`.
	// +kubebuilder:validation:Optional
	IsEnabled *bool `json:"isEnabled,omitempty" tf:"is_enabled,omitempty"`

	// Specify whether to enable key rotation, valid when key_usage is `ENCRYPT_DECRYPT`. Default value is `false`.
	// +kubebuilder:validation:Optional
	KeyRotationEnabled *bool `json:"keyRotationEnabled,omitempty" tf:"key_rotation_enabled,omitempty"`

	// Usage of CMK. Available values include `ENCRYPT_DECRYPT`, `ASYMMETRIC_DECRYPT_RSA_2048`, `ASYMMETRIC_DECRYPT_SM2`, `ASYMMETRIC_SIGN_VERIFY_SM2`, `ASYMMETRIC_SIGN_VERIFY_RSA_2048`, `ASYMMETRIC_SIGN_VERIFY_ECC`. Default value is `ENCRYPT_DECRYPT`.
	// +kubebuilder:validation:Optional
	KeyUsage *string `json:"keyUsage,omitempty" tf:"key_usage,omitempty"`

	// Duration in days after which the key is deleted after destruction of the resource, must be between 7 and 30 days. Defaults to 7 days.
	// +kubebuilder:validation:Optional
	PendingDeleteWindowInDays *float64 `json:"pendingDeleteWindowInDays,omitempty" tf:"pending_delete_window_in_days,omitempty"`

	// Tags of CMK.
	// +kubebuilder:validation:Optional
	Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
}

func (*KeyParameters) DeepCopy

func (in *KeyParameters) DeepCopy() *KeyParameters

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KeyParameters.

func (*KeyParameters) DeepCopyInto

func (in *KeyParameters) DeepCopyInto(out *KeyParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type KeySpec

type KeySpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     KeyParameters `json:"forProvider"`
}

KeySpec defines the desired state of Key

func (*KeySpec) DeepCopy

func (in *KeySpec) DeepCopy() *KeySpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KeySpec.

func (*KeySpec) DeepCopyInto

func (in *KeySpec) DeepCopyInto(out *KeySpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type KeyStatus

type KeyStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        KeyObservation `json:"atProvider,omitempty"`
}

KeyStatus defines the observed state of Key.

func (*KeyStatus) DeepCopy

func (in *KeyStatus) DeepCopy() *KeyStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KeyStatus.

func (*KeyStatus) DeepCopyInto

func (in *KeyStatus) DeepCopyInto(out *KeyStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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