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: 9 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	CRDGroup   = "purgeauditlog.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 (
	PurgeAuditLog_Kind             = "PurgeAuditLog"
	PurgeAuditLog_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: PurgeAuditLog_Kind}.String()
	PurgeAuditLog_KindAPIVersion   = PurgeAuditLog_Kind + "." + CRDGroupVersion.String()
	PurgeAuditLog_GroupVersionKind = CRDGroupVersion.WithKind(PurgeAuditLog_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type PurgeAuditLog

type PurgeAuditLog 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.auditRetentionHour) || (has(self.initProvider) && has(self.initProvider.auditRetentionHour))",message="spec.forProvider.auditRetentionHour is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.includeOperations) || (has(self.initProvider) && has(self.initProvider.includeOperations))",message="spec.forProvider.includeOperations is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.schedule) || (has(self.initProvider) && has(self.initProvider.schedule))",message="spec.forProvider.schedule is a required parameter"
	Spec   PurgeAuditLogSpec   `json:"spec"`
	Status PurgeAuditLogStatus `json:"status,omitempty"`
}

PurgeAuditLog is the Schema for the PurgeAuditLogs 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 (*PurgeAuditLog) DeepCopy

func (in *PurgeAuditLog) DeepCopy() *PurgeAuditLog

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

func (*PurgeAuditLog) DeepCopyInto

func (in *PurgeAuditLog) DeepCopyInto(out *PurgeAuditLog)

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

func (*PurgeAuditLog) DeepCopyObject

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

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

func (*PurgeAuditLog) GetCondition

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

GetCondition of this PurgeAuditLog.

func (*PurgeAuditLog) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this PurgeAuditLog

func (*PurgeAuditLog) GetDeletionPolicy

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

GetDeletionPolicy of this PurgeAuditLog.

func (*PurgeAuditLog) GetID

func (tr *PurgeAuditLog) GetID() string

GetID returns ID of underlying Terraform resource of this PurgeAuditLog

func (*PurgeAuditLog) GetInitParameters

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

GetInitParameters of this PurgeAuditLog

func (*PurgeAuditLog) GetManagementPolicies

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

GetManagementPolicies of this PurgeAuditLog.

func (*PurgeAuditLog) GetObservation

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

GetObservation of this PurgeAuditLog

func (*PurgeAuditLog) GetParameters

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

GetParameters of this PurgeAuditLog

func (*PurgeAuditLog) GetProviderConfigReference

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

GetProviderConfigReference of this PurgeAuditLog.

func (*PurgeAuditLog) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this PurgeAuditLog.

func (*PurgeAuditLog) GetTerraformResourceType

func (mg *PurgeAuditLog) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this PurgeAuditLog

func (*PurgeAuditLog) GetTerraformSchemaVersion

func (tr *PurgeAuditLog) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*PurgeAuditLog) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this PurgeAuditLog.

func (*PurgeAuditLog) LateInitialize

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

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

func (*PurgeAuditLog) SetConditions

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

SetConditions of this PurgeAuditLog.

func (*PurgeAuditLog) SetDeletionPolicy

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

SetDeletionPolicy of this PurgeAuditLog.

func (*PurgeAuditLog) SetManagementPolicies

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

SetManagementPolicies of this PurgeAuditLog.

func (*PurgeAuditLog) SetObservation

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

SetObservation for this PurgeAuditLog

func (*PurgeAuditLog) SetParameters

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

SetParameters for this PurgeAuditLog

func (*PurgeAuditLog) SetProviderConfigReference

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

SetProviderConfigReference of this PurgeAuditLog.

func (*PurgeAuditLog) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this PurgeAuditLog.

func (*PurgeAuditLog) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this PurgeAuditLog.

type PurgeAuditLogInitParameters

type PurgeAuditLogInitParameters struct {

	// (Number) To configure how long audit logs should be kept. For example, if you set this to 24 Harbor will only purge audit logs that are 24 or more hours old.
	AuditRetentionHour *float64 `json:"auditRetentionHour,omitempty" tf:"audit_retention_hour,omitempty"`

	// (String) Valid values are create delete pull, thoses values can be comma separated. When Create, Delete, or Pull is set, Harbor will include audit logs for those operations in the purge.
	IncludeOperations *string `json:"includeOperations,omitempty" tf:"include_operations,omitempty"`

	// (String) Sets the schedule how often the Garbage Collection will run.  Can be to "Hourly", "Daily", "Weekly" or can be a custom cron string ie, "5 4 * * *"
	Schedule *string `json:"schedule,omitempty" tf:"schedule,omitempty"`
}

func (*PurgeAuditLogInitParameters) DeepCopy

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

func (*PurgeAuditLogInitParameters) DeepCopyInto

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

type PurgeAuditLogList

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

PurgeAuditLogList contains a list of PurgeAuditLogs

func (*PurgeAuditLogList) DeepCopy

func (in *PurgeAuditLogList) DeepCopy() *PurgeAuditLogList

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

func (*PurgeAuditLogList) DeepCopyInto

func (in *PurgeAuditLogList) DeepCopyInto(out *PurgeAuditLogList)

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

func (*PurgeAuditLogList) DeepCopyObject

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

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

func (*PurgeAuditLogList) GetItems

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

GetItems of this PurgeAuditLogList.

type PurgeAuditLogObservation

type PurgeAuditLogObservation struct {

	// (Number) To configure how long audit logs should be kept. For example, if you set this to 24 Harbor will only purge audit logs that are 24 or more hours old.
	AuditRetentionHour *float64 `json:"auditRetentionHour,omitempty" tf:"audit_retention_hour,omitempty"`

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

	// (String) Valid values are create delete pull, thoses values can be comma separated. When Create, Delete, or Pull is set, Harbor will include audit logs for those operations in the purge.
	IncludeOperations *string `json:"includeOperations,omitempty" tf:"include_operations,omitempty"`

	// (String) Sets the schedule how often the Garbage Collection will run.  Can be to "Hourly", "Daily", "Weekly" or can be a custom cron string ie, "5 4 * * *"
	Schedule *string `json:"schedule,omitempty" tf:"schedule,omitempty"`
}

func (*PurgeAuditLogObservation) DeepCopy

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

func (*PurgeAuditLogObservation) DeepCopyInto

func (in *PurgeAuditLogObservation) DeepCopyInto(out *PurgeAuditLogObservation)

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

type PurgeAuditLogParameters

type PurgeAuditLogParameters struct {

	// (Number) To configure how long audit logs should be kept. For example, if you set this to 24 Harbor will only purge audit logs that are 24 or more hours old.
	// +kubebuilder:validation:Optional
	AuditRetentionHour *float64 `json:"auditRetentionHour,omitempty" tf:"audit_retention_hour,omitempty"`

	// (String) Valid values are create delete pull, thoses values can be comma separated. When Create, Delete, or Pull is set, Harbor will include audit logs for those operations in the purge.
	// +kubebuilder:validation:Optional
	IncludeOperations *string `json:"includeOperations,omitempty" tf:"include_operations,omitempty"`

	// (String) Sets the schedule how often the Garbage Collection will run.  Can be to "Hourly", "Daily", "Weekly" or can be a custom cron string ie, "5 4 * * *"
	// +kubebuilder:validation:Optional
	Schedule *string `json:"schedule,omitempty" tf:"schedule,omitempty"`
}

func (*PurgeAuditLogParameters) DeepCopy

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

func (*PurgeAuditLogParameters) DeepCopyInto

func (in *PurgeAuditLogParameters) DeepCopyInto(out *PurgeAuditLogParameters)

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

type PurgeAuditLogSpec

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

PurgeAuditLogSpec defines the desired state of PurgeAuditLog

func (*PurgeAuditLogSpec) DeepCopy

func (in *PurgeAuditLogSpec) DeepCopy() *PurgeAuditLogSpec

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

func (*PurgeAuditLogSpec) DeepCopyInto

func (in *PurgeAuditLogSpec) DeepCopyInto(out *PurgeAuditLogSpec)

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

type PurgeAuditLogStatus

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

PurgeAuditLogStatus defines the observed state of PurgeAuditLog.

func (*PurgeAuditLogStatus) DeepCopy

func (in *PurgeAuditLogStatus) DeepCopy() *PurgeAuditLogStatus

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

func (*PurgeAuditLogStatus) DeepCopyInto

func (in *PurgeAuditLogStatus) DeepCopyInto(out *PurgeAuditLogStatus)

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