v1alpha1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

+groupName=cos.ibm.kubeform.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: cos.GroupName, Version: "v1alpha1"}

Functions

func GetDecoder

func GetDecoder() map[string]jsoniter.ValDecoder

func GetEncoder

func GetEncoder() map[string]jsoniter.ValEncoder

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Bucket

type Bucket struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              BucketSpec   `json:"spec,omitempty"`
	Status            BucketStatus `json:"status,omitempty"`
}

func (*Bucket) DeepCopy

func (in *Bucket) DeepCopy() *Bucket

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

func (*Bucket) DeepCopyInto

func (in *Bucket) DeepCopyInto(out *Bucket)

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

func (*Bucket) DeepCopyObject

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

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

func (*Bucket) SetupWebhookWithManager

func (r *Bucket) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Bucket) ValidateCreate

func (r *Bucket) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Bucket) ValidateDelete

func (r *Bucket) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Bucket) ValidateUpdate

func (r *Bucket) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type BucketList

type BucketList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of Bucket CRD objects
	Items []Bucket `json:"items,omitempty"`
}

BucketList is a list of Buckets

func (*BucketList) DeepCopy

func (in *BucketList) DeepCopy() *BucketList

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

func (*BucketList) DeepCopyInto

func (in *BucketList) DeepCopyInto(out *BucketList)

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

func (*BucketList) DeepCopyObject

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

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

type BucketObject

type BucketObject struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              BucketObjectSpec   `json:"spec,omitempty"`
	Status            BucketObjectStatus `json:"status,omitempty"`
}

func (*BucketObject) DeepCopy

func (in *BucketObject) DeepCopy() *BucketObject

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

func (*BucketObject) DeepCopyInto

func (in *BucketObject) DeepCopyInto(out *BucketObject)

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

func (*BucketObject) DeepCopyObject

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

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

func (*BucketObject) SetupWebhookWithManager

func (r *BucketObject) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*BucketObject) ValidateCreate

func (r *BucketObject) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*BucketObject) ValidateDelete

func (r *BucketObject) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*BucketObject) ValidateUpdate

func (r *BucketObject) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type BucketObjectList

type BucketObjectList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of BucketObject CRD objects
	Items []BucketObject `json:"items,omitempty"`
}

BucketObjectList is a list of BucketObjects

func (*BucketObjectList) DeepCopy

func (in *BucketObjectList) DeepCopy() *BucketObjectList

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

func (*BucketObjectList) DeepCopyInto

func (in *BucketObjectList) DeepCopyInto(out *BucketObjectList)

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

func (*BucketObjectList) DeepCopyObject

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

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

type BucketObjectSpec

type BucketObjectSpec struct {
	State *BucketObjectSpecResource `json:"state,omitempty" tf:"-"`

	Resource BucketObjectSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*BucketObjectSpec) DeepCopy

func (in *BucketObjectSpec) DeepCopy() *BucketObjectSpec

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

func (*BucketObjectSpec) DeepCopyInto

func (in *BucketObjectSpec) DeepCopyInto(out *BucketObjectSpec)

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

type BucketObjectSpecResource

type BucketObjectSpecResource struct {
	Timeouts *base.ResourceTimeout `json:"timeouts,omitempty" tf:"timeouts"`

	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// COS object body
	// +optional
	Body *string `json:"body,omitempty" tf:"body"`
	// COS bucket CRN
	BucketCrn *string `json:"bucketCrn" tf:"bucket_crn"`
	// COS bucket location
	BucketLocation *string `json:"bucketLocation" tf:"bucket_location"`
	// COS object content
	// +optional
	Content *string `json:"content,omitempty" tf:"content"`
	// COS object content in base64 encoding
	// +optional
	ContentBase64 *string `json:"contentBase64,omitempty" tf:"content_base64"`
	// COS object content file path
	// +optional
	ContentFile *string `json:"contentFile,omitempty" tf:"content_file"`
	// COS object content length
	// +optional
	ContentLength *int64 `json:"contentLength,omitempty" tf:"content_length"`
	// COS object content type
	// +optional
	ContentType *string `json:"contentType,omitempty" tf:"content_type"`
	// COS endpoint type: public, private, direct
	// +optional
	EndpointType *string `json:"endpointType,omitempty" tf:"endpoint_type"`
	// COS object MD5 hexdigest
	// +optional
	Etag *string `json:"etag,omitempty" tf:"etag"`
	// COS buckets need to be empty before they can be deleted. force_delete option empty the bucket and delete it.
	// +optional
	ForceDelete *bool `json:"forceDelete,omitempty" tf:"force_delete"`
	// COS object key
	Key *string `json:"key" tf:"key"`
	// COS object last modified date
	// +optional
	LastModified *string `json:"lastModified,omitempty" tf:"last_modified"`
	// +optional
	VersionID *string `json:"versionID,omitempty" tf:"version_id"`
}

func (*BucketObjectSpecResource) DeepCopy

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

func (*BucketObjectSpecResource) DeepCopyInto

func (in *BucketObjectSpecResource) DeepCopyInto(out *BucketObjectSpecResource)

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

type BucketObjectStatus

type BucketObjectStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*BucketObjectStatus) DeepCopy

func (in *BucketObjectStatus) DeepCopy() *BucketObjectStatus

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

func (*BucketObjectStatus) DeepCopyInto

func (in *BucketObjectStatus) DeepCopyInto(out *BucketObjectStatus)

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

type BucketSpec

type BucketSpec struct {
	State *BucketSpecResource `json:"state,omitempty" tf:"-"`

	Resource BucketSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*BucketSpec) DeepCopy

func (in *BucketSpec) DeepCopy() *BucketSpec

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

func (*BucketSpec) DeepCopyInto

func (in *BucketSpec) DeepCopyInto(out *BucketSpec)

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

type BucketSpecActivityTracking

type BucketSpecActivityTracking struct {
	// The instance of Activity Tracker that will receive object event data
	ActivityTrackerCrn *string `json:"activityTrackerCrn" tf:"activity_tracker_crn"`
	// If set to true, all object read events will be sent to Activity Tracker.
	// +optional
	ReadDataEvents *bool `json:"readDataEvents,omitempty" tf:"read_data_events"`
	// If set to true, all object write events will be sent to Activity Tracker.
	// +optional
	WriteDataEvents *bool `json:"writeDataEvents,omitempty" tf:"write_data_events"`
}

func (*BucketSpecActivityTracking) DeepCopy

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

func (*BucketSpecActivityTracking) DeepCopyInto

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

type BucketSpecActivityTrackingCodec

type BucketSpecActivityTrackingCodec struct {
}

+k8s:deepcopy-gen=false

func (BucketSpecActivityTrackingCodec) Decode

func (BucketSpecActivityTrackingCodec) Encode

func (BucketSpecActivityTrackingCodec) IsEmpty

type BucketSpecArchiveRule

type BucketSpecArchiveRule struct {
	// Specifies the number of days when the specific rule action takes effect.
	Days *int64 `json:"days" tf:"days"`
	// Enable or disable an archive rule for a bucket
	Enable *bool `json:"enable" tf:"enable"`
	// Unique identifier for the rule.Archive rules allow you to set a specific time frame after which objects transition to the archive. Set Rule ID for cos bucket
	// +optional
	RuleID *string `json:"ruleID,omitempty" tf:"rule_id"`
	// Specifies the storage class/archive type to which you want the object to transition. It can be Glacier or Accelerated
	Type *string `json:"type" tf:"type"`
}

func (*BucketSpecArchiveRule) DeepCopy

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

func (*BucketSpecArchiveRule) DeepCopyInto

func (in *BucketSpecArchiveRule) DeepCopyInto(out *BucketSpecArchiveRule)

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

type BucketSpecArchiveRuleCodec

type BucketSpecArchiveRuleCodec struct {
}

+k8s:deepcopy-gen=false

func (BucketSpecArchiveRuleCodec) Decode

func (BucketSpecArchiveRuleCodec) Encode

func (BucketSpecArchiveRuleCodec) IsEmpty

type BucketSpecExpireRule

type BucketSpecExpireRule struct {
	// Specifies the number of days when the specific rule action takes effect.
	Days *int64 `json:"days" tf:"days"`
	// Enable or disable an expire rule for a bucket
	Enable *bool `json:"enable" tf:"enable"`
	// The rule applies to any objects with keys that match this prefix
	// +optional
	Prefix *string `json:"prefix,omitempty" tf:"prefix"`
	// Unique identifier for the rule.Expire rules allow you to set a specific time frame after which objects are deleted. Set Rule ID for cos bucket
	// +optional
	RuleID *string `json:"ruleID,omitempty" tf:"rule_id"`
}

func (*BucketSpecExpireRule) DeepCopy

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

func (*BucketSpecExpireRule) DeepCopyInto

func (in *BucketSpecExpireRule) DeepCopyInto(out *BucketSpecExpireRule)

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

type BucketSpecMetricsMonitoring

type BucketSpecMetricsMonitoring struct {
	// Instance of IBM Cloud Monitoring that will receive the bucket metrics.
	MetricsMonitoringCrn *string `json:"metricsMonitoringCrn" tf:"metrics_monitoring_crn"`
	// Request metrics will be sent to the monitoring service.
	// +optional
	RequestMetricsEnabled *bool `json:"requestMetricsEnabled,omitempty" tf:"request_metrics_enabled"`
	// Usage metrics will be sent to the monitoring service.
	// +optional
	UsageMetricsEnabled *bool `json:"usageMetricsEnabled,omitempty" tf:"usage_metrics_enabled"`
}

func (*BucketSpecMetricsMonitoring) DeepCopy

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

func (*BucketSpecMetricsMonitoring) DeepCopyInto

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

type BucketSpecMetricsMonitoringCodec

type BucketSpecMetricsMonitoringCodec struct {
}

+k8s:deepcopy-gen=false

func (BucketSpecMetricsMonitoringCodec) Decode

func (BucketSpecMetricsMonitoringCodec) Encode

func (BucketSpecMetricsMonitoringCodec) IsEmpty

type BucketSpecObjectVersioning

type BucketSpecObjectVersioning struct {
	// Enable or suspend the versioning for objects in the bucket
	// +optional
	Enable *bool `json:"enable,omitempty" tf:"enable"`
}

func (*BucketSpecObjectVersioning) DeepCopy

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

func (*BucketSpecObjectVersioning) DeepCopyInto

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

type BucketSpecObjectVersioningCodec

type BucketSpecObjectVersioningCodec struct {
}

+k8s:deepcopy-gen=false

func (BucketSpecObjectVersioningCodec) Decode

func (BucketSpecObjectVersioningCodec) Encode

func (BucketSpecObjectVersioningCodec) IsEmpty

type BucketSpecResource

type BucketSpecResource struct {
	Timeouts *base.ResourceTimeout `json:"timeouts,omitempty" tf:"timeouts"`

	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// Enables sending log data to Activity Tracker and LogDNA to provide visibility into object read and write events
	// +optional
	ActivityTracking *BucketSpecActivityTracking `json:"activityTracking,omitempty" tf:"activity_tracking"`
	// List of IPv4 or IPv6 addresses
	// +optional
	AllowedIP []string `json:"allowedIP,omitempty" tf:"allowed_ip"`
	// Enable configuration archive_rule (glacier/accelerated) to COS Bucket after a defined period of time
	// +optional
	ArchiveRule *BucketSpecArchiveRule `json:"archiveRule,omitempty" tf:"archive_rule"`
	// COS Bucket name
	BucketName *string `json:"bucketName" tf:"bucket_name"`
	// CRN of resource instance
	// +optional
	Crn *string `json:"crn,omitempty" tf:"crn"`
	// Cros region location info
	// +optional
	CrossRegionLocation *string `json:"crossRegionLocation,omitempty" tf:"cross_region_location"`
	// public or private
	// +optional
	EndpointType *string `json:"endpointType,omitempty" tf:"endpoint_type"`
	// Enable configuration expire_rule to COS Bucket after a defined period of time
	// +optional
	// +kubebuilder:validation:MaxItems=1000
	ExpireRule []BucketSpecExpireRule `json:"expireRule,omitempty" tf:"expire_rule"`
	// COS buckets need to be empty before they can be deleted. force_delete option empty the bucket and delete it.
	// +optional
	ForceDelete *bool `json:"forceDelete,omitempty" tf:"force_delete"`
	// sets a maximum amount of storage (in bytes) available for a bucket
	// +optional
	HardQuota *int64 `json:"hardQuota,omitempty" tf:"hard_quota"`
	// CRN of the key you want to use data at rest encryption
	// +optional
	KeyProtect *string `json:"keyProtect,omitempty" tf:"key_protect"`
	// Enables sending metrics to IBM Cloud Monitoring.
	// +optional
	MetricsMonitoring *BucketSpecMetricsMonitoring `json:"metricsMonitoring,omitempty" tf:"metrics_monitoring"`
	// Protect objects from accidental deletion or overwrites. Versioning allows you to keep multiple versions of an object protecting from unintentional data loss.
	// +optional
	ObjectVersioning *BucketSpecObjectVersioning `json:"objectVersioning,omitempty" tf:"object_versioning"`
	// Region Location info.
	// +optional
	RegionLocation *string `json:"regionLocation,omitempty" tf:"region_location"`
	// resource instance ID
	ResourceInstanceID *string `json:"resourceInstanceID" tf:"resource_instance_id"`
	// A retention policy is enabled at the IBM Cloud Object Storage bucket level. Minimum, maximum and default retention period are defined by this policy and apply to all objects in the bucket.
	// +optional
	RetentionRule *BucketSpecRetentionRule `json:"retentionRule,omitempty" tf:"retention_rule"`
	// Private endpoint for the COS bucket
	// +optional
	S3EndpointPrivate *string `json:"s3EndpointPrivate,omitempty" tf:"s3_endpoint_private"`
	// Public endpoint for the COS bucket
	// +optional
	S3EndpointPublic *string `json:"s3EndpointPublic,omitempty" tf:"s3_endpoint_public"`
	// single site location info
	// +optional
	SingleSiteLocation *string `json:"singleSiteLocation,omitempty" tf:"single_site_location"`
	// Storage class info
	StorageClass *string `json:"storageClass" tf:"storage_class"`
}

func (*BucketSpecResource) DeepCopy

func (in *BucketSpecResource) DeepCopy() *BucketSpecResource

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

func (*BucketSpecResource) DeepCopyInto

func (in *BucketSpecResource) DeepCopyInto(out *BucketSpecResource)

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

type BucketSpecRetentionRule

type BucketSpecRetentionRule struct {
	// If an object is stored in the bucket without specifying a custom retention period.
	Default *int64 `json:"default" tf:"default"`
	// Maximum duration of time an object can be kept unmodified in the bucket.
	Maximum *int64 `json:"maximum" tf:"maximum"`
	// Minimum duration of time an object must be kept unmodified in the bucket
	Minimum *int64 `json:"minimum" tf:"minimum"`
	// Enable or disable the permanent retention policy on the bucket
	// +optional
	Permanent *bool `json:"permanent,omitempty" tf:"permanent"`
}

func (*BucketSpecRetentionRule) DeepCopy

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

func (*BucketSpecRetentionRule) DeepCopyInto

func (in *BucketSpecRetentionRule) DeepCopyInto(out *BucketSpecRetentionRule)

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

type BucketSpecRetentionRuleCodec

type BucketSpecRetentionRuleCodec struct {
}

+k8s:deepcopy-gen=false

func (BucketSpecRetentionRuleCodec) Decode

func (BucketSpecRetentionRuleCodec) Encode

func (BucketSpecRetentionRuleCodec) IsEmpty

type BucketStatus

type BucketStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*BucketStatus) DeepCopy

func (in *BucketStatus) DeepCopy() *BucketStatus

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

func (*BucketStatus) DeepCopyInto

func (in *BucketStatus) DeepCopyInto(out *BucketStatus)

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