v1alpha1

package
v0.0.0-...-2b3457a Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the deployments v1alpha1 API group +kubebuilder:object:generate=true +groupName=deployments.gojek.io

Index

Constants

This section is empty.

Variables

View Source
var (

	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "deployments.gojek.io", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type Bucket

type Bucket struct {
	// +kubebuilder:validation:MinLength=3
	Name string `json:"name"`

	CredentialsJson string `json:"credentialsJson,omitempty"`
	AccessKey       string `json:"accessKey,omitempty"`
	SecretKey       string `json:"secretKey,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.

type Darkroom

type Darkroom struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   DarkroomSpec   `json:"spec,omitempty"`
	Status DarkroomStatus `json:"status,omitempty"`
}

Darkroom is the Schema for the darkrooms API

func (*Darkroom) DeepCopy

func (in *Darkroom) DeepCopy() *Darkroom

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

func (*Darkroom) DeepCopyInto

func (in *Darkroom) DeepCopyInto(out *Darkroom)

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

func (*Darkroom) DeepCopyObject

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

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

func (*Darkroom) Default

func (d *Darkroom) Default()

func (*Darkroom) ValidateCreate

func (d *Darkroom) ValidateCreate() error

func (*Darkroom) ValidateDelete

func (d *Darkroom) ValidateDelete() error

func (*Darkroom) ValidateUpdate

func (d *Darkroom) ValidateUpdate(old runtime.Object) error

type DarkroomList

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

DarkroomList contains a list of Darkroom

func (*DarkroomList) DeepCopy

func (in *DarkroomList) DeepCopy() *DarkroomList

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

func (*DarkroomList) DeepCopyInto

func (in *DarkroomList) DeepCopyInto(out *DarkroomList)

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

func (*DarkroomList) DeepCopyObject

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

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

type DarkroomSpec

type DarkroomSpec struct {
	// +optional
	Version string `json:"version"`

	Source Source `json:"source"`

	// +optional
	// PathPrefix prepends the prefix in the URL when serving images
	PathPrefix string `json:"pathPrefix,omitempty"`

	// +kubebuilder:validation:MinItems=1
	Domains []string `json:"domains"`
}

DarkroomSpec defines the desired state of Darkroom

func (*DarkroomSpec) DeepCopy

func (in *DarkroomSpec) DeepCopy() *DarkroomSpec

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

func (*DarkroomSpec) DeepCopyInto

func (in *DarkroomSpec) DeepCopyInto(out *DarkroomSpec)

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

type DarkroomStatus

type DarkroomStatus struct {
	DeployState DeployState `json:"deployState"`
	// +optional
	Domains []string `json:"domains,omitempty"`
}

DarkroomStatus defines the observed state of Darkroom

func (*DarkroomStatus) DeepCopy

func (in *DarkroomStatus) DeepCopy() *DarkroomStatus

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

func (*DarkroomStatus) DeepCopyInto

func (in *DarkroomStatus) DeepCopyInto(out *DarkroomStatus)

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

type DeployState

type DeployState string
const (
	Deploying DeployState = "Deploying"
)

type Source

type Source struct {
	// Type specifies storage backend to use with darkroom.
	// Valid values are:
	// - "WebFolder": simple storage backend to serve images from a hosted image source;
	// - "S3": storage backend to serve images from S3 backend;
	// - "GoogleCloudStorage": storage backend to serve images from GoogleCloudStorage backend;
	Type Type `json:"type"`

	WebFolderMeta `json:",inline"`

	Bucket *Bucket `json:"bucket,omitempty"`

	// +kubebuilder:default="/"
	// +optional
	Prefix string `json:"prefix,omitempty"`
}

func (*Source) DeepCopy

func (in *Source) DeepCopy() *Source

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

func (*Source) DeepCopyInto

func (in *Source) DeepCopyInto(out *Source)

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

type Type

type Type string

+kubebuilder:validation:Enum=WebFolder;S3;GoogleCloudStorage

const (
	GoogleCloudStorage Type = "GoogleCloudStorage"
)
const (
	S3 Type = "S3"
)
const (
	WebFolder Type = "WebFolder"
)

type WebFolderMeta

type WebFolderMeta struct {
	BaseURL string `json:"baseUrl,omitempty"`
}

func (*WebFolderMeta) DeepCopy

func (in *WebFolderMeta) DeepCopy() *WebFolderMeta

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

func (*WebFolderMeta) DeepCopyInto

func (in *WebFolderMeta) DeepCopyInto(out *WebFolderMeta)

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