Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the debotops v1alpha1 API group +kubebuilder:object:generate=true +groupName=debotops.hashfunc.io
Index ¶
- Constants
- Variables
- func Revision(spec interface{}) (string, error)
- func RevisionKey() string
- type Application
- type ApplicationContainer
- type ApplicationHealth
- type ApplicationList
- type ApplicationOption
- type ApplicationOptionProxy
- type ApplicationSpec
- type ApplicationStatus
- type Listener
- type ListenerBind
- type ListenerGateway
- type ListenerList
- type ListenerSpec
- type ListenerStatus
- type ListenerTLS
- type Mapping
- type MappingApplication
- type MappingList
- type MappingListener
- type MappingSpec
- type MappingStatus
Constants ¶
const (
RevisionKeyFormat = "%s/revision"
)
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "debotops.hashfunc.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 ¶
func RevisionKey ¶
func RevisionKey() string
Types ¶
type Application ¶
type Application struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ApplicationSpec `json:"spec,omitempty"` Status ApplicationStatus `json:"status,omitempty"` }
Application is the Schema for the applications API
func (*Application) DeepCopy ¶
func (in *Application) DeepCopy() *Application
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Application.
func (*Application) DeepCopyInto ¶
func (in *Application) DeepCopyInto(out *Application)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Application) DeepCopyObject ¶
func (in *Application) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Application) NewDeployment ¶
func (in *Application) NewDeployment() (*appsv1.Deployment, error)
func (*Application) NewService ¶
func (in *Application) NewService() (*corev1.Service, error)
type ApplicationContainer ¶
type ApplicationContainer struct { Name string `json:"name"` Image string `json:"image"` Ports []corev1.ContainerPort `json:"ports,omitempty"` Environments []corev1.EnvVar `json:"environments,omitempty"` Command []string `json:"command,omitempty"` Args []string `json:"args,omitempty"` Resource *corev1.ResourceRequirements `json:"resource,omitempty"` Health *ApplicationHealth `json:"health,omitempty"` }
func (*ApplicationContainer) DeepCopy ¶
func (in *ApplicationContainer) DeepCopy() *ApplicationContainer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationContainer.
func (*ApplicationContainer) DeepCopyInto ¶
func (in *ApplicationContainer) DeepCopyInto(out *ApplicationContainer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApplicationHealth ¶
type ApplicationHealth struct { Startup *corev1.Probe `json:"startup"` Ready *corev1.Probe `json:"ready"` Live *corev1.Probe `json:"live"` }
func (*ApplicationHealth) DeepCopy ¶
func (in *ApplicationHealth) DeepCopy() *ApplicationHealth
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationHealth.
func (*ApplicationHealth) DeepCopyInto ¶
func (in *ApplicationHealth) DeepCopyInto(out *ApplicationHealth)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApplicationList ¶
type ApplicationList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Application `json:"items"` }
ApplicationList contains a list of Application
func (*ApplicationList) DeepCopy ¶
func (in *ApplicationList) DeepCopy() *ApplicationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationList.
func (*ApplicationList) DeepCopyInto ¶
func (in *ApplicationList) DeepCopyInto(out *ApplicationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApplicationList) DeepCopyObject ¶
func (in *ApplicationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ApplicationOption ¶
type ApplicationOption struct {
Proxy *ApplicationOptionProxy `json:"proxy,omitempty"`
}
func (*ApplicationOption) DeepCopy ¶
func (in *ApplicationOption) DeepCopy() *ApplicationOption
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationOption.
func (*ApplicationOption) DeepCopyInto ¶
func (in *ApplicationOption) DeepCopyInto(out *ApplicationOption)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApplicationOptionProxy ¶
type ApplicationOptionProxy struct {
Enable bool `json:"enable"`
}
func (*ApplicationOptionProxy) DeepCopy ¶
func (in *ApplicationOptionProxy) DeepCopy() *ApplicationOptionProxy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationOptionProxy.
func (*ApplicationOptionProxy) DeepCopyInto ¶
func (in *ApplicationOptionProxy) DeepCopyInto(out *ApplicationOptionProxy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApplicationSpec ¶
type ApplicationSpec struct { Scale int32 `json:"scale"` Container ApplicationContainer `json:"container"` Option *ApplicationOption `json:"option,omitempty"` }
ApplicationSpec defines the desired state of Application
func (*ApplicationSpec) DeepCopy ¶
func (in *ApplicationSpec) DeepCopy() *ApplicationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationSpec.
func (*ApplicationSpec) DeepCopyInto ¶
func (in *ApplicationSpec) DeepCopyInto(out *ApplicationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApplicationStatus ¶
type ApplicationStatus struct { }
ApplicationStatus defines the observed state of Application
func (*ApplicationStatus) DeepCopy ¶
func (in *ApplicationStatus) DeepCopy() *ApplicationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationStatus.
func (*ApplicationStatus) DeepCopyInto ¶
func (in *ApplicationStatus) DeepCopyInto(out *ApplicationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Listener ¶
type Listener struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ListenerSpec `json:"spec,omitempty"` Status ListenerStatus `json:"status,omitempty"` }
Listener is the Schema for the listeners API
func (*Listener) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Listener.
func (*Listener) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Listener) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Listener) NewGateway ¶
func (in *Listener) NewGateway() (*istioclient.Gateway, error)
func (*Listener) NewGatewayServers ¶
type ListenerBind ¶
type ListenerBind struct { Hosts []string `json:"hosts"` Name string `json:"name"` Port uint32 `json:"port"` Protocol string `json:"protocol"` TLS *ListenerTLS `json:"tls,omitempty"` }
func (*ListenerBind) DeepCopy ¶
func (in *ListenerBind) DeepCopy() *ListenerBind
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ListenerBind.
func (*ListenerBind) DeepCopyInto ¶
func (in *ListenerBind) DeepCopyInto(out *ListenerBind)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ListenerGateway ¶
func (*ListenerGateway) DeepCopy ¶
func (in *ListenerGateway) DeepCopy() *ListenerGateway
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ListenerGateway.
func (*ListenerGateway) DeepCopyInto ¶
func (in *ListenerGateway) DeepCopyInto(out *ListenerGateway)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ListenerList ¶
type ListenerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Listener `json:"items"` }
ListenerList contains a list of Listener
func (*ListenerList) DeepCopy ¶
func (in *ListenerList) DeepCopy() *ListenerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ListenerList.
func (*ListenerList) DeepCopyInto ¶
func (in *ListenerList) DeepCopyInto(out *ListenerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ListenerList) DeepCopyObject ¶
func (in *ListenerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ListenerSpec ¶
type ListenerSpec struct { Gateway ListenerGateway `json:"gateway"` Bind []ListenerBind `json:"bind"` }
ListenerSpec defines the desired state of Listener
func (*ListenerSpec) DeepCopy ¶
func (in *ListenerSpec) DeepCopy() *ListenerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ListenerSpec.
func (*ListenerSpec) DeepCopyInto ¶
func (in *ListenerSpec) DeepCopyInto(out *ListenerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ListenerStatus ¶
type ListenerStatus struct { }
ListenerStatus defines the observed state of Listener
func (*ListenerStatus) DeepCopy ¶
func (in *ListenerStatus) DeepCopy() *ListenerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ListenerStatus.
func (*ListenerStatus) DeepCopyInto ¶
func (in *ListenerStatus) DeepCopyInto(out *ListenerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ListenerTLS ¶
func (*ListenerTLS) DeepCopy ¶
func (in *ListenerTLS) DeepCopy() *ListenerTLS
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ListenerTLS.
func (*ListenerTLS) DeepCopyInto ¶
func (in *ListenerTLS) DeepCopyInto(out *ListenerTLS)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Mapping ¶
type Mapping struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MappingSpec `json:"spec,omitempty"` Status MappingStatus `json:"status,omitempty"` }
Mapping is the Schema for the mappings API
func (*Mapping) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Mapping.
func (*Mapping) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Mapping) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Mapping) NewVirtualService ¶
func (in *Mapping) NewVirtualService(application *Application) (*istioclient.VirtualService, error)
type MappingApplication ¶
func (*MappingApplication) DeepCopy ¶
func (in *MappingApplication) DeepCopy() *MappingApplication
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MappingApplication.
func (*MappingApplication) DeepCopyInto ¶
func (in *MappingApplication) DeepCopyInto(out *MappingApplication)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MappingList ¶
type MappingList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Mapping `json:"items"` }
MappingList contains a list of Mapping
func (*MappingList) DeepCopy ¶
func (in *MappingList) DeepCopy() *MappingList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MappingList.
func (*MappingList) DeepCopyInto ¶
func (in *MappingList) DeepCopyInto(out *MappingList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MappingList) DeepCopyObject ¶
func (in *MappingList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MappingListener ¶
func (*MappingListener) DeepCopy ¶
func (in *MappingListener) DeepCopy() *MappingListener
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MappingListener.
func (*MappingListener) DeepCopyInto ¶
func (in *MappingListener) DeepCopyInto(out *MappingListener)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MappingSpec ¶
type MappingSpec struct { Hosts []string `json:"hosts"` Listener MappingListener `json:"listener"` Application MappingApplication `json:"application"` }
MappingSpec defines the desired state of Mapping
func (*MappingSpec) DeepCopy ¶
func (in *MappingSpec) DeepCopy() *MappingSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MappingSpec.
func (*MappingSpec) DeepCopyInto ¶
func (in *MappingSpec) DeepCopyInto(out *MappingSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MappingStatus ¶
type MappingStatus struct { }
MappingStatus defines the observed state of Mapping
func (*MappingStatus) DeepCopy ¶
func (in *MappingStatus) DeepCopy() *MappingStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MappingStatus.
func (*MappingStatus) DeepCopyInto ¶
func (in *MappingStatus) DeepCopyInto(out *MappingStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.