Documentation
¶
Overview ¶
+kubebuilder:object:generate=true +groupName=secrets.scaleway.upbound.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type EphemeralPolicyInitParameters
- type EphemeralPolicyObservation
- type EphemeralPolicyParameters
- type Secret
- func (in *Secret) DeepCopy() *Secret
- func (in *Secret) DeepCopyInto(out *Secret)
- func (in *Secret) DeepCopyObject() runtime.Object
- func (mg *Secret) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *Secret) GetConnectionDetailsMapping() map[string]string
- func (mg *Secret) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *Secret) GetID() string
- func (tr *Secret) GetInitParameters() (map[string]any, error)
- func (mg *Secret) GetManagementPolicies() xpv1.ManagementPolicies
- func (tr *Secret) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)
- func (tr *Secret) GetObservation() (map[string]any, error)
- func (tr *Secret) GetParameters() (map[string]any, error)
- func (mg *Secret) GetProviderConfigReference() *xpv1.Reference
- func (mg *Secret) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *Secret) GetTerraformResourceType() string
- func (tr *Secret) GetTerraformSchemaVersion() int
- func (mg *Secret) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *Secret) Hub()
- func (tr *Secret) LateInitialize(attrs []byte) (bool, error)
- func (mg *Secret) SetConditions(c ...xpv1.Condition)
- func (mg *Secret) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *Secret) SetManagementPolicies(r xpv1.ManagementPolicies)
- func (tr *Secret) SetObservation(obs map[string]any) error
- func (tr *Secret) SetParameters(params map[string]any) error
- func (mg *Secret) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Secret) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *Secret) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type SecretInitParameters
- type SecretList
- type SecretObservation
- type SecretParameters
- type SecretSpec
- type SecretStatus
- type Version
- func (in *Version) DeepCopy() *Version
- func (in *Version) DeepCopyInto(out *Version)
- func (in *Version) DeepCopyObject() runtime.Object
- func (mg *Version) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *Version) GetConnectionDetailsMapping() map[string]string
- func (mg *Version) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *Version) GetID() string
- func (tr *Version) GetInitParameters() (map[string]any, error)
- func (mg *Version) GetManagementPolicies() xpv1.ManagementPolicies
- func (tr *Version) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)
- func (tr *Version) GetObservation() (map[string]any, error)
- func (tr *Version) GetParameters() (map[string]any, error)
- func (mg *Version) GetProviderConfigReference() *xpv1.Reference
- func (mg *Version) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *Version) GetTerraformResourceType() string
- func (tr *Version) GetTerraformSchemaVersion() int
- func (mg *Version) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *Version) Hub()
- func (tr *Version) LateInitialize(attrs []byte) (bool, error)
- func (mg *Version) ResolveReferences(ctx context.Context, c client.Reader) error
- func (mg *Version) SetConditions(c ...xpv1.Condition)
- func (mg *Version) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *Version) SetManagementPolicies(r xpv1.ManagementPolicies)
- func (tr *Version) SetObservation(obs map[string]any) error
- func (tr *Version) SetParameters(params map[string]any) error
- func (mg *Version) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Version) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *Version) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type VersionInitParameters
- type VersionList
- type VersionObservation
- type VersionParameters
- type VersionSpec
- type VersionStatus
- type VersionsInitParameters
- type VersionsObservation
- type VersionsParameters
Constants ¶
const ( CRDGroup = "secrets.scaleway.upbound.io" CRDVersion = "v1alpha1" )
Package type metadata.
Variables ¶
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 )
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.
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 ¶
func (in *EphemeralPolicyInitParameters) DeepCopy() *EphemeralPolicyInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EphemeralPolicyInitParameters.
func (*EphemeralPolicyInitParameters) DeepCopyInto ¶
func (in *EphemeralPolicyInitParameters) DeepCopyInto(out *EphemeralPolicyInitParameters)
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 ¶
func (in *EphemeralPolicyObservation) DeepCopy() *EphemeralPolicyObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EphemeralPolicyObservation.
func (*EphemeralPolicyObservation) DeepCopyInto ¶
func (in *EphemeralPolicyObservation) DeepCopyInto(out *EphemeralPolicyObservation)
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 ¶
func (in *EphemeralPolicyParameters) DeepCopy() *EphemeralPolicyParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EphemeralPolicyParameters.
func (*EphemeralPolicyParameters) DeepCopyInto ¶
func (in *EphemeralPolicyParameters) DeepCopyInto(out *EphemeralPolicyParameters)
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Secret.
func (*Secret) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Secret) DeepCopyObject ¶
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 ¶
GetConnectionDetailsMapping for this Secret
func (*Secret) GetDeletionPolicy ¶
func (mg *Secret) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Secret.
func (*Secret) GetInitParameters ¶
GetInitParameters of this Secret
func (*Secret) GetManagementPolicies ¶
func (mg *Secret) GetManagementPolicies() xpv1.ManagementPolicies
GetManagementPolicies of this Secret.
func (*Secret) GetMergedParameters ¶
GetInitParameters of this Secret
func (*Secret) GetObservation ¶
GetObservation of this Secret
func (*Secret) GetParameters ¶
GetParameters of this Secret
func (*Secret) GetProviderConfigReference ¶
GetProviderConfigReference of this Secret.
func (*Secret) GetPublishConnectionDetailsTo ¶
func (mg *Secret) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this Secret.
func (*Secret) GetTerraformResourceType ¶
GetTerraformResourceType returns Terraform resource type for this Secret
func (*Secret) GetTerraformSchemaVersion ¶
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*Secret) GetWriteConnectionSecretToReference ¶
func (mg *Secret) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Secret.
func (*Secret) LateInitialize ¶
LateInitialize this Secret using its observed tfState. returns True if there are any spec changes for the resource.
func (*Secret) SetConditions ¶
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 ¶
SetObservation for this Secret
func (*Secret) SetParameters ¶
SetParameters for this Secret
func (*Secret) SetProviderConfigReference ¶
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 ¶
func (in *SecretInitParameters) DeepCopy() *SecretInitParameters
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Version.
func (*Version) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Version) DeepCopyObject ¶
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 ¶
GetConnectionDetailsMapping for this Version
func (*Version) GetDeletionPolicy ¶
func (mg *Version) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Version.
func (*Version) GetInitParameters ¶
GetInitParameters of this Version
func (*Version) GetManagementPolicies ¶
func (mg *Version) GetManagementPolicies() xpv1.ManagementPolicies
GetManagementPolicies of this Version.
func (*Version) GetMergedParameters ¶
GetInitParameters of this Version
func (*Version) GetObservation ¶
GetObservation of this Version
func (*Version) GetParameters ¶
GetParameters of this Version
func (*Version) GetProviderConfigReference ¶
GetProviderConfigReference of this Version.
func (*Version) GetPublishConnectionDetailsTo ¶
func (mg *Version) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this Version.
func (*Version) GetTerraformResourceType ¶
GetTerraformResourceType returns Terraform resource type for this Version
func (*Version) GetTerraformSchemaVersion ¶
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*Version) GetWriteConnectionSecretToReference ¶
func (mg *Version) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Version.
func (*Version) LateInitialize ¶
LateInitialize this Version using its observed tfState. returns True if there are any spec changes for the resource.
func (*Version) ResolveReferences ¶
ResolveReferences of this Version.
func (*Version) SetConditions ¶
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 ¶
SetObservation for this Version
func (*Version) SetParameters ¶
SetParameters for this Version
func (*Version) SetProviderConfigReference ¶
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 ¶
func (in *VersionInitParameters) DeepCopy() *VersionInitParameters
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 ¶
func (in *VersionsInitParameters) DeepCopy() *VersionsInitParameters
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.