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 (tr *Token) GetInitParameters() (map[string]any, error)
- func (mg *Token) GetManagementPolicies() xpv1.ManagementPolicies
- func (tr *Token) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)
- 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) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *Token) GetTerraformResourceType() string
- func (tr *Token) GetTerraformSchemaVersion() int
- func (mg *Token) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *Token) Hub()
- 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) SetManagementPolicies(r xpv1.ManagementPolicies)
- 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) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *Token) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type TokenInitParameters
- 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="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.scopes) || (has(self.initProvider) && has(self.initProvider.scopes))",message="spec.forProvider.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="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,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) GetInitParameters ¶ added in v0.0.16
GetInitParameters of this Token
func (*Token) GetManagementPolicies ¶ added in v0.0.16
func (mg *Token) GetManagementPolicies() xpv1.ManagementPolicies
GetManagementPolicies of this Token.
func (*Token) GetMergedParameters ¶ added in v0.0.16
GetInitParameters 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) 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) Hub ¶ added in v0.0.16
func (tr *Token) Hub()
Hub marks this type as a conversion hub.
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) SetManagementPolicies ¶ added in v0.0.16
func (mg *Token) SetManagementPolicies(r xpv1.ManagementPolicies)
SetManagementPolicies 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) 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 TokenInitParameters ¶ added in v0.0.16
type TokenInitParameters 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 Expiry *string `json:"expiry,omitempty" tf:"expiry,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://techdocs.akamai.com/linode-api/reference/get-started#oauth-reference Scopes *string `json:"scopes,omitempty" tf:"scopes,omitempty"` }
func (*TokenInitParameters) DeepCopy ¶ added in v0.0.16
func (in *TokenInitParameters) DeepCopy() *TokenInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TokenInitParameters.
func (*TokenInitParameters) DeepCopyInto ¶ added in v0.0.16
func (in *TokenInitParameters) DeepCopyInto(out *TokenInitParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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://techdocs.akamai.com/linode-api/reference/get-started#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://techdocs.akamai.com/linode-api/reference/get-started#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"` // 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 TokenInitParameters `json:"initProvider,omitempty"` }
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.