Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +groupName=token.linode.upbound.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type Token
- func (in *Token) DeepCopy() *Token
- func (in *Token) DeepCopyInto(out *Token)
- func (in *Token) DeepCopyObject() runtime.Object
- func (mg *Token) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *Token) GetConnectionDetailsMapping() map[string]string
- func (mg *Token) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *Token) GetID() string
- func (mg *Token) GetManagementPolicy() xpv1.ManagementPolicy
- func (tr *Token) GetObservation() (map[string]any, error)
- func (tr *Token) GetParameters() (map[string]any, error)
- func (mg *Token) GetProviderConfigReference() *xpv1.Reference
- func (mg *Token) GetProviderReference() *xpv1.Reference
- func (mg *Token) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *Token) GetTerraformResourceType() string
- func (tr *Token) GetTerraformSchemaVersion() int
- func (mg *Token) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *Token) LateInitialize(attrs []byte) (bool, error)
- func (mg *Token) SetConditions(c ...xpv1.Condition)
- func (mg *Token) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *Token) SetManagementPolicy(r xpv1.ManagementPolicy)
- func (tr *Token) SetObservation(obs map[string]any) error
- func (tr *Token) SetParameters(params map[string]any) error
- func (mg *Token) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Token) SetProviderReference(r *xpv1.Reference)
- func (mg *Token) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *Token) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type TokenList
- type TokenObservation
- type TokenParameters
- type TokenSpec
- type TokenStatus
Constants ¶
const ( CRDGroup = "token.linode.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 ( Token_Kind = "Token" Token_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Token_Kind}.String() Token_KindAPIVersion = Token_Kind + "." + CRDGroupVersion.String() Token_GroupVersionKind = CRDGroupVersion.WithKind(Token_Kind) )
Repository type metadata.
Functions ¶
This section is empty.
Types ¶
type Token ¶
type Token struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.scopes)",message="scopes is a required parameter" Spec TokenSpec `json:"spec"` Status TokenStatus `json:"status,omitempty"` }
Token is the Schema for the Tokens API. Manages a Linode Token. +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,linode}
func (*Token) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Token.
func (*Token) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Token) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Token) GetCondition ¶
func (mg *Token) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this Token.
func (*Token) GetConnectionDetailsMapping ¶
GetConnectionDetailsMapping for this Token
func (*Token) GetDeletionPolicy ¶
func (mg *Token) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Token.
func (*Token) GetManagementPolicy ¶ added in v0.0.8
func (mg *Token) GetManagementPolicy() xpv1.ManagementPolicy
GetManagementPolicy of this Token.
func (*Token) GetObservation ¶
GetObservation of this Token
func (*Token) GetParameters ¶
GetParameters of this Token
func (*Token) GetProviderConfigReference ¶
GetProviderConfigReference of this Token.
func (*Token) GetProviderReference ¶
GetProviderReference of this Token. Deprecated: Use GetProviderConfigReference.
func (*Token) GetPublishConnectionDetailsTo ¶
func (mg *Token) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this Token.
func (*Token) GetTerraformResourceType ¶
GetTerraformResourceType returns Terraform resource type for this Token
func (*Token) GetTerraformSchemaVersion ¶
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*Token) GetWriteConnectionSecretToReference ¶
func (mg *Token) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Token.
func (*Token) LateInitialize ¶
LateInitialize this Token using its observed tfState. returns True if there are any spec changes for the resource.
func (*Token) SetConditions ¶
SetConditions of this Token.
func (*Token) SetDeletionPolicy ¶
func (mg *Token) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this Token.
func (*Token) SetManagementPolicy ¶ added in v0.0.8
func (mg *Token) SetManagementPolicy(r xpv1.ManagementPolicy)
SetManagementPolicy of this Token.
func (*Token) SetObservation ¶
SetObservation for this Token
func (*Token) SetParameters ¶
SetParameters for this Token
func (*Token) SetProviderConfigReference ¶
SetProviderConfigReference of this Token.
func (*Token) SetProviderReference ¶
SetProviderReference of this Token. Deprecated: Use SetProviderConfigReference.
func (*Token) SetPublishConnectionDetailsTo ¶
func (mg *Token) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this Token.
func (*Token) SetWriteConnectionSecretToReference ¶
func (mg *Token) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this Token.
type TokenList ¶
type TokenList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Token `json:"items"` }
TokenList contains a list of Tokens
func (*TokenList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TokenList.
func (*TokenList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TokenList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TokenObservation ¶
type TokenObservation struct { // The date this Token was created. // The date and time this token was created. Created *string `json:"created,omitempty" tf:"created,omitempty"` // When this token will expire. Personal Access Tokens cannot be renewed, so after this time the token will be completely unusable and a new token will need to be generated. Tokens may be created with 'null' as their expiry and will never expire unless revoked. // When this token will expire. Personal Access Tokens cannot be renewed, so after this time the token will be completely unusable and a new token will need to be generated. Tokens may be created with 'null' as their expiry and will never expire unless revoked. Format: 2006-01-02T15:04:05Z Expiry *string `json:"expiry,omitempty" tf:"expiry,omitempty"` ID *string `json:"id,omitempty" tf:"id,omitempty"` // A label for the Token. // The label of the Linode Token. Label *string `json:"label,omitempty" tf:"label,omitempty"` // The scopes this token was created with. These define what parts of the Account the token can be used to access. Many command-line tools, such as the Linode CLI, require tokens with access to *. Tokens with more restrictive scopes are generally more secure. All scopes can be viewed in the Linode API documentation. // The scopes this token was created with. These define what parts of the Account the token can be used to access. Many command-line tools, such as the Linode CLI, require tokens with access to *. Tokens with more restrictive scopes are generally more secure. Multiple scopes are separated by a space character (e.g., "databases:read_only events:read_only"). You can find the list of available scopes on Linode API docs site, https://www.linode.com/docs/api#oauth-reference Scopes *string `json:"scopes,omitempty" tf:"scopes,omitempty"` }
func (*TokenObservation) DeepCopy ¶
func (in *TokenObservation) DeepCopy() *TokenObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TokenObservation.
func (*TokenObservation) DeepCopyInto ¶
func (in *TokenObservation) DeepCopyInto(out *TokenObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TokenParameters ¶
type TokenParameters struct { // When this token will expire. Personal Access Tokens cannot be renewed, so after this time the token will be completely unusable and a new token will need to be generated. Tokens may be created with 'null' as their expiry and will never expire unless revoked. // When this token will expire. Personal Access Tokens cannot be renewed, so after this time the token will be completely unusable and a new token will need to be generated. Tokens may be created with 'null' as their expiry and will never expire unless revoked. Format: 2006-01-02T15:04:05Z // +kubebuilder:validation:Optional Expiry *string `json:"expiry,omitempty" tf:"expiry,omitempty"` // A label for the Token. // The label of the Linode Token. // +kubebuilder:validation:Optional Label *string `json:"label,omitempty" tf:"label,omitempty"` // The scopes this token was created with. These define what parts of the Account the token can be used to access. Many command-line tools, such as the Linode CLI, require tokens with access to *. Tokens with more restrictive scopes are generally more secure. All scopes can be viewed in the Linode API documentation. // The scopes this token was created with. These define what parts of the Account the token can be used to access. Many command-line tools, such as the Linode CLI, require tokens with access to *. Tokens with more restrictive scopes are generally more secure. Multiple scopes are separated by a space character (e.g., "databases:read_only events:read_only"). You can find the list of available scopes on Linode API docs site, https://www.linode.com/docs/api#oauth-reference // +kubebuilder:validation:Optional Scopes *string `json:"scopes,omitempty" tf:"scopes,omitempty"` }
func (*TokenParameters) DeepCopy ¶
func (in *TokenParameters) DeepCopy() *TokenParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TokenParameters.
func (*TokenParameters) DeepCopyInto ¶
func (in *TokenParameters) DeepCopyInto(out *TokenParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TokenSpec ¶
type TokenSpec struct { v1.ResourceSpec `json:",inline"` ForProvider TokenParameters `json:"forProvider"` }
TokenSpec defines the desired state of Token
func (*TokenSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TokenSpec.
func (*TokenSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TokenStatus ¶
type TokenStatus struct { v1.ResourceStatus `json:",inline"` AtProvider TokenObservation `json:"atProvider,omitempty"` }
TokenStatus defines the observed state of Token.
func (*TokenStatus) DeepCopy ¶
func (in *TokenStatus) DeepCopy() *TokenStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TokenStatus.
func (*TokenStatus) DeepCopyInto ¶
func (in *TokenStatus) DeepCopyInto(out *TokenStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.