Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +groupName=robotaccount.harbor.crossplane.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type AccessInitParameters
- type AccessObservation
- type AccessParameters
- type PermissionsInitParameters
- type PermissionsObservation
- type PermissionsParameters
- type RobotAccount
- func (in *RobotAccount) DeepCopy() *RobotAccount
- func (in *RobotAccount) DeepCopyInto(out *RobotAccount)
- func (in *RobotAccount) DeepCopyObject() runtime.Object
- func (mg *RobotAccount) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *RobotAccount) GetConnectionDetailsMapping() map[string]string
- func (mg *RobotAccount) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *RobotAccount) GetID() string
- func (tr *RobotAccount) GetInitParameters() (map[string]any, error)
- func (mg *RobotAccount) GetManagementPolicies() xpv1.ManagementPolicies
- func (tr *RobotAccount) GetObservation() (map[string]any, error)
- func (tr *RobotAccount) GetParameters() (map[string]any, error)
- func (mg *RobotAccount) GetProviderConfigReference() *xpv1.Reference
- func (mg *RobotAccount) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *RobotAccount) GetTerraformResourceType() string
- func (tr *RobotAccount) GetTerraformSchemaVersion() int
- func (mg *RobotAccount) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *RobotAccount) LateInitialize(attrs []byte) (bool, error)
- func (mg *RobotAccount) SetConditions(c ...xpv1.Condition)
- func (mg *RobotAccount) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *RobotAccount) SetManagementPolicies(r xpv1.ManagementPolicies)
- func (tr *RobotAccount) SetObservation(obs map[string]any) error
- func (tr *RobotAccount) SetParameters(params map[string]any) error
- func (mg *RobotAccount) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *RobotAccount) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *RobotAccount) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type RobotAccountInitParameters
- type RobotAccountList
- type RobotAccountObservation
- type RobotAccountParameters
- type RobotAccountSpec
- type RobotAccountStatus
Constants ¶
const ( CRDGroup = "robotaccount.harbor.crossplane.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 ( RobotAccount_Kind = "RobotAccount" RobotAccount_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: RobotAccount_Kind}.String() RobotAccount_KindAPIVersion = RobotAccount_Kind + "." + CRDGroupVersion.String() RobotAccount_GroupVersionKind = CRDGroupVersion.WithKind(RobotAccount_Kind) )
Repository type metadata.
Functions ¶
This section is empty.
Types ¶
type AccessInitParameters ¶
type AccessInitParameters struct { // (String) Eg. push, pull, read, etc. Check available actions. Action *string `json:"action,omitempty" tf:"action,omitempty"` // (String) Either allow or deny. Defaults to allow. Effect *string `json:"effect,omitempty" tf:"effect,omitempty"` // (String) Eg. repository, labels, etc. Check available resources. Resource *string `json:"resource,omitempty" tf:"resource,omitempty"` }
func (*AccessInitParameters) DeepCopy ¶
func (in *AccessInitParameters) DeepCopy() *AccessInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessInitParameters.
func (*AccessInitParameters) DeepCopyInto ¶
func (in *AccessInitParameters) DeepCopyInto(out *AccessInitParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AccessObservation ¶
type AccessObservation struct { // (String) Eg. push, pull, read, etc. Check available actions. Action *string `json:"action,omitempty" tf:"action,omitempty"` // (String) Either allow or deny. Defaults to allow. Effect *string `json:"effect,omitempty" tf:"effect,omitempty"` // (String) Eg. repository, labels, etc. Check available resources. Resource *string `json:"resource,omitempty" tf:"resource,omitempty"` }
func (*AccessObservation) DeepCopy ¶
func (in *AccessObservation) DeepCopy() *AccessObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessObservation.
func (*AccessObservation) DeepCopyInto ¶
func (in *AccessObservation) DeepCopyInto(out *AccessObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AccessParameters ¶
type AccessParameters struct { // (String) Eg. push, pull, read, etc. Check available actions. // +kubebuilder:validation:Optional Action *string `json:"action" tf:"action,omitempty"` // (String) Either allow or deny. Defaults to allow. // +kubebuilder:validation:Optional Effect *string `json:"effect,omitempty" tf:"effect,omitempty"` // (String) Eg. repository, labels, etc. Check available resources. // +kubebuilder:validation:Optional Resource *string `json:"resource" tf:"resource,omitempty"` }
func (*AccessParameters) DeepCopy ¶
func (in *AccessParameters) DeepCopy() *AccessParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessParameters.
func (*AccessParameters) DeepCopyInto ¶
func (in *AccessParameters) DeepCopyInto(out *AccessParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PermissionsInitParameters ¶
type PermissionsInitParameters struct { // (Block Set, Min: 1) (see below for nested schema) Access []AccessInitParameters `json:"access,omitempty" tf:"access,omitempty"` // (String) Either system or project. Kind *string `json:"kind,omitempty" tf:"kind,omitempty"` // (String) namespace is the name of your project. For kind system permissions, always use / as namespace. Use * to match all projects. Namespace *string `json:"namespace,omitempty" tf:"namespace,omitempty"` }
func (*PermissionsInitParameters) DeepCopy ¶
func (in *PermissionsInitParameters) DeepCopy() *PermissionsInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PermissionsInitParameters.
func (*PermissionsInitParameters) DeepCopyInto ¶
func (in *PermissionsInitParameters) DeepCopyInto(out *PermissionsInitParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PermissionsObservation ¶
type PermissionsObservation struct { // (Block Set, Min: 1) (see below for nested schema) Access []AccessObservation `json:"access,omitempty" tf:"access,omitempty"` // (String) Either system or project. Kind *string `json:"kind,omitempty" tf:"kind,omitempty"` // (String) namespace is the name of your project. For kind system permissions, always use / as namespace. Use * to match all projects. Namespace *string `json:"namespace,omitempty" tf:"namespace,omitempty"` }
func (*PermissionsObservation) DeepCopy ¶
func (in *PermissionsObservation) DeepCopy() *PermissionsObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PermissionsObservation.
func (*PermissionsObservation) DeepCopyInto ¶
func (in *PermissionsObservation) DeepCopyInto(out *PermissionsObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PermissionsParameters ¶
type PermissionsParameters struct { // (Block Set, Min: 1) (see below for nested schema) // +kubebuilder:validation:Optional Access []AccessParameters `json:"access" tf:"access,omitempty"` // (String) Either system or project. // +kubebuilder:validation:Optional Kind *string `json:"kind" tf:"kind,omitempty"` // (String) namespace is the name of your project. For kind system permissions, always use / as namespace. Use * to match all projects. // +kubebuilder:validation:Optional Namespace *string `json:"namespace" tf:"namespace,omitempty"` }
func (*PermissionsParameters) DeepCopy ¶
func (in *PermissionsParameters) DeepCopy() *PermissionsParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PermissionsParameters.
func (*PermissionsParameters) DeepCopyInto ¶
func (in *PermissionsParameters) DeepCopyInto(out *PermissionsParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RobotAccount ¶
type RobotAccount 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.level) || (has(self.initProvider) && has(self.initProvider.level))",message="spec.forProvider.level is a required parameter" // +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" // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.permissions) || (has(self.initProvider) && has(self.initProvider.permissions))",message="spec.forProvider.permissions is a required parameter" Spec RobotAccountSpec `json:"spec"` Status RobotAccountStatus `json:"status,omitempty"` }
RobotAccount is the Schema for the RobotAccounts 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 (*RobotAccount) DeepCopy ¶
func (in *RobotAccount) DeepCopy() *RobotAccount
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RobotAccount.
func (*RobotAccount) DeepCopyInto ¶
func (in *RobotAccount) DeepCopyInto(out *RobotAccount)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RobotAccount) DeepCopyObject ¶
func (in *RobotAccount) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*RobotAccount) GetCondition ¶
func (mg *RobotAccount) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this RobotAccount.
func (*RobotAccount) GetConnectionDetailsMapping ¶
func (tr *RobotAccount) GetConnectionDetailsMapping() map[string]string
GetConnectionDetailsMapping for this RobotAccount
func (*RobotAccount) GetDeletionPolicy ¶
func (mg *RobotAccount) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this RobotAccount.
func (*RobotAccount) GetID ¶
func (tr *RobotAccount) GetID() string
GetID returns ID of underlying Terraform resource of this RobotAccount
func (*RobotAccount) GetInitParameters ¶
func (tr *RobotAccount) GetInitParameters() (map[string]any, error)
GetInitParameters of this RobotAccount
func (*RobotAccount) GetManagementPolicies ¶
func (mg *RobotAccount) GetManagementPolicies() xpv1.ManagementPolicies
GetManagementPolicies of this RobotAccount.
func (*RobotAccount) GetObservation ¶
func (tr *RobotAccount) GetObservation() (map[string]any, error)
GetObservation of this RobotAccount
func (*RobotAccount) GetParameters ¶
func (tr *RobotAccount) GetParameters() (map[string]any, error)
GetParameters of this RobotAccount
func (*RobotAccount) GetProviderConfigReference ¶
func (mg *RobotAccount) GetProviderConfigReference() *xpv1.Reference
GetProviderConfigReference of this RobotAccount.
func (*RobotAccount) GetPublishConnectionDetailsTo ¶
func (mg *RobotAccount) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this RobotAccount.
func (*RobotAccount) GetTerraformResourceType ¶
func (mg *RobotAccount) GetTerraformResourceType() string
GetTerraformResourceType returns Terraform resource type for this RobotAccount
func (*RobotAccount) GetTerraformSchemaVersion ¶
func (tr *RobotAccount) GetTerraformSchemaVersion() int
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*RobotAccount) GetWriteConnectionSecretToReference ¶
func (mg *RobotAccount) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this RobotAccount.
func (*RobotAccount) LateInitialize ¶
func (tr *RobotAccount) LateInitialize(attrs []byte) (bool, error)
LateInitialize this RobotAccount using its observed tfState. returns True if there are any spec changes for the resource.
func (*RobotAccount) SetConditions ¶
func (mg *RobotAccount) SetConditions(c ...xpv1.Condition)
SetConditions of this RobotAccount.
func (*RobotAccount) SetDeletionPolicy ¶
func (mg *RobotAccount) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this RobotAccount.
func (*RobotAccount) SetManagementPolicies ¶
func (mg *RobotAccount) SetManagementPolicies(r xpv1.ManagementPolicies)
SetManagementPolicies of this RobotAccount.
func (*RobotAccount) SetObservation ¶
func (tr *RobotAccount) SetObservation(obs map[string]any) error
SetObservation for this RobotAccount
func (*RobotAccount) SetParameters ¶
func (tr *RobotAccount) SetParameters(params map[string]any) error
SetParameters for this RobotAccount
func (*RobotAccount) SetProviderConfigReference ¶
func (mg *RobotAccount) SetProviderConfigReference(r *xpv1.Reference)
SetProviderConfigReference of this RobotAccount.
func (*RobotAccount) SetPublishConnectionDetailsTo ¶
func (mg *RobotAccount) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this RobotAccount.
func (*RobotAccount) SetWriteConnectionSecretToReference ¶
func (mg *RobotAccount) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this RobotAccount.
type RobotAccountInitParameters ¶
type RobotAccountInitParameters struct { // (String) The description of the robot account will be displayed in harbor. Description *string `json:"description,omitempty" tf:"description,omitempty"` // (Boolean) Disables the robot account when set to true. Disable *bool `json:"disable,omitempty" tf:"disable,omitempty"` // (Number) By default, the robot account will not expire. Set it to the amount of days until the account should expire. Duration *float64 `json:"duration,omitempty" tf:"duration,omitempty"` // (String) Level of the robot account, currently either system or project. Level *string `json:"level,omitempty" tf:"level,omitempty"` // (String) The name of the project that will be created in harbor. Name *string `json:"name,omitempty" tf:"name,omitempty"` // (Block Set, Min: 1) (see below for nested schema) Permissions []PermissionsInitParameters `json:"permissions,omitempty" tf:"permissions,omitempty"` }
func (*RobotAccountInitParameters) DeepCopy ¶
func (in *RobotAccountInitParameters) DeepCopy() *RobotAccountInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RobotAccountInitParameters.
func (*RobotAccountInitParameters) DeepCopyInto ¶
func (in *RobotAccountInitParameters) DeepCopyInto(out *RobotAccountInitParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RobotAccountList ¶
type RobotAccountList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []RobotAccount `json:"items"` }
RobotAccountList contains a list of RobotAccounts
func (*RobotAccountList) DeepCopy ¶
func (in *RobotAccountList) DeepCopy() *RobotAccountList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RobotAccountList.
func (*RobotAccountList) DeepCopyInto ¶
func (in *RobotAccountList) DeepCopyInto(out *RobotAccountList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RobotAccountList) DeepCopyObject ¶
func (in *RobotAccountList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*RobotAccountList) GetItems ¶
func (l *RobotAccountList) GetItems() []resource.Managed
GetItems of this RobotAccountList.
type RobotAccountObservation ¶
type RobotAccountObservation struct { // (String) The description of the robot account will be displayed in harbor. Description *string `json:"description,omitempty" tf:"description,omitempty"` // (Boolean) Disables the robot account when set to true. Disable *bool `json:"disable,omitempty" tf:"disable,omitempty"` // (Number) By default, the robot account will not expire. Set it to the amount of days until the account should expire. Duration *float64 `json:"duration,omitempty" tf:"duration,omitempty"` // (String) FullName *string `json:"fullName,omitempty" tf:"full_name,omitempty"` // (String) The ID of this resource. ID *string `json:"id,omitempty" tf:"id,omitempty"` // (String) Level of the robot account, currently either system or project. Level *string `json:"level,omitempty" tf:"level,omitempty"` // (String) The name of the project that will be created in harbor. Name *string `json:"name,omitempty" tf:"name,omitempty"` // (Block Set, Min: 1) (see below for nested schema) Permissions []PermissionsObservation `json:"permissions,omitempty" tf:"permissions,omitempty"` // (String) RobotID *string `json:"robotId,omitempty" tf:"robot_id,omitempty"` }
func (*RobotAccountObservation) DeepCopy ¶
func (in *RobotAccountObservation) DeepCopy() *RobotAccountObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RobotAccountObservation.
func (*RobotAccountObservation) DeepCopyInto ¶
func (in *RobotAccountObservation) DeepCopyInto(out *RobotAccountObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RobotAccountParameters ¶
type RobotAccountParameters struct { // (String) The description of the robot account will be displayed in harbor. // +kubebuilder:validation:Optional Description *string `json:"description,omitempty" tf:"description,omitempty"` // (Boolean) Disables the robot account when set to true. // +kubebuilder:validation:Optional Disable *bool `json:"disable,omitempty" tf:"disable,omitempty"` // (Number) By default, the robot account will not expire. Set it to the amount of days until the account should expire. // +kubebuilder:validation:Optional Duration *float64 `json:"duration,omitempty" tf:"duration,omitempty"` // (String) Level of the robot account, currently either system or project. // +kubebuilder:validation:Optional Level *string `json:"level,omitempty" tf:"level,omitempty"` // (String) The name of the project that will be created in harbor. // +kubebuilder:validation:Optional Name *string `json:"name,omitempty" tf:"name,omitempty"` // (Block Set, Min: 1) (see below for nested schema) // +kubebuilder:validation:Optional Permissions []PermissionsParameters `json:"permissions,omitempty" tf:"permissions,omitempty"` // (String, Sensitive) The secret of the robot account used for authentication. Defaults to random generated string from Harbor. // +kubebuilder:validation:Optional SecretSecretRef *v1.SecretKeySelector `json:"secretSecretRef,omitempty" tf:"-"` }
func (*RobotAccountParameters) DeepCopy ¶
func (in *RobotAccountParameters) DeepCopy() *RobotAccountParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RobotAccountParameters.
func (*RobotAccountParameters) DeepCopyInto ¶
func (in *RobotAccountParameters) DeepCopyInto(out *RobotAccountParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RobotAccountSpec ¶
type RobotAccountSpec struct { v1.ResourceSpec `json:",inline"` ForProvider RobotAccountParameters `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 RobotAccountInitParameters `json:"initProvider,omitempty"` }
RobotAccountSpec defines the desired state of RobotAccount
func (*RobotAccountSpec) DeepCopy ¶
func (in *RobotAccountSpec) DeepCopy() *RobotAccountSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RobotAccountSpec.
func (*RobotAccountSpec) DeepCopyInto ¶
func (in *RobotAccountSpec) DeepCopyInto(out *RobotAccountSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RobotAccountStatus ¶
type RobotAccountStatus struct { v1.ResourceStatus `json:",inline"` AtProvider RobotAccountObservation `json:"atProvider,omitempty"` }
RobotAccountStatus defines the observed state of RobotAccount.
func (*RobotAccountStatus) DeepCopy ¶
func (in *RobotAccountStatus) DeepCopy() *RobotAccountStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RobotAccountStatus.
func (*RobotAccountStatus) DeepCopyInto ¶
func (in *RobotAccountStatus) DeepCopyInto(out *RobotAccountStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.