Documentation ¶
Overview ¶
Package v1beta1 contains API Schema definitions for the castopod v1beta1 API group +kubebuilder:object:generate=true +groupName=castopod.kopilote.io
Index ¶
- Variables
- func SelectRequiredConfigValueOrReference[VALUE interface{ ... }, SRC interface{ ... }](key, prefix string, v VALUE, src SRC) corev1.EnvVar
- type Castopod
- func (in *Castopod) DeepCopy() *Castopod
- func (in *Castopod) DeepCopyInto(out *Castopod)
- func (in *Castopod) DeepCopyObject() runtime.Object
- func (in *Castopod) GetConditions() *pkgv1beta1.Conditions
- func (in *Castopod) GetStatus() pkgv1beta1.Dirty
- func (in *Castopod) IsDirty(t pkgv1beta1.Object) bool
- type CastopodList
- type CastopodSpec
- type Config
- type ConfigGateway
- type ConfigLimit
- type ConfigMedia
- type ConfigSmtp
- type ConfigSource
- type ConfigUrl
- type Configuration
- type ConfigurationList
- type ConfigurationSpec
- type Ingress
- type IngressTLS
- type MysqlConfig
- type Version
- type VersionList
- type VersionSpec
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "castopod.kopilote.io", Version: "v1beta1"} // 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 ¶
Types ¶
type Castopod ¶
type Castopod struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CastopodSpec `json:"spec,omitempty"` Status pkgv1beta1.Status `json:"status,omitempty"` }
Castopod is the Schema for the castopods API
func NewStack ¶
func NewStack(name string, spec CastopodSpec) Castopod
func (*Castopod) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Castopod.
func (*Castopod) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Castopod) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Castopod) GetConditions ¶
func (in *Castopod) GetConditions() *pkgv1beta1.Conditions
func (*Castopod) GetStatus ¶
func (in *Castopod) GetStatus() pkgv1beta1.Dirty
type CastopodList ¶
type CastopodList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Castopod `json:"items"` }
CastopodList contains a list of Castopod
func (*CastopodList) DeepCopy ¶
func (in *CastopodList) DeepCopy() *CastopodList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CastopodList.
func (*CastopodList) DeepCopyInto ¶
func (in *CastopodList) DeepCopyInto(out *CastopodList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CastopodList) DeepCopyObject ¶
func (in *CastopodList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CastopodSpec ¶
type CastopodSpec struct { //+required ConfigurationSpec string `json:"configurationSpec,omitempty"` //+required VersionSpec string `json:"versionSpec,omitempty"` //+required Activated bool `json:"activated"` //+optional Config Config `json:"config,omitempty"` }
CastopodSpec defines the desired state of Castopod
func (*CastopodSpec) DeepCopy ¶
func (in *CastopodSpec) DeepCopy() *CastopodSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CastopodSpec.
func (*CastopodSpec) DeepCopyInto ¶
func (in *CastopodSpec) DeepCopyInto(out *CastopodSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Config ¶
type Config struct { //+optional URL ConfigUrl `json:"url,omitempty"` Limit ConfigLimit `json:"limit,omitempty"` Gateway ConfigGateway `json:"gateway,omitempty"` }
func (*Config) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Config.
func (*Config) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConfigGateway ¶
type ConfigGateway struct { Admin string `json:"admin,omitempty"` Auth string `json:"auth,omitempty"` Install string `json:"install,omitempty"` }
func (*ConfigGateway) DeepCopy ¶
func (in *ConfigGateway) DeepCopy() *ConfigGateway
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigGateway.
func (*ConfigGateway) DeepCopyInto ¶
func (in *ConfigGateway) DeepCopyInto(out *ConfigGateway)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConfigLimit ¶
type ConfigLimit struct {
Storage string `json:"storage,omitempty"`
}
func (*ConfigLimit) DeepCopy ¶
func (in *ConfigLimit) DeepCopy() *ConfigLimit
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigLimit.
func (*ConfigLimit) DeepCopyInto ¶
func (in *ConfigLimit) DeepCopyInto(out *ConfigLimit)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConfigMedia ¶ added in v1.0.6
type ConfigMedia struct { //+optional Endpoint string `json:"endpoint,omitempty"` Key string `json:"key,omitempty"` Secret string `json:"secret,omitempty"` Region string `json:"region,omitempty"` Bucket string `json:"bucket,omitempty"` }
func (*ConfigMedia) DeepCopy ¶ added in v1.0.6
func (in *ConfigMedia) DeepCopy() *ConfigMedia
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigMedia.
func (*ConfigMedia) DeepCopyInto ¶ added in v1.0.6
func (in *ConfigMedia) DeepCopyInto(out *ConfigMedia)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConfigSmtp ¶ added in v1.0.6
type ConfigSmtp struct { //+optional From string `json:"from,omitempty"` Host string `json:"host,omitempty"` Port string `json:"port,omitempty"` Username string `json:"username,omitempty"` Password string `json:"password,omitempty"` }
func (*ConfigSmtp) DeepCopy ¶ added in v1.0.6
func (in *ConfigSmtp) DeepCopy() *ConfigSmtp
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigSmtp.
func (*ConfigSmtp) DeepCopyInto ¶ added in v1.0.6
func (in *ConfigSmtp) DeepCopyInto(out *ConfigSmtp)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConfigSource ¶
type ConfigSource struct { // Selects a key of a ConfigMap. // +optional ConfigMapKeyRef *corev1.ConfigMapKeySelector `json:"configMapKeyRef,omitempty" protobuf:"bytes,3,opt,name=configMapKeyRef"` // Selects a key of a secret in the pod's namespace // +optional SecretKeyRef *corev1.SecretKeySelector `json:"secretKeyRef,omitempty" protobuf:"bytes,4,opt,name=secretKeyRef"` }
func (*ConfigSource) DeepCopy ¶
func (in *ConfigSource) DeepCopy() *ConfigSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigSource.
func (*ConfigSource) DeepCopyInto ¶
func (in *ConfigSource) DeepCopyInto(out *ConfigSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ConfigSource) Env ¶
func (c *ConfigSource) Env() *corev1.EnvVarSource
type ConfigUrl ¶
type ConfigUrl struct { Base string `json:"base,omitempty"` Media string `json:"media,omitempty"` LegalNotice string `json:"legalNotice,omitempty"` }
func (*ConfigUrl) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigUrl.
func (*ConfigUrl) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Configuration ¶
type Configuration struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ConfigurationSpec `json:"spec,omitempty"` Status pkgv1beta1.Status `json:"status,omitempty"` }
Configuration is the Schema for the castopods API
func (*Configuration) DeepCopy ¶
func (in *Configuration) DeepCopy() *Configuration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Configuration.
func (*Configuration) DeepCopyInto ¶
func (in *Configuration) DeepCopyInto(out *Configuration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Configuration) DeepCopyObject ¶
func (in *Configuration) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Configuration) Hub ¶ added in v1.1.0
func (*Configuration) Hub()
type ConfigurationList ¶
type ConfigurationList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Configuration `json:"items"` }
ConfigurationList contains a list of Configuration
func (*ConfigurationList) DeepCopy ¶
func (in *ConfigurationList) DeepCopy() *ConfigurationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigurationList.
func (*ConfigurationList) DeepCopyInto ¶
func (in *ConfigurationList) DeepCopyInto(out *ConfigurationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ConfigurationList) DeepCopyObject ¶
func (in *ConfigurationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ConfigurationSpec ¶
type ConfigurationSpec struct { //+required Mysql MysqlConfig `json:"mysql"` //+required Ingress Ingress `json:"ingress,omitempty"` //+optional Media ConfigMedia `json:"media,omitempty"` //+optional Smtp ConfigSmtp `json:"smtp,omitempty"` }
ConfigurationSpec defines the desired state of Configuration
func (*ConfigurationSpec) DeepCopy ¶
func (in *ConfigurationSpec) DeepCopy() *ConfigurationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigurationSpec.
func (*ConfigurationSpec) DeepCopyInto ¶
func (in *ConfigurationSpec) DeepCopyInto(out *ConfigurationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Ingress ¶
type Ingress struct { // +optional Annotations map[string]string `json:"annotations,omitempty"` // +optional TLS IngressTLS `json:"tls"` }
func (*Ingress) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Ingress.
func (*Ingress) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IngressTLS ¶
type IngressTLS struct { // SecretName is the name of the secret used to terminate TLS traffic on // port 443. Field is left optional to allow TLS routing based on SNI // hostname alone. If the SNI host in a listener conflicts with the "Host" // header field used by an IngressRule, the SNI host is used for termination // and value of the Host header is used for routing. // +optional SecretName string `json:"secretName,omitempty" protobuf:"bytes,2,opt,name=secretName"` }
func (*IngressTLS) AsK8SIngressTLSSlice ¶
func (t *IngressTLS) AsK8SIngressTLSSlice() []networkingv1.IngressTLS
func (*IngressTLS) DeepCopy ¶
func (in *IngressTLS) DeepCopy() *IngressTLS
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressTLS.
func (*IngressTLS) DeepCopyInto ¶
func (in *IngressTLS) DeepCopyInto(out *IngressTLS)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MysqlConfig ¶
type MysqlConfig struct { // +optional Port string `json:"port"` // +optional PortFrom *ConfigSource `json:"portFrom"` // +optional Host string `json:"host"` // +optional HostFrom *ConfigSource `json:"hostFrom"` // +optional Username string `json:"username"` // +optional UsernameFrom *ConfigSource `json:"usernameFrom"` // +optional Password string `json:"password"` // +optional PasswordFrom *ConfigSource `json:"passwordFrom"` }
func (*MysqlConfig) DeepCopy ¶
func (in *MysqlConfig) DeepCopy() *MysqlConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MysqlConfig.
func (*MysqlConfig) DeepCopyInto ¶
func (in *MysqlConfig) DeepCopyInto(out *MysqlConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MysqlConfig) EnvWithDiscriminator ¶
func (c *MysqlConfig) EnvWithDiscriminator(prefix, discriminator string) []corev1.EnvVar
type Version ¶
type Version struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec VersionSpec `json:"spec,omitempty"` Status pkgv1beta1.Status `json:"status,omitempty"` }
Version is the Schema for the castopods API
func (*Version) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Version.
func (*Version) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Version) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VersionList ¶
type VersionList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Version `json:"items"` }
VersionList contains a list of Version
func (*VersionList) DeepCopy ¶
func (in *VersionList) DeepCopy() *VersionList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VersionList.
func (*VersionList) DeepCopyInto ¶
func (in *VersionList) DeepCopyInto(out *VersionList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VersionList) DeepCopyObject ¶
func (in *VersionList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VersionSpec ¶
type VersionSpec struct { //+required ImageTag string `json:"imageTag,omitempty"` }
VersionSpec defines the desired state of Version
func (*VersionSpec) DeepCopy ¶
func (in *VersionSpec) DeepCopy() *VersionSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VersionSpec.
func (*VersionSpec) DeepCopyInto ¶
func (in *VersionSpec) DeepCopyInto(out *VersionSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.