v1alpha1

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=secrets.scaleway.upbound.io +versionName=v1alpha1

Index

Constants

View Source
const (
	CRDGroup   = "secrets.scaleway.upbound.io"
	CRDVersion = "v1alpha1"
)

Package type metadata.

Variables

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 (
	Secret_Kind             = "Secret"
	Secret_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Secret_Kind}.String()
	Secret_KindAPIVersion   = Secret_Kind + "." + CRDGroupVersion.String()
	Secret_GroupVersionKind = CRDGroupVersion.WithKind(Secret_Kind)
)

Repository type metadata.

View Source
var (
	Version_Kind             = "Version"
	Version_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Version_Kind}.String()
	Version_KindAPIVersion   = Version_Kind + "." + CRDGroupVersion.String()
	Version_GroupVersionKind = CRDGroupVersion.WithKind(Version_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type EphemeralPolicyInitParameters

type EphemeralPolicyInitParameters struct {

	// Action to perform when the version of a secret expires. Available values can be found in SDK constants.
	// Action to perform when the version of a secret expires.
	Action *string `json:"action,omitempty" tf:"action,omitempty"`

	// True if the secret version expires after a single user access.
	// True if the secret version expires after a single user access.
	ExpiresOnceAccessed *bool `json:"expiresOnceAccessed,omitempty" tf:"expires_once_accessed,omitempty"`

	// Time frame, from one second and up to one year, during which the secret's versions are valid. Has to be specified in Go Duration format (ex: "30m", "24h").
	// Time frame, from one second and up to one year, during which the secret's versions are valid. Has to be specified in Go Duration format
	TTL *string `json:"ttl,omitempty" tf:"ttl,omitempty"`
}

func (*EphemeralPolicyInitParameters) DeepCopy

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

func (*EphemeralPolicyInitParameters) DeepCopyInto

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

type EphemeralPolicyObservation

type EphemeralPolicyObservation struct {

	// Action to perform when the version of a secret expires. Available values can be found in SDK constants.
	// Action to perform when the version of a secret expires.
	Action *string `json:"action,omitempty" tf:"action,omitempty"`

	// True if the secret version expires after a single user access.
	// True if the secret version expires after a single user access.
	ExpiresOnceAccessed *bool `json:"expiresOnceAccessed,omitempty" tf:"expires_once_accessed,omitempty"`

	// Time frame, from one second and up to one year, during which the secret's versions are valid. Has to be specified in Go Duration format (ex: "30m", "24h").
	// Time frame, from one second and up to one year, during which the secret's versions are valid. Has to be specified in Go Duration format
	TTL *string `json:"ttl,omitempty" tf:"ttl,omitempty"`
}

func (*EphemeralPolicyObservation) DeepCopy

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

func (*EphemeralPolicyObservation) DeepCopyInto

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

type EphemeralPolicyParameters

type EphemeralPolicyParameters struct {

	// Action to perform when the version of a secret expires. Available values can be found in SDK constants.
	// Action to perform when the version of a secret expires.
	// +kubebuilder:validation:Optional
	Action *string `json:"action" tf:"action,omitempty"`

	// True if the secret version expires after a single user access.
	// True if the secret version expires after a single user access.
	// +kubebuilder:validation:Optional
	ExpiresOnceAccessed *bool `json:"expiresOnceAccessed,omitempty" tf:"expires_once_accessed,omitempty"`

	// Time frame, from one second and up to one year, during which the secret's versions are valid. Has to be specified in Go Duration format (ex: "30m", "24h").
	// Time frame, from one second and up to one year, during which the secret's versions are valid. Has to be specified in Go Duration format
	// +kubebuilder:validation:Optional
	TTL *string `json:"ttl,omitempty" tf:"ttl,omitempty"`
}

func (*EphemeralPolicyParameters) DeepCopy

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

func (*EphemeralPolicyParameters) DeepCopyInto

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

type Secret

type Secret struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter"
	Spec   SecretSpec   `json:"spec"`
	Status SecretStatus `json:"status,omitempty"`
}

Secret is the Schema for the Secrets API. +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].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:resource:scope=Cluster,categories={crossplane,managed,scaleway}

func (*Secret) DeepCopy

func (in *Secret) DeepCopy() *Secret

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

func (*Secret) DeepCopyInto

func (in *Secret) DeepCopyInto(out *Secret)

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

func (*Secret) DeepCopyObject

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

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

func (*Secret) GetCondition

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

GetCondition of this Secret.

func (*Secret) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this Secret

func (*Secret) GetDeletionPolicy

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

GetDeletionPolicy of this Secret.

func (*Secret) GetID

func (tr *Secret) GetID() string

GetID returns ID of underlying Terraform resource of this Secret

func (*Secret) GetInitParameters

func (tr *Secret) GetInitParameters() (map[string]any, error)

GetInitParameters of this Secret

func (*Secret) GetManagementPolicies

func (mg *Secret) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this Secret.

func (*Secret) GetMergedParameters

func (tr *Secret) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)

GetInitParameters of this Secret

func (*Secret) GetObservation

func (tr *Secret) GetObservation() (map[string]any, error)

GetObservation of this Secret

func (*Secret) GetParameters

func (tr *Secret) GetParameters() (map[string]any, error)

GetParameters of this Secret

func (*Secret) GetProviderConfigReference

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

GetProviderConfigReference of this Secret.

func (*Secret) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this Secret.

func (*Secret) GetTerraformResourceType

func (mg *Secret) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Secret

func (*Secret) GetTerraformSchemaVersion

func (tr *Secret) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Secret) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Secret.

func (*Secret) Hub

func (tr *Secret) Hub()

Hub marks this type as a conversion hub.

func (*Secret) LateInitialize

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

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

func (*Secret) SetConditions

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

SetConditions of this Secret.

func (*Secret) SetDeletionPolicy

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

SetDeletionPolicy of this Secret.

func (*Secret) SetManagementPolicies

func (mg *Secret) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this Secret.

func (*Secret) SetObservation

func (tr *Secret) SetObservation(obs map[string]any) error

SetObservation for this Secret

func (*Secret) SetParameters

func (tr *Secret) SetParameters(params map[string]any) error

SetParameters for this Secret

func (*Secret) SetProviderConfigReference

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

SetProviderConfigReference of this Secret.

func (*Secret) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this Secret.

func (*Secret) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this Secret.

type SecretInitParameters

type SecretInitParameters struct {

	// Description of the secret (e.g. my-new-description).
	// Description of the secret
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// Ephemeral policy of the secret. Policy that defines whether/when a secret's versions expire. By default, the policy is applied to all the secret's versions.
	EphemeralPolicy []EphemeralPolicyInitParameters `json:"ephemeralPolicy,omitempty" tf:"ephemeral_policy,omitempty"`

	// Name of the secret (e.g. my-secret).
	// The secret name
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// Path of the secret, defaults to /.
	// Location of the secret in the directory structure.
	Path *string `json:"path,omitempty" tf:"path,omitempty"`

	// The project ID containing is the secret.
	// The project_id you want to attach the resource to
	ProjectID *string `json:"projectId,omitempty" tf:"project_id,omitempty"`

	// True if secret protection is enabled on the secret.
	// True if secret protection is enabled on a given secret. A protected secret cannot be deleted.
	Protected *bool `json:"protected,omitempty" tf:"protected,omitempty"`

	// (Defaults to provider region) The region
	// in which the resource exists.
	// The region you want to attach the resource to
	Region *string `json:"region,omitempty" tf:"region,omitempty"`

	// Tags of the secret (e.g. ["tag", "secret"]).
	// List of tags ["tag1", "tag2", ...] associated to secret
	Tags []*string `json:"tags,omitempty" tf:"tags,omitempty"`

	// Type of the secret. If not specified, the type is Opaque. Available values can be found in SDK Constants.
	Type *string `json:"type,omitempty" tf:"type,omitempty"`
}

func (*SecretInitParameters) DeepCopy

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

func (*SecretInitParameters) DeepCopyInto

func (in *SecretInitParameters) DeepCopyInto(out *SecretInitParameters)

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

type SecretList

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

SecretList contains a list of Secrets

func (*SecretList) DeepCopy

func (in *SecretList) DeepCopy() *SecretList

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

func (*SecretList) DeepCopyInto

func (in *SecretList) DeepCopyInto(out *SecretList)

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

func (*SecretList) DeepCopyObject

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

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

func (*SecretList) GetItems

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

GetItems of this SecretList.

type SecretObservation

type SecretObservation struct {

	// Date and time of the secret's creation (in RFC 3339 format).
	// Date and time of secret's creation (RFC 3339 format)
	CreatedAt *string `json:"createdAt,omitempty" tf:"created_at,omitempty"`

	// Description of the secret (e.g. my-new-description).
	// Description of the secret
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// Ephemeral policy of the secret. Policy that defines whether/when a secret's versions expire. By default, the policy is applied to all the secret's versions.
	EphemeralPolicy []EphemeralPolicyObservation `json:"ephemeralPolicy,omitempty" tf:"ephemeral_policy,omitempty"`

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

	// Name of the secret (e.g. my-secret).
	// The secret name
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// Path of the secret, defaults to /.
	// Location of the secret in the directory structure.
	Path *string `json:"path,omitempty" tf:"path,omitempty"`

	// The project ID containing is the secret.
	// The project_id you want to attach the resource to
	ProjectID *string `json:"projectId,omitempty" tf:"project_id,omitempty"`

	// True if secret protection is enabled on the secret.
	// True if secret protection is enabled on a given secret. A protected secret cannot be deleted.
	Protected *bool `json:"protected,omitempty" tf:"protected,omitempty"`

	// (Defaults to provider region) The region
	// in which the resource exists.
	// The region you want to attach the resource to
	Region *string `json:"region,omitempty" tf:"region,omitempty"`

	// The status of the secret.
	// Status of the secret
	Status *string `json:"status,omitempty" tf:"status,omitempty"`

	// Tags of the secret (e.g. ["tag", "secret"]).
	// List of tags ["tag1", "tag2", ...] associated to secret
	Tags []*string `json:"tags,omitempty" tf:"tags,omitempty"`

	// Type of the secret. If not specified, the type is Opaque. Available values can be found in SDK Constants.
	Type *string `json:"type,omitempty" tf:"type,omitempty"`

	// Date and time of the secret's last update (in RFC 3339 format).
	// Date and time of secret's creation (RFC 3339 format)
	UpdatedAt *string `json:"updatedAt,omitempty" tf:"updated_at,omitempty"`

	// The amount of secret versions.
	// The number of versions for this Secret
	VersionCount *float64 `json:"versionCount,omitempty" tf:"version_count,omitempty"`

	Versions []VersionsObservation `json:"versions,omitempty" tf:"versions,omitempty"`
}

func (*SecretObservation) DeepCopy

func (in *SecretObservation) DeepCopy() *SecretObservation

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

func (*SecretObservation) DeepCopyInto

func (in *SecretObservation) DeepCopyInto(out *SecretObservation)

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

type SecretParameters

type SecretParameters struct {

	// Description of the secret (e.g. my-new-description).
	// Description of the secret
	// +kubebuilder:validation:Optional
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// Ephemeral policy of the secret. Policy that defines whether/when a secret's versions expire. By default, the policy is applied to all the secret's versions.
	// +kubebuilder:validation:Optional
	EphemeralPolicy []EphemeralPolicyParameters `json:"ephemeralPolicy,omitempty" tf:"ephemeral_policy,omitempty"`

	// Name of the secret (e.g. my-secret).
	// The secret name
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// Path of the secret, defaults to /.
	// Location of the secret in the directory structure.
	// +kubebuilder:validation:Optional
	Path *string `json:"path,omitempty" tf:"path,omitempty"`

	// The project ID containing is the secret.
	// The project_id you want to attach the resource to
	// +kubebuilder:validation:Optional
	ProjectID *string `json:"projectId,omitempty" tf:"project_id,omitempty"`

	// True if secret protection is enabled on the secret.
	// True if secret protection is enabled on a given secret. A protected secret cannot be deleted.
	// +kubebuilder:validation:Optional
	Protected *bool `json:"protected,omitempty" tf:"protected,omitempty"`

	// (Defaults to provider region) The region
	// in which the resource exists.
	// The region you want to attach the resource to
	// +kubebuilder:validation:Optional
	Region *string `json:"region,omitempty" tf:"region,omitempty"`

	// Tags of the secret (e.g. ["tag", "secret"]).
	// List of tags ["tag1", "tag2", ...] associated to secret
	// +kubebuilder:validation:Optional
	Tags []*string `json:"tags,omitempty" tf:"tags,omitempty"`

	// Type of the secret. If not specified, the type is Opaque. Available values can be found in SDK Constants.
	// +kubebuilder:validation:Optional
	Type *string `json:"type,omitempty" tf:"type,omitempty"`
}

func (*SecretParameters) DeepCopy

func (in *SecretParameters) DeepCopy() *SecretParameters

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

func (*SecretParameters) DeepCopyInto

func (in *SecretParameters) DeepCopyInto(out *SecretParameters)

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

type SecretSpec

type SecretSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     SecretParameters `json:"forProvider"`
	// THIS IS A BETA FIELD. It will be honored
	// unless the Management Policies feature flag is disabled.
	// InitProvider holds the same fields as ForProvider, with the exception
	// of Identifier and other resource reference fields. The fields that are
	// in InitProvider are merged into ForProvider when the resource is created.
	// The same fields are also added to the terraform ignore_changes hook, to
	// avoid updating them after creation. This is useful for fields that are
	// required on creation, but we do not desire to update them after creation,
	// for example because of an external controller is managing them, like an
	// autoscaler.
	InitProvider SecretInitParameters `json:"initProvider,omitempty"`
}

SecretSpec defines the desired state of Secret

func (*SecretSpec) DeepCopy

func (in *SecretSpec) DeepCopy() *SecretSpec

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

func (*SecretSpec) DeepCopyInto

func (in *SecretSpec) DeepCopyInto(out *SecretSpec)

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

type SecretStatus

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

SecretStatus defines the observed state of Secret.

func (*SecretStatus) DeepCopy

func (in *SecretStatus) DeepCopy() *SecretStatus

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

func (*SecretStatus) DeepCopyInto

func (in *SecretStatus) DeepCopyInto(out *SecretStatus)

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

type Version

type Version struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.dataSecretRef)",message="spec.forProvider.dataSecretRef is a required parameter"
	Spec   VersionSpec   `json:"spec"`
	Status VersionStatus `json:"status,omitempty"`
}

Version is the Schema for the Versions API. +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].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:resource:scope=Cluster,categories={crossplane,managed,scaleway}

func (*Version) DeepCopy

func (in *Version) DeepCopy() *Version

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

func (*Version) DeepCopyInto

func (in *Version) DeepCopyInto(out *Version)

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

func (*Version) DeepCopyObject

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

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

func (*Version) GetCondition

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

GetCondition of this Version.

func (*Version) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this Version

func (*Version) GetDeletionPolicy

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

GetDeletionPolicy of this Version.

func (*Version) GetID

func (tr *Version) GetID() string

GetID returns ID of underlying Terraform resource of this Version

func (*Version) GetInitParameters

func (tr *Version) GetInitParameters() (map[string]any, error)

GetInitParameters of this Version

func (*Version) GetManagementPolicies

func (mg *Version) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this Version.

func (*Version) GetMergedParameters

func (tr *Version) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)

GetInitParameters of this Version

func (*Version) GetObservation

func (tr *Version) GetObservation() (map[string]any, error)

GetObservation of this Version

func (*Version) GetParameters

func (tr *Version) GetParameters() (map[string]any, error)

GetParameters of this Version

func (*Version) GetProviderConfigReference

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

GetProviderConfigReference of this Version.

func (*Version) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this Version.

func (*Version) GetTerraformResourceType

func (mg *Version) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Version

func (*Version) GetTerraformSchemaVersion

func (tr *Version) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Version) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Version.

func (*Version) Hub

func (tr *Version) Hub()

Hub marks this type as a conversion hub.

func (*Version) LateInitialize

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

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

func (*Version) ResolveReferences

func (mg *Version) ResolveReferences(ctx context.Context, c client.Reader) error

ResolveReferences of this Version.

func (*Version) SetConditions

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

SetConditions of this Version.

func (*Version) SetDeletionPolicy

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

SetDeletionPolicy of this Version.

func (*Version) SetManagementPolicies

func (mg *Version) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this Version.

func (*Version) SetObservation

func (tr *Version) SetObservation(obs map[string]any) error

SetObservation for this Version

func (*Version) SetParameters

func (tr *Version) SetParameters(params map[string]any) error

SetParameters for this Version

func (*Version) SetProviderConfigReference

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

SetProviderConfigReference of this Version.

func (*Version) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this Version.

func (*Version) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this Version.

type VersionInitParameters

type VersionInitParameters struct {

	// The data payload of the secret version. Must not exceed 64KiB in size (e.g. my-secret-version-payload). Find out more on the data section.
	// The data payload of your secret version.
	DataSecretRef v1.SecretKeySelector `json:"dataSecretRef" tf:"-"`

	// Description of the secret version (e.g. my-new-description).
	// Description of the secret version
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// (Defaults to the region specified in the provider configuration). The region where the resource exists.
	// The region you want to attach the resource to
	Region *string `json:"region,omitempty" tf:"region,omitempty"`

	// The ID of the secret associated with the version.
	// The secret ID associated with this version
	// +crossplane:generate:reference:type=github.com/scaleway/crossplane-provider-scaleway/apis/secrets/v1alpha1.Secret
	SecretID *string `json:"secretId,omitempty" tf:"secret_id,omitempty"`

	// Reference to a Secret in secrets to populate secretId.
	// +kubebuilder:validation:Optional
	SecretIDRef *v1.Reference `json:"secretIdRef,omitempty" tf:"-"`

	// Selector for a Secret in secrets to populate secretId.
	// +kubebuilder:validation:Optional
	SecretIDSelector *v1.Selector `json:"secretIdSelector,omitempty" tf:"-"`
}

func (*VersionInitParameters) DeepCopy

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

func (*VersionInitParameters) DeepCopyInto

func (in *VersionInitParameters) DeepCopyInto(out *VersionInitParameters)

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

type VersionList

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

VersionList contains a list of Versions

func (*VersionList) DeepCopy

func (in *VersionList) DeepCopy() *VersionList

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

func (*VersionList) DeepCopyInto

func (in *VersionList) DeepCopyInto(out *VersionList)

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

func (*VersionList) DeepCopyObject

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

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

func (*VersionList) GetItems

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

GetItems of this VersionList.

type VersionObservation

type VersionObservation struct {

	// The date and time of the secret version's creation (in RFC 3339 format).
	// Date and time of secret version's creation (RFC 3339 format)
	CreatedAt *string `json:"createdAt,omitempty" tf:"created_at,omitempty"`

	// Description of the secret version (e.g. my-new-description).
	// Description of the secret version
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

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

	// (Defaults to the region specified in the provider configuration). The region where the resource exists.
	// The region you want to attach the resource to
	Region *string `json:"region,omitempty" tf:"region,omitempty"`

	// The revision number of the secret version.
	// The revision of secret version
	Revision *string `json:"revision,omitempty" tf:"revision,omitempty"`

	// The ID of the secret associated with the version.
	// The secret ID associated with this version
	SecretID *string `json:"secretId,omitempty" tf:"secret_id,omitempty"`

	// The status of the secret version.
	// Status of the secret version
	Status *string `json:"status,omitempty" tf:"status,omitempty"`

	// The date and time of the secret version's last update (in RFC 3339 format).
	// Date and time of secret version's creation (RFC 3339 format)
	UpdatedAt *string `json:"updatedAt,omitempty" tf:"updated_at,omitempty"`
}

func (*VersionObservation) DeepCopy

func (in *VersionObservation) DeepCopy() *VersionObservation

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

func (*VersionObservation) DeepCopyInto

func (in *VersionObservation) DeepCopyInto(out *VersionObservation)

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

type VersionParameters

type VersionParameters struct {

	// The data payload of the secret version. Must not exceed 64KiB in size (e.g. my-secret-version-payload). Find out more on the data section.
	// The data payload of your secret version.
	// +kubebuilder:validation:Optional
	DataSecretRef v1.SecretKeySelector `json:"dataSecretRef" tf:"-"`

	// Description of the secret version (e.g. my-new-description).
	// Description of the secret version
	// +kubebuilder:validation:Optional
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// (Defaults to the region specified in the provider configuration). The region where the resource exists.
	// The region you want to attach the resource to
	// +kubebuilder:validation:Optional
	Region *string `json:"region,omitempty" tf:"region,omitempty"`

	// The ID of the secret associated with the version.
	// The secret ID associated with this version
	// +crossplane:generate:reference:type=github.com/scaleway/crossplane-provider-scaleway/apis/secrets/v1alpha1.Secret
	// +kubebuilder:validation:Optional
	SecretID *string `json:"secretId,omitempty" tf:"secret_id,omitempty"`

	// Reference to a Secret in secrets to populate secretId.
	// +kubebuilder:validation:Optional
	SecretIDRef *v1.Reference `json:"secretIdRef,omitempty" tf:"-"`

	// Selector for a Secret in secrets to populate secretId.
	// +kubebuilder:validation:Optional
	SecretIDSelector *v1.Selector `json:"secretIdSelector,omitempty" tf:"-"`
}

func (*VersionParameters) DeepCopy

func (in *VersionParameters) DeepCopy() *VersionParameters

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

func (*VersionParameters) DeepCopyInto

func (in *VersionParameters) DeepCopyInto(out *VersionParameters)

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

type VersionSpec

type VersionSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     VersionParameters `json:"forProvider"`
	// THIS IS A BETA FIELD. It will be honored
	// unless the Management Policies feature flag is disabled.
	// InitProvider holds the same fields as ForProvider, with the exception
	// of Identifier and other resource reference fields. The fields that are
	// in InitProvider are merged into ForProvider when the resource is created.
	// The same fields are also added to the terraform ignore_changes hook, to
	// avoid updating them after creation. This is useful for fields that are
	// required on creation, but we do not desire to update them after creation,
	// for example because of an external controller is managing them, like an
	// autoscaler.
	InitProvider VersionInitParameters `json:"initProvider,omitempty"`
}

VersionSpec defines the desired state of Version

func (*VersionSpec) DeepCopy

func (in *VersionSpec) DeepCopy() *VersionSpec

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

func (*VersionSpec) DeepCopyInto

func (in *VersionSpec) DeepCopyInto(out *VersionSpec)

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

type VersionStatus

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

VersionStatus defines the observed state of Version.

func (*VersionStatus) DeepCopy

func (in *VersionStatus) DeepCopy() *VersionStatus

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

func (*VersionStatus) DeepCopyInto

func (in *VersionStatus) DeepCopyInto(out *VersionStatus)

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

type VersionsInitParameters

type VersionsInitParameters struct {
}

func (*VersionsInitParameters) DeepCopy

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

func (*VersionsInitParameters) DeepCopyInto

func (in *VersionsInitParameters) DeepCopyInto(out *VersionsInitParameters)

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

type VersionsObservation

type VersionsObservation struct {

	// Date and time of the secret's creation (in RFC 3339 format).
	CreatedAt *string `json:"createdAt,omitempty" tf:"created_at,omitempty"`

	// Description of the secret (e.g. my-new-description).
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	Latest *bool `json:"latest,omitempty" tf:"latest,omitempty"`

	Revision *string `json:"revision,omitempty" tf:"revision,omitempty"`

	SecretID *string `json:"secretId,omitempty" tf:"secret_id,omitempty"`

	// The status of the secret.
	Status *string `json:"status,omitempty" tf:"status,omitempty"`

	// Date and time of the secret's last update (in RFC 3339 format).
	UpdatedAt *string `json:"updatedAt,omitempty" tf:"updated_at,omitempty"`
}

func (*VersionsObservation) DeepCopy

func (in *VersionsObservation) DeepCopy() *VersionsObservation

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

func (*VersionsObservation) DeepCopyInto

func (in *VersionsObservation) DeepCopyInto(out *VersionsObservation)

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

type VersionsParameters

type VersionsParameters struct {
}

func (*VersionsParameters) DeepCopy

func (in *VersionsParameters) DeepCopy() *VersionsParameters

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

func (*VersionsParameters) DeepCopyInto

func (in *VersionsParameters) DeepCopyInto(out *VersionsParameters)

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