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=spacesbucket.digitalocean.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: spacesbucket.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 Object

type Object struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ObjectSpec   `json:"spec,omitempty"`
	Status            ObjectStatus `json:"status,omitempty"`
}

func (*Object) DeepCopy

func (in *Object) DeepCopy() *Object

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

func (*Object) DeepCopyInto

func (in *Object) DeepCopyInto(out *Object)

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

func (*Object) DeepCopyObject

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

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

func (*Object) SetupWebhookWithManager

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

func (*Object) ValidateCreate

func (r *Object) ValidateCreate() error

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

func (*Object) ValidateDelete

func (r *Object) ValidateDelete() error

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

func (*Object) ValidateUpdate

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

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

type ObjectList

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

ObjectList is a list of Objects

func (*ObjectList) DeepCopy

func (in *ObjectList) DeepCopy() *ObjectList

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

func (*ObjectList) DeepCopyInto

func (in *ObjectList) DeepCopyInto(out *ObjectList)

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

func (*ObjectList) DeepCopyObject

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

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

type ObjectSpec

type ObjectSpec struct {
	State *ObjectSpecResource `json:"state,omitempty" tf:"-"`

	Resource ObjectSpecResource `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 (*ObjectSpec) DeepCopy

func (in *ObjectSpec) DeepCopy() *ObjectSpec

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

func (*ObjectSpec) DeepCopyInto

func (in *ObjectSpec) DeepCopyInto(out *ObjectSpec)

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

type ObjectSpecResource

type ObjectSpecResource struct {
	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// +optional
	Acl    *string `json:"acl,omitempty" tf:"acl"`
	Bucket *string `json:"bucket" tf:"bucket"`
	// +optional
	CacheControl *string `json:"cacheControl,omitempty" tf:"cache_control"`
	// +optional
	Content *string `json:"content,omitempty" tf:"content"`
	// +optional
	ContentBase64 *string `json:"contentBase64,omitempty" tf:"content_base64"`
	// +optional
	ContentDisposition *string `json:"contentDisposition,omitempty" tf:"content_disposition"`
	// +optional
	ContentEncoding *string `json:"contentEncoding,omitempty" tf:"content_encoding"`
	// +optional
	ContentLanguage *string `json:"contentLanguage,omitempty" tf:"content_language"`
	// +optional
	ContentType *string `json:"contentType,omitempty" tf:"content_type"`
	// +optional
	Etag *string `json:"etag,omitempty" tf:"etag"`
	// +optional
	ForceDestroy *bool   `json:"forceDestroy,omitempty" tf:"force_destroy"`
	Key          *string `json:"key" tf:"key"`
	// +optional
	Metadata *map[string]string `json:"metadata,omitempty" tf:"metadata"`
	Region   *string            `json:"region" tf:"region"`
	// +optional
	Source *string `json:"source,omitempty" tf:"source"`
	// +optional
	VersionID *string `json:"versionID,omitempty" tf:"version_id"`
	// +optional
	WebsiteRedirect *string `json:"websiteRedirect,omitempty" tf:"website_redirect"`
}

func (*ObjectSpecResource) DeepCopy

func (in *ObjectSpecResource) DeepCopy() *ObjectSpecResource

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

func (*ObjectSpecResource) DeepCopyInto

func (in *ObjectSpecResource) DeepCopyInto(out *ObjectSpecResource)

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

type ObjectStatus

type ObjectStatus 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 (*ObjectStatus) DeepCopy

func (in *ObjectStatus) DeepCopy() *ObjectStatus

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

func (*ObjectStatus) DeepCopyInto

func (in *ObjectStatus) DeepCopyInto(out *ObjectStatus)

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

type SpacesBucket

type SpacesBucket struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              SpacesBucketSpec   `json:"spec,omitempty"`
	Status            SpacesBucketStatus `json:"status,omitempty"`
}

func (*SpacesBucket) DeepCopy

func (in *SpacesBucket) DeepCopy() *SpacesBucket

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

func (*SpacesBucket) DeepCopyInto

func (in *SpacesBucket) DeepCopyInto(out *SpacesBucket)

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

func (*SpacesBucket) DeepCopyObject

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

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

func (*SpacesBucket) SetupWebhookWithManager

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

func (*SpacesBucket) ValidateCreate

func (r *SpacesBucket) ValidateCreate() error

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

func (*SpacesBucket) ValidateDelete

func (r *SpacesBucket) ValidateDelete() error

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

func (*SpacesBucket) ValidateUpdate

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

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

type SpacesBucketList

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

SpacesBucketList is a list of SpacesBuckets

func (*SpacesBucketList) DeepCopy

func (in *SpacesBucketList) DeepCopy() *SpacesBucketList

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

func (*SpacesBucketList) DeepCopyInto

func (in *SpacesBucketList) DeepCopyInto(out *SpacesBucketList)

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

func (*SpacesBucketList) DeepCopyObject

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

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

type SpacesBucketSpec

type SpacesBucketSpec struct {
	State *SpacesBucketSpecResource `json:"state,omitempty" tf:"-"`

	Resource SpacesBucketSpecResource `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 (*SpacesBucketSpec) DeepCopy

func (in *SpacesBucketSpec) DeepCopy() *SpacesBucketSpec

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

func (*SpacesBucketSpec) DeepCopyInto

func (in *SpacesBucketSpec) DeepCopyInto(out *SpacesBucketSpec)

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

type SpacesBucketSpecCorsRule

type SpacesBucketSpecCorsRule struct {
	// A list of headers that will be included in the CORS preflight request's Access-Control-Request-Headers. A header may contain one wildcard (e.g. x-amz-*).
	// +optional
	AllowedHeaders []string `json:"allowedHeaders,omitempty" tf:"allowed_headers"`
	// A list of HTTP methods (e.g. GET) which are allowed from the specified origin.
	AllowedMethods []string `json:"allowedMethods" tf:"allowed_methods"`
	// A list of hosts from which requests using the specified methods are allowed. A host may contain one wildcard (e.g. http://*.example.com).
	AllowedOrigins []string `json:"allowedOrigins" tf:"allowed_origins"`
	// +optional
	MaxAgeSeconds *int64 `json:"maxAgeSeconds,omitempty" tf:"max_age_seconds"`
}

func (*SpacesBucketSpecCorsRule) DeepCopy

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

func (*SpacesBucketSpecCorsRule) DeepCopyInto

func (in *SpacesBucketSpecCorsRule) DeepCopyInto(out *SpacesBucketSpecCorsRule)

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

type SpacesBucketSpecLifecycleRule

type SpacesBucketSpecLifecycleRule struct {
	// +optional
	AbortIncompleteMultipartUploadDays *int64 `json:"abortIncompleteMultipartUploadDays,omitempty" tf:"abort_incomplete_multipart_upload_days"`
	Enabled                            *bool  `json:"enabled" tf:"enabled"`
	// +optional
	Expiration *SpacesBucketSpecLifecycleRuleExpiration `json:"expiration,omitempty" tf:"expiration"`
	// +optional
	ID *string `json:"ID,omitempty" tf:"id"`
	// +optional
	NoncurrentVersionExpiration *SpacesBucketSpecLifecycleRuleNoncurrentVersionExpiration `json:"noncurrentVersionExpiration,omitempty" tf:"noncurrent_version_expiration"`
	// +optional
	Prefix *string `json:"prefix,omitempty" tf:"prefix"`
}

func (*SpacesBucketSpecLifecycleRule) DeepCopy

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

func (*SpacesBucketSpecLifecycleRule) DeepCopyInto

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

type SpacesBucketSpecLifecycleRuleExpiration

type SpacesBucketSpecLifecycleRuleExpiration struct {
	// +optional
	Date *string `json:"date,omitempty" tf:"date"`
	// +optional
	Days *int64 `json:"days,omitempty" tf:"days"`
	// +optional
	ExpiredObjectDeleteMarker *bool `json:"expiredObjectDeleteMarker,omitempty" tf:"expired_object_delete_marker"`
}

func (*SpacesBucketSpecLifecycleRuleExpiration) DeepCopy

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

func (*SpacesBucketSpecLifecycleRuleExpiration) DeepCopyInto

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

type SpacesBucketSpecLifecycleRuleExpirationCodec

type SpacesBucketSpecLifecycleRuleExpirationCodec struct {
}

+k8s:deepcopy-gen=false

func (SpacesBucketSpecLifecycleRuleExpirationCodec) Decode

func (SpacesBucketSpecLifecycleRuleExpirationCodec) Encode

func (SpacesBucketSpecLifecycleRuleExpirationCodec) IsEmpty

type SpacesBucketSpecLifecycleRuleNoncurrentVersionExpiration

type SpacesBucketSpecLifecycleRuleNoncurrentVersionExpiration struct {
	// +optional
	Days *int64 `json:"days,omitempty" tf:"days"`
}

func (*SpacesBucketSpecLifecycleRuleNoncurrentVersionExpiration) DeepCopy

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

func (*SpacesBucketSpecLifecycleRuleNoncurrentVersionExpiration) DeepCopyInto

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

type SpacesBucketSpecLifecycleRuleNoncurrentVersionExpirationCodec

type SpacesBucketSpecLifecycleRuleNoncurrentVersionExpirationCodec struct {
}

+k8s:deepcopy-gen=false

func (SpacesBucketSpecLifecycleRuleNoncurrentVersionExpirationCodec) Decode

func (SpacesBucketSpecLifecycleRuleNoncurrentVersionExpirationCodec) Encode

func (SpacesBucketSpecLifecycleRuleNoncurrentVersionExpirationCodec) IsEmpty

type SpacesBucketSpecResource

type SpacesBucketSpecResource struct {
	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// Canned ACL applied on bucket creation
	// +optional
	Acl *string `json:"acl,omitempty" tf:"acl"`
	// The FQDN of the bucket
	// +optional
	BucketDomainName *string `json:"bucketDomainName,omitempty" tf:"bucket_domain_name"`
	// A container holding a list of elements describing allowed methods for a specific origin.
	// +optional
	CorsRule []SpacesBucketSpecCorsRule `json:"corsRule,omitempty" tf:"cors_rule"`
	// Unless true, the bucket will only be destroyed if empty
	// +optional
	ForceDestroy *bool `json:"forceDestroy,omitempty" tf:"force_destroy"`
	// +optional
	LifecycleRule []SpacesBucketSpecLifecycleRule `json:"lifecycleRule,omitempty" tf:"lifecycle_rule"`
	// Bucket name
	Name *string `json:"name" tf:"name"`
	// Bucket region
	// +optional
	Region *string `json:"region,omitempty" tf:"region"`
	// the uniform resource name for the bucket
	// +optional
	Urn *string `json:"urn,omitempty" tf:"urn"`
	// +optional
	Versioning *SpacesBucketSpecVersioning `json:"versioning,omitempty" tf:"versioning"`
}

func (*SpacesBucketSpecResource) DeepCopy

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

func (*SpacesBucketSpecResource) DeepCopyInto

func (in *SpacesBucketSpecResource) DeepCopyInto(out *SpacesBucketSpecResource)

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

type SpacesBucketSpecVersioning

type SpacesBucketSpecVersioning struct {
	// +optional
	Enabled *bool `json:"enabled,omitempty" tf:"enabled"`
}

func (*SpacesBucketSpecVersioning) DeepCopy

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

func (*SpacesBucketSpecVersioning) DeepCopyInto

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

type SpacesBucketSpecVersioningCodec

type SpacesBucketSpecVersioningCodec struct {
}

+k8s:deepcopy-gen=false

func (SpacesBucketSpecVersioningCodec) Decode

func (SpacesBucketSpecVersioningCodec) Encode

func (SpacesBucketSpecVersioningCodec) IsEmpty

type SpacesBucketStatus

type SpacesBucketStatus 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 (*SpacesBucketStatus) DeepCopy

func (in *SpacesBucketStatus) DeepCopy() *SpacesBucketStatus

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

func (*SpacesBucketStatus) DeepCopyInto

func (in *SpacesBucketStatus) DeepCopyInto(out *SpacesBucketStatus)

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