v1alpha1

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Overview

+groupName=kms.ibm.kubeform.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: kms.GroupName, Version: "v1alpha1"}

Functions

func GetDecoder

func GetDecoder() map[string]jsoniter.ValDecoder

func GetEncoder

func GetEncoder() map[string]jsoniter.ValEncoder

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Key

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

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) SetupWebhookWithManager

func (r *Key) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Key) ValidateCreate

func (r *Key) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Key) ValidateDelete

func (r *Key) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Key) ValidateUpdate

func (r *Key) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type KeyAlias

type KeyAlias struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              KeyAliasSpec   `json:"spec,omitempty"`
	Status            KeyAliasStatus `json:"status,omitempty"`
}

func (*KeyAlias) DeepCopy

func (in *KeyAlias) DeepCopy() *KeyAlias

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

func (*KeyAlias) DeepCopyInto

func (in *KeyAlias) DeepCopyInto(out *KeyAlias)

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

func (*KeyAlias) DeepCopyObject

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

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

func (*KeyAlias) SetupWebhookWithManager

func (r *KeyAlias) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*KeyAlias) ValidateCreate

func (r *KeyAlias) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*KeyAlias) ValidateDelete

func (r *KeyAlias) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*KeyAlias) ValidateUpdate

func (r *KeyAlias) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type KeyAliasList

type KeyAliasList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of KeyAlias CRD objects
	Items []KeyAlias `json:"items,omitempty"`
}

KeyAliasList is a list of KeyAliass

func (*KeyAliasList) DeepCopy

func (in *KeyAliasList) DeepCopy() *KeyAliasList

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

func (*KeyAliasList) DeepCopyInto

func (in *KeyAliasList) DeepCopyInto(out *KeyAliasList)

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

func (*KeyAliasList) DeepCopyObject

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

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

type KeyAliasSpec

type KeyAliasSpec struct {
	State *KeyAliasSpecResource `json:"state,omitempty" tf:"-"`

	Resource KeyAliasSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*KeyAliasSpec) DeepCopy

func (in *KeyAliasSpec) DeepCopy() *KeyAliasSpec

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

func (*KeyAliasSpec) DeepCopyInto

func (in *KeyAliasSpec) DeepCopyInto(out *KeyAliasSpec)

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

type KeyAliasSpecResource

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

	// Key protect or hpcs key alias name
	Alias *string `json:"alias" tf:"alias"`
	// public or private
	// +optional
	EndpointType *string `json:"endpointType,omitempty" tf:"endpoint_type"`
	// Key ID
	InstanceID *string `json:"instanceID" tf:"instance_id"`
	// Key ID
	KeyID *string `json:"keyID" tf:"key_id"`
}

func (*KeyAliasSpecResource) DeepCopy

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

func (*KeyAliasSpecResource) DeepCopyInto

func (in *KeyAliasSpecResource) DeepCopyInto(out *KeyAliasSpecResource)

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

type KeyAliasStatus

type KeyAliasStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*KeyAliasStatus) DeepCopy

func (in *KeyAliasStatus) DeepCopy() *KeyAliasStatus

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

func (*KeyAliasStatus) DeepCopyInto

func (in *KeyAliasStatus) DeepCopyInto(out *KeyAliasStatus)

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

type KeyList

type KeyList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of Key CRD objects
	Items []Key `json:"items,omitempty"`
}

KeyList is 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.

type KeyRings

type KeyRings struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              KeyRingsSpec   `json:"spec,omitempty"`
	Status            KeyRingsStatus `json:"status,omitempty"`
}

func (*KeyRings) DeepCopy

func (in *KeyRings) DeepCopy() *KeyRings

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

func (*KeyRings) DeepCopyInto

func (in *KeyRings) DeepCopyInto(out *KeyRings)

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

func (*KeyRings) DeepCopyObject

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

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

func (*KeyRings) SetupWebhookWithManager

func (r *KeyRings) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*KeyRings) ValidateCreate

func (r *KeyRings) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*KeyRings) ValidateDelete

func (r *KeyRings) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*KeyRings) ValidateUpdate

func (r *KeyRings) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type KeyRingsList

type KeyRingsList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of KeyRings CRD objects
	Items []KeyRings `json:"items,omitempty"`
}

KeyRingsList is a list of KeyRingss

func (*KeyRingsList) DeepCopy

func (in *KeyRingsList) DeepCopy() *KeyRingsList

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

func (*KeyRingsList) DeepCopyInto

func (in *KeyRingsList) DeepCopyInto(out *KeyRingsList)

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

func (*KeyRingsList) DeepCopyObject

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

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

type KeyRingsSpec

type KeyRingsSpec struct {
	State *KeyRingsSpecResource `json:"state,omitempty" tf:"-"`

	Resource KeyRingsSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*KeyRingsSpec) DeepCopy

func (in *KeyRingsSpec) DeepCopy() *KeyRingsSpec

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

func (*KeyRingsSpec) DeepCopyInto

func (in *KeyRingsSpec) DeepCopyInto(out *KeyRingsSpec)

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

type KeyRingsSpecResource

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

	// public or private
	// +optional
	EndpointType *string `json:"endpointType,omitempty" tf:"endpoint_type"`
	// Key protect Instance GUID
	InstanceID *string `json:"instanceID" tf:"instance_id"`
	// User defined unique ID for the key ring
	KeyRingID *string `json:"keyRingID" tf:"key_ring_id"`
}

func (*KeyRingsSpecResource) DeepCopy

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

func (*KeyRingsSpecResource) DeepCopyInto

func (in *KeyRingsSpecResource) DeepCopyInto(out *KeyRingsSpecResource)

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

type KeyRingsStatus

type KeyRingsStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*KeyRingsStatus) DeepCopy

func (in *KeyRingsStatus) DeepCopy() *KeyRingsStatus

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

func (*KeyRingsStatus) DeepCopyInto

func (in *KeyRingsStatus) DeepCopyInto(out *KeyRingsStatus)

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

type KeySpec

type KeySpec struct {
	State *KeySpecResource `json:"state,omitempty" tf:"-"`

	Resource KeySpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

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 KeySpecPolicies

type KeySpecPolicies struct {
	// Data associated with the dual authorization delete policy.
	// +optional
	DualAuthDelete []KeySpecPoliciesDualAuthDelete `json:"dualAuthDelete,omitempty" tf:"dual_auth_delete"`
	// Specifies the key rotation time interval in months, with a minimum of 1, and a maximum of 12
	// +optional
	Rotation []KeySpecPoliciesRotation `json:"rotation,omitempty" tf:"rotation"`
}

func (*KeySpecPolicies) DeepCopy

func (in *KeySpecPolicies) DeepCopy() *KeySpecPolicies

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

func (*KeySpecPolicies) DeepCopyInto

func (in *KeySpecPolicies) DeepCopyInto(out *KeySpecPolicies)

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

type KeySpecPoliciesCodec

type KeySpecPoliciesCodec struct {
}

+k8s:deepcopy-gen=false

func (KeySpecPoliciesCodec) Decode

func (KeySpecPoliciesCodec) Encode

func (KeySpecPoliciesCodec) Encode(ptr unsafe.Pointer, stream *jsoniter.Stream)

func (KeySpecPoliciesCodec) IsEmpty

func (KeySpecPoliciesCodec) IsEmpty(ptr unsafe.Pointer) bool

type KeySpecPoliciesDualAuthDelete

type KeySpecPoliciesDualAuthDelete struct {
	// The unique identifier for the resource that created the policy.
	// +optional
	CreatedBy *string `json:"createdBy,omitempty" tf:"created_by"`
	// The date the policy was created. The date format follows RFC 3339.
	// +optional
	CreationDate *string `json:"creationDate,omitempty" tf:"creation_date"`
	// Cloud Resource Name (CRN) that uniquely identifies your cloud resources.
	// +optional
	Crn *string `json:"crn,omitempty" tf:"crn"`
	// If set to true, Key Protect enables a dual authorization policy on a single key.
	Enabled *bool `json:"enabled" tf:"enabled"`
	// The v4 UUID used to uniquely identify the policy resource, as specified by RFC 4122.
	// +optional
	ID *string `json:"ID,omitempty" tf:"id"`
	// Updates when the policy is replaced or modified. The date format follows RFC 3339.
	// +optional
	LastUpdateDate *string `json:"lastUpdateDate,omitempty" tf:"last_update_date"`
	// The unique identifier for the resource that updated the policy.
	// +optional
	UpdatedBy *string `json:"updatedBy,omitempty" tf:"updated_by"`
}

func (*KeySpecPoliciesDualAuthDelete) DeepCopy

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

func (*KeySpecPoliciesDualAuthDelete) DeepCopyInto

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

type KeySpecPoliciesRotation

type KeySpecPoliciesRotation struct {
	// The unique identifier for the resource that created the policy.
	// +optional
	CreatedBy *string `json:"createdBy,omitempty" tf:"created_by"`
	// The date the policy was created. The date format follows RFC 3339.
	// +optional
	CreationDate *string `json:"creationDate,omitempty" tf:"creation_date"`
	// Cloud Resource Name (CRN) that uniquely identifies your cloud resources.
	// +optional
	Crn *string `json:"crn,omitempty" tf:"crn"`
	// The v4 UUID used to uniquely identify the policy resource, as specified by RFC 4122.
	// +optional
	ID *string `json:"ID,omitempty" tf:"id"`
	// Specifies the key rotation time interval in months
	IntervalMonth *int64 `json:"intervalMonth" tf:"interval_month"`
	// Updates when the policy is replaced or modified. The date format follows RFC 3339.
	// +optional
	LastUpdateDate *string `json:"lastUpdateDate,omitempty" tf:"last_update_date"`
	// The unique identifier for the resource that updated the policy.
	// +optional
	UpdatedBy *string `json:"updatedBy,omitempty" tf:"updated_by"`
}

func (*KeySpecPoliciesRotation) DeepCopy

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

func (*KeySpecPoliciesRotation) DeepCopyInto

func (in *KeySpecPoliciesRotation) DeepCopyInto(out *KeySpecPoliciesRotation)

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

type KeySpecResource

type KeySpecResource struct {
	Timeouts *base.ResourceTimeout `json:"timeouts,omitempty" tf:"timeouts"`

	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// Crn of the key
	// +optional
	Crn *string `json:"crn,omitempty" tf:"crn"`
	// Only for imported root key
	// +optional
	EncryptedNonce *string `json:"encryptedNonce,omitempty" tf:"encrypted_nonce"`
	// public or private
	// +optional
	EndpointType *string `json:"endpointType,omitempty" tf:"endpoint_type"`
	// The date the key material expires. The date format follows RFC 3339. You can set an expiration date on any key on its creation. A key moves into the Deactivated state within one hour past its expiration date, if one is assigned. If you create a key without specifying an expiration date, the key does not expire
	// +optional
	ExpirationDate *string `json:"expirationDate,omitempty" tf:"expiration_date"`
	// set to true to force delete the key
	// +optional
	ForceDelete *bool `json:"forceDelete,omitempty" tf:"force_delete"`
	// Key protect or hpcs instance GUID
	InstanceID *string `json:"instanceID" tf:"instance_id"`
	// Only for imported root key
	// +optional
	IvValue *string `json:"ivValue,omitempty" tf:"iv_value"`
	// Key ID
	// +optional
	KeyID *string `json:"keyID,omitempty" tf:"key_id"`
	// Key name
	KeyName *string `json:"keyName" tf:"key_name"`
	// Key Ring for the Key
	// +optional
	KeyRingID *string `json:"keyRingID,omitempty" tf:"key_ring_id"`
	// +optional
	Payload *string `json:"payload,omitempty" tf:"payload"`
	// Creates or updates one or more policies for the specified key
	// +optional
	Policies *KeySpecPolicies `json:"policies,omitempty" tf:"policies"`
	// The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource
	// +optional
	ResourceControllerURL *string `json:"resourceControllerURL,omitempty" tf:"resource_controller_url"`
	// The crn of the resource
	// +optional
	ResourceCrn *string `json:"resourceCrn,omitempty" tf:"resource_crn"`
	// The resource group name in which resource is provisioned
	// +optional
	ResourceGroupName *string `json:"resourceGroupName,omitempty" tf:"resource_group_name"`
	// The name of the resource
	// +optional
	ResourceName *string `json:"resourceName,omitempty" tf:"resource_name"`
	// The status of the resource
	// +optional
	ResourceStatus *string `json:"resourceStatus,omitempty" tf:"resource_status"`
	// Standard key type
	// +optional
	StandardKey *bool `json:"standardKey,omitempty" tf:"standard_key"`
	// type of service hs-crypto or kms
	// +optional
	Type *string `json:"type,omitempty" tf:"type"`
}

func (*KeySpecResource) DeepCopy

func (in *KeySpecResource) DeepCopy() *KeySpecResource

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

func (*KeySpecResource) DeepCopyInto

func (in *KeySpecResource) DeepCopyInto(out *KeySpecResource)

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

type KeyStatus

type KeyStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

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