v1alpha1

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=label.harbor.crossplane.io +versionName=v1alpha1

Index

Constants

View Source
const (
	CRDGroup   = "label.harbor.crossplane.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 (
	Label_Kind             = "Label"
	Label_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Label_Kind}.String()
	Label_KindAPIVersion   = Label_Kind + "." + CRDGroupVersion.String()
	Label_GroupVersionKind = CRDGroupVersion.WithKind(Label_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type Label

type Label 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   LabelSpec   `json:"spec"`
	Status LabelStatus `json:"status,omitempty"`
}

Label is the Schema for the Labels API. +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,harbor}

func (*Label) DeepCopy

func (in *Label) DeepCopy() *Label

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

func (*Label) DeepCopyInto

func (in *Label) DeepCopyInto(out *Label)

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

func (*Label) DeepCopyObject

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

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

func (*Label) GetCondition

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

GetCondition of this Label.

func (*Label) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this Label

func (*Label) GetDeletionPolicy

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

GetDeletionPolicy of this Label.

func (*Label) GetID

func (tr *Label) GetID() string

GetID returns ID of underlying Terraform resource of this Label

func (*Label) GetInitParameters

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

GetInitParameters of this Label

func (*Label) GetManagementPolicies

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

GetManagementPolicies of this Label.

func (*Label) GetObservation

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

GetObservation of this Label

func (*Label) GetParameters

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

GetParameters of this Label

func (*Label) GetProviderConfigReference

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

GetProviderConfigReference of this Label.

func (*Label) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this Label.

func (*Label) GetTerraformResourceType

func (mg *Label) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Label

func (*Label) GetTerraformSchemaVersion

func (tr *Label) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Label) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Label.

func (*Label) LateInitialize

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

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

func (*Label) ResolveReferences

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

ResolveReferences of this Label.

func (*Label) SetConditions

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

SetConditions of this Label.

func (*Label) SetDeletionPolicy

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

SetDeletionPolicy of this Label.

func (*Label) SetManagementPolicies

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

SetManagementPolicies of this Label.

func (*Label) SetObservation

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

SetObservation for this Label

func (*Label) SetParameters

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

SetParameters for this Label

func (*Label) SetProviderConfigReference

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

SetProviderConfigReference of this Label.

func (*Label) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this Label.

func (*Label) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this Label.

type LabelInitParameters

type LabelInitParameters struct {

	// (String) The color of the label within harbor (Default: #FFFFF)
	Color *string `json:"color,omitempty" tf:"color,omitempty"`

	// (String) The Description of the label within harbor
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// (String) The of name of the label within harbor.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`
}

func (*LabelInitParameters) DeepCopy

func (in *LabelInitParameters) DeepCopy() *LabelInitParameters

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

func (*LabelInitParameters) DeepCopyInto

func (in *LabelInitParameters) DeepCopyInto(out *LabelInitParameters)

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

type LabelList

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

LabelList contains a list of Labels

func (*LabelList) DeepCopy

func (in *LabelList) DeepCopy() *LabelList

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

func (*LabelList) DeepCopyInto

func (in *LabelList) DeepCopyInto(out *LabelList)

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

func (*LabelList) DeepCopyObject

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

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

func (*LabelList) GetItems

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

GetItems of this LabelList.

type LabelObservation

type LabelObservation struct {

	// (String) The color of the label within harbor (Default: #FFFFF)
	Color *string `json:"color,omitempty" tf:"color,omitempty"`

	// (String) The Description of the label within harbor
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// (String) The ID of this resource.
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// (String) The of name of the label within harbor.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// (String) The id of the project with harbor.
	ProjectID *string `json:"projectId,omitempty" tf:"project_id,omitempty"`

	// (String)
	Scope *string `json:"scope,omitempty" tf:"scope,omitempty"`
}

func (*LabelObservation) DeepCopy

func (in *LabelObservation) DeepCopy() *LabelObservation

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

func (*LabelObservation) DeepCopyInto

func (in *LabelObservation) DeepCopyInto(out *LabelObservation)

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

type LabelParameters

type LabelParameters struct {

	// (String) The color of the label within harbor (Default: #FFFFF)
	// +kubebuilder:validation:Optional
	Color *string `json:"color,omitempty" tf:"color,omitempty"`

	// (String) The Description of the label within harbor
	// +kubebuilder:validation:Optional
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// (String) The of name of the label within harbor.
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// (String) The id of the project with harbor.
	// +crossplane:generate:reference:type=github.com/globallogicuki/provider-harbor/apis/project/v1alpha1.Project
	// +kubebuilder:validation:Optional
	ProjectID *string `json:"projectId,omitempty" tf:"project_id,omitempty"`

	// Reference to a Project in project to populate projectId.
	// +kubebuilder:validation:Optional
	ProjectIDRef *v1.Reference `json:"projectIdRef,omitempty" tf:"-"`

	// Selector for a Project in project to populate projectId.
	// +kubebuilder:validation:Optional
	ProjectIDSelector *v1.Selector `json:"projectIdSelector,omitempty" tf:"-"`
}

func (*LabelParameters) DeepCopy

func (in *LabelParameters) DeepCopy() *LabelParameters

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

func (*LabelParameters) DeepCopyInto

func (in *LabelParameters) DeepCopyInto(out *LabelParameters)

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

type LabelSpec

type LabelSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     LabelParameters `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 LabelInitParameters `json:"initProvider,omitempty"`
}

LabelSpec defines the desired state of Label

func (*LabelSpec) DeepCopy

func (in *LabelSpec) DeepCopy() *LabelSpec

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

func (*LabelSpec) DeepCopyInto

func (in *LabelSpec) DeepCopyInto(out *LabelSpec)

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

type LabelStatus

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

LabelStatus defines the observed state of Label.

func (*LabelStatus) DeepCopy

func (in *LabelStatus) DeepCopy() *LabelStatus

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

func (*LabelStatus) DeepCopyInto

func (in *LabelStatus) DeepCopyInto(out *LabelStatus)

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