v1alpha1

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=token.linode.upbound.io +versionName=v1alpha1

Index

Constants

View Source
const (
	CRDGroup   = "token.linode.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 (
	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

func (in *Token) DeepCopy() *Token

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

func (*Token) DeepCopyInto

func (in *Token) DeepCopyInto(out *Token)

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

func (*Token) DeepCopyObject

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

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

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

GetConnectionDetailsMapping for this Token

func (*Token) GetDeletionPolicy

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

GetDeletionPolicy of this Token.

func (*Token) GetID

func (tr *Token) GetID() string

GetID returns ID of underlying Terraform resource of this Token

func (*Token) GetManagementPolicy added in v0.0.8

func (mg *Token) GetManagementPolicy() xpv1.ManagementPolicy

GetManagementPolicy of this Token.

func (*Token) GetObservation

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

GetObservation of this Token

func (*Token) GetParameters

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

GetParameters of this Token

func (*Token) GetProviderConfigReference

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

GetProviderConfigReference of this Token.

func (*Token) GetProviderReference

func (mg *Token) GetProviderReference() *xpv1.Reference

GetProviderReference of this Token. Deprecated: Use GetProviderConfigReference.

func (*Token) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this Token.

func (*Token) GetTerraformResourceType

func (mg *Token) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Token

func (*Token) GetTerraformSchemaVersion

func (tr *Token) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Token) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Token.

func (*Token) LateInitialize

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

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

func (*Token) SetConditions

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

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

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

SetObservation for this Token

func (*Token) SetParameters

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

SetParameters for this Token

func (*Token) SetProviderConfigReference

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

SetProviderConfigReference of this Token.

func (*Token) SetProviderReference

func (mg *Token) SetProviderReference(r *xpv1.Reference)

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

func (in *TokenList) DeepCopy() *TokenList

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

func (*TokenList) DeepCopyInto

func (in *TokenList) DeepCopyInto(out *TokenList)

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

func (*TokenList) DeepCopyObject

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

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

func (*TokenList) GetItems

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

GetItems of this TokenList.

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

func (in *TokenSpec) DeepCopy() *TokenSpec

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

func (*TokenSpec) DeepCopyInto

func (in *TokenSpec) DeepCopyInto(out *TokenSpec)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL