Help us shape the future of Go! Take the 2026 Go Developer Survey

v1beta1

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

+k8s:openapi-gen=true +groupName=apps.ysicing.me

Package v1beta1 contains API Schema definitions for the apps v1beta1 API group +kubebuilder:object:generate=true +groupName=apps.ysicing.me

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "apps.ysicing.me", Version: "v1beta1"}

	SchemeGroupVersion = GroupVersion

	// 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

func Resource

func Resource(resource string) schema.GroupResource

Resource is required by pkg/client/listers/...

Types

type GlobalDB added in v0.0.6

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

	Spec   GlobalDBSpec   `json:"spec,omitempty"`
	Status GlobalDBStatus `json:"status,omitempty"`
}

GlobalDB is the Schema for the globaldbs API

func (*GlobalDB) DeepCopy added in v0.0.6

func (in *GlobalDB) DeepCopy() *GlobalDB

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

func (*GlobalDB) DeepCopyInto added in v0.0.6

func (in *GlobalDB) DeepCopyInto(out *GlobalDB)

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

func (*GlobalDB) DeepCopyObject added in v0.0.6

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

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

type GlobalDBList added in v0.0.6

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

GlobalDBList contains a list of GlobalDB

func (*GlobalDBList) DeepCopy added in v0.0.6

func (in *GlobalDBList) DeepCopy() *GlobalDBList

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

func (*GlobalDBList) DeepCopyInto added in v0.0.6

func (in *GlobalDBList) DeepCopyInto(out *GlobalDBList)

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

func (*GlobalDBList) DeepCopyObject added in v0.0.6

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

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

type GlobalDBSpec added in v0.0.6

type GlobalDBSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	Type    string `json:"type" yaml:"type"`
	State   State  `json:"state" yaml:"state"`
	Source  Source `json:"source,omitempty" yaml:"source,omitempty"`
	Version string `json:"version,omitempty" yaml:"version,omitempty"`
}

GlobalDBSpec defines the desired state of GlobalDB

func (*GlobalDBSpec) DeepCopy added in v0.0.6

func (in *GlobalDBSpec) DeepCopy() *GlobalDBSpec

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

func (*GlobalDBSpec) DeepCopyInto added in v0.0.6

func (in *GlobalDBSpec) DeepCopyInto(out *GlobalDBSpec)

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

type GlobalDBStatus added in v0.0.6

type GlobalDBStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	Address  string `json:"address,omitempty" yaml:"address,omitempty"`
	Network  bool   `json:"network" yaml:"network"`
	Auth     bool   `json:"auth,omitempty" yaml:"auth,omitempty"`
	Ready    bool   `json:"ready" yaml:"ready"`
	Username string `json:"username,omitempty" yaml:"username,omitempty"`
	Password string `json:"password,omitempty" yaml:"password,omitempty"`
}

GlobalDBStatus defines the observed state of GlobalDB

func (*GlobalDBStatus) DeepCopy added in v0.0.6

func (in *GlobalDBStatus) DeepCopy() *GlobalDBStatus

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

func (*GlobalDBStatus) DeepCopyInto added in v0.0.6

func (in *GlobalDBStatus) DeepCopyInto(out *GlobalDBStatus)

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

type Ingress

type Ingress struct {
	Class       string `json:"class,omitempty"`
	Hostname    string `json:"hostname"`
	Port        int32  `json:"port"`
	ExternalDns bool   `json:"edns,omitempty"`
	TLS         string `json:"tls,omitempty"`
	// Whitelist  CIDRs 10.0.0.0/24,172.10.0.1
	Whitelist string `json:"whitelist,omitempty"`
}

func (*Ingress) DeepCopy

func (in *Ingress) DeepCopy() *Ingress

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

func (*Ingress) DeepCopyInto

func (in *Ingress) DeepCopyInto(out *Ingress)

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

type Schedule added in v0.0.4

type Schedule struct {
	// NodeSelector select specific nodes
	NodeSelector map[string]string         `json:"nodeSelector,omitempty"`
	Strategy     appsv1.DeploymentStrategy `json:"strategy,omitempty"`
}

func (*Schedule) DeepCopy added in v0.0.4

func (in *Schedule) DeepCopy() *Schedule

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

func (*Schedule) DeepCopyInto added in v0.0.4

func (in *Schedule) DeepCopyInto(out *Schedule)

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

type Service

type Service struct {
	Type  string        `json:"type,omitempty"`
	Ports []ServicePort `json:"ports"`
}

func (*Service) DeepCopy

func (in *Service) DeepCopy() *Service

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

func (*Service) DeepCopyInto

func (in *Service) DeepCopyInto(out *Service)

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

type ServicePort

type ServicePort struct {
	Name     string `json:"name,omitempty"`
	Port     int32  `json:"port"`
	NodePort int32  `json:"nodePort,omitempty"`
	Protocol string `json:"protocol,omitempty"`
}

func (*ServicePort) DeepCopy

func (in *ServicePort) DeepCopy() *ServicePort

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

func (*ServicePort) DeepCopyInto

func (in *ServicePort) DeepCopyInto(out *ServicePort)

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

type Source added in v0.0.6

type Source struct {
	Host string `json:"host,omitempty" yaml:"host,omitempty"`
	Port int    `json:"port,omitempty" yaml:"port,omitempty"`
	User string `json:"user,omitempty" yaml:"user,omitempty"`
	Pass string `json:"pass,omitempty" yaml:"pass,omitempty"`
}

func (*Source) DeepCopy added in v0.0.6

func (in *Source) DeepCopy() *Source

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

func (*Source) DeepCopyInto added in v0.0.6

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

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

type State added in v0.0.6

type State string

+kubebuilder:validation:Enum=new;exist

type Volume

type Volume struct {
	Type       VolumeType    `json:"type,omitempty"`
	HostPath   string        `json:"hostpath,omitempty"`
	MountPaths []VolumeMount `json:"mountPaths"`
}

func (*Volume) DeepCopy

func (in *Volume) DeepCopy() *Volume

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

func (*Volume) DeepCopyInto

func (in *Volume) DeepCopyInto(out *Volume)

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

type VolumeMount

type VolumeMount struct {
	MountPath string `json:"mountPath"`
	ReadOnly  bool   `json:"read,omitempty"`
	SubPath   string `json:"subPath,omitempty"`
}

func (*VolumeMount) DeepCopy

func (in *VolumeMount) DeepCopy() *VolumeMount

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

func (*VolumeMount) DeepCopyInto

func (in *VolumeMount) DeepCopyInto(out *VolumeMount)

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

type VolumeType added in v0.0.6

type VolumeType string
const (
	HostVolume VolumeType = "hostpath"
	PVCVolume  VolumeType = "pvc"
)

type Web

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

	Spec   WebSpec   `json:"spec,omitempty"`
	Status WebStatus `json:"status,omitempty"`
}

Web is the Schema for the webs API

func (*Web) DeepCopy

func (in *Web) DeepCopy() *Web

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

func (*Web) DeepCopyInto

func (in *Web) DeepCopyInto(out *Web)

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

func (*Web) DeepCopyObject

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

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

type WebList

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

WebList contains a list of Web

func (*WebList) DeepCopy

func (in *WebList) DeepCopy() *WebList

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

func (*WebList) DeepCopyInto

func (in *WebList) DeepCopyInto(out *WebList)

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

func (*WebList) DeepCopyObject

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

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

type WebSpec

type WebSpec struct {
	Image      string                      `json:"image"`
	Schedule   Schedule                    `json:"schedule,omitempty"`
	PullPolicy string                      `json:"pull,omitempty"`
	Replicas   *int32                      `json:"replicas,omitempty"`
	Resources  corev1.ResourceRequirements `json:"resources,omitempty"`
	// +optional
	Envs    []corev1.EnvVar `json:"envs,omitempty"`
	Volume  Volume          `json:"volume,omitempty"`
	Service Service         `json:"service,omitempty"`
	Ingress Ingress         `json:"ingress,omitempty"`
}

WebSpec defines the desired state of Web

func (*WebSpec) DeepCopy

func (in *WebSpec) DeepCopy() *WebSpec

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

func (*WebSpec) DeepCopyInto

func (in *WebSpec) DeepCopyInto(out *WebSpec)

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

type WebStatus

type WebStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	Ready bool `json:"ready"`
}

WebStatus defines the observed state of Web

func (*WebStatus) DeepCopy

func (in *WebStatus) DeepCopy() *WebStatus

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

func (*WebStatus) DeepCopyInto

func (in *WebStatus) DeepCopyInto(out *WebStatus)

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