Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the deployments v1alpha1 API group +kubebuilder:object:generate=true +groupName=deployments.gojek.io
Index ¶
- Variables
- type Bucket
- type Darkroom
- func (in *Darkroom) DeepCopy() *Darkroom
- func (in *Darkroom) DeepCopyInto(out *Darkroom)
- func (in *Darkroom) DeepCopyObject() runtime.Object
- func (d *Darkroom) Default()
- func (d *Darkroom) ValidateCreate() error
- func (d *Darkroom) ValidateDelete() error
- func (d *Darkroom) ValidateUpdate(old runtime.Object) error
- type DarkroomList
- type DarkroomSpec
- type DarkroomStatus
- type DeployState
- type Source
- type Type
- type WebFolderMeta
Constants ¶
This section is empty.
Variables ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Bucket.
func (*Bucket) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Darkroom.
func (*Darkroom) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Darkroom) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Darkroom) ValidateCreate ¶
func (*Darkroom) ValidateDelete ¶
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 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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Source.
func (*Source) DeepCopyInto ¶
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.