components

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultComponent string = "app"

Variables

This section is empty.

Functions

This section is empty.

Types

type CronJob

type CronJob struct {
	*cronjob.CronJob `json:",inline"`
	Settings         []string `json:"settings,omitempty"`
}

+kubebuilder:object:generate=true

func (*CronJob) DeepCopy

func (in *CronJob) DeepCopy() *CronJob

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

func (*CronJob) DeepCopyInto

func (in *CronJob) DeepCopyInto(out *CronJob)

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

func (*CronJob) GetConfig

func (w *CronJob) GetConfig() settings.Config

func (*CronJob) GetMeta

func (w *CronJob) GetMeta() meta.Instance

func (*CronJob) GetObjects

func (w *CronJob) GetObjects() map[int]objects.Object

func (*CronJob) HasSettings

func (w *CronJob) HasSettings() []string

func (*CronJob) Init

func (w *CronJob) Init()

func (*CronJob) SetDefaults

func (w *CronJob) SetDefaults()

type HTTPBackend

type HTTPBackend struct {
	*service.ServiceSpec `json:",inline"`
	// Specifies the name of the referenced service.
	// +optional
	ServiceName string `json:"serviceName,omitempty" protobuf:"bytes,1,opt,name=serviceName"`
	// Host is the fully qualified domain name of a network host, as defined by RFC 3986.
	// Note the following deviations from the "host" part of the
	// URI as defined in RFC 3986:
	// 1. IPs are not allowed. Currently an IngressRuleValue can only apply to
	//    the IP in the Spec of the parent Ingress.
	// 2. The `:` delimiter is not respected because ports are not allowed.
	//	  Currently the port of an Ingress is implicitly :80 for http and
	//	  :443 for https.
	// Both these may change in the future.
	// Incoming requests are matched against the host before the
	// IngressRuleValue. If the host is unspecified, the Ingress routes all
	// traffic based on the specified IngressRuleValue.
	//
	// Host can be "precise" which is a domain name without the terminating dot of
	// a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name
	// prefixed with a single wildcard label (e.g. "*.foo.com").
	// The wildcard character '*' must appear by itself as the first DNS label and
	// matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*").
	// Requests will be matched against the Host field in the following way:
	// 1. If Host is precise, the request matches this rule if the http host header is equal to Host.
	// 2. If Host is a wildcard, then the request matches this rule if the http host header
	// is to equal to the suffix (removing the first label) of the wildcard rule.
	// +optional
	Host string `json:"host,omitempty" protobuf:"bytes,1,opt,name=host"`
	// Path is matched against the path of an incoming request. Currently it can
	// contain characters disallowed from the conventional "path" part of a URL
	// as defined by RFC 3986. Paths must begin with a '/'. When unspecified,
	// all paths from incoming requests are matched.
	// +optional
	Paths []string `json:"routes,omitempty"`
	// TLS specifies if tls is enabled
	TLS bool `json:"tls,omitempty"`
	// 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
	TLSSecretRef string `json:"tlsSecretRef,omitempty" protobuf:"bytes,2,opt,name=tlsSecretRef"`
}

+kubebuilder:object:generate=true

func (*HTTPBackend) DeepCopy

func (in *HTTPBackend) DeepCopy() *HTTPBackend

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

func (*HTTPBackend) DeepCopyInto

func (in *HTTPBackend) DeepCopyInto(out *HTTPBackend)

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

func (*HTTPBackend) GetIngressBackendPaths

func (b *HTTPBackend) GetIngressBackendPaths() []networkingv1beta1.HTTPIngressPath

func (*HTTPBackend) GetIngressRule

func (b *HTTPBackend) GetIngressRule() networkingv1beta1.IngressRule

func (*HTTPBackend) GetIngressSpec

func (b *HTTPBackend) GetIngressSpec() *networkingv1beta1.IngressSpec

func (*HTTPBackend) GetIngressTLS

func (b *HTTPBackend) GetIngressTLS() networkingv1beta1.IngressTLS

type InternalWorkload

type InternalWorkload struct {
	*meta.ObjectMeta       `json:"commonMeta,omitempty"`
	*deployment.Deployment `json:"deployment,omitempty"`
	*service.Service       `json:"service,omitempty"`
	Settings               []string `json:"settings,omitempty"`
}

+kubebuilder:object:generate=true InternalWorkload implements the component interface. It is a component that contains a deployment, service and some settings.

func (*InternalWorkload) DeepCopy

func (in *InternalWorkload) DeepCopy() *InternalWorkload

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

func (*InternalWorkload) DeepCopyInto

func (in *InternalWorkload) DeepCopyInto(out *InternalWorkload)

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

func (*InternalWorkload) GetConfig

func (w *InternalWorkload) GetConfig() settings.Config

func (*InternalWorkload) GetMeta

func (w *InternalWorkload) GetMeta() meta.Instance

GetMeta returns the meta.Instance interface

func (*InternalWorkload) GetObjects

func (w *InternalWorkload) GetObjects() map[int]objects.Object

GetObjects returns an ordered list of objects.Object interfaces

func (*InternalWorkload) HasSettings

func (w *InternalWorkload) HasSettings() []string

HasSettings returns a list of settings name that the component depends on

func (*InternalWorkload) Init

func (w *InternalWorkload) Init()

func (*InternalWorkload) SetDefaults

func (w *InternalWorkload) SetDefaults()

SetDefaults sets the default values of the component. Container ports are set from service if not specified

type Job

type Job struct {
	*job.Job `json:",inline"`
	Settings []string `json:"settings,omitempty"`
}

+kubebuilder:object:generate=true

func (*Job) DeepCopy

func (in *Job) DeepCopy() *Job

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

func (*Job) DeepCopyInto

func (in *Job) DeepCopyInto(out *Job)

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

func (*Job) GetConfig

func (w *Job) GetConfig() settings.Config

func (*Job) GetMeta

func (w *Job) GetMeta() meta.Instance

func (*Job) GetObjects

func (w *Job) GetObjects() map[int]objects.Object

func (*Job) HasSettings

func (w *Job) HasSettings() []string

func (*Job) Init

func (w *Job) Init()

func (*Job) SetDefaults

func (w *Job) SetDefaults()

type Jobs

type Jobs struct {
	*meta.ObjectMeta `json:"commonMeta,omitempty"`
	Install          *Job `json:"install,omitempty"`
	Upgrade          *Job `json:"upgrade,omitempty"`
}

+kubebuilder:object:generate=true

func (*Jobs) DeepCopy

func (in *Jobs) DeepCopy() *Jobs

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

func (*Jobs) DeepCopyInto

func (in *Jobs) DeepCopyInto(out *Jobs)

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

func (*Jobs) GetJobs

func (w *Jobs) GetJobs() map[string]application.Component

func (*Jobs) GetObjects

func (w *Jobs) GetObjects() map[int]objects.Object

func (*Jobs) Init

func (w *Jobs) Init()

type Network

type Network struct {
	IngressMeta  *meta.ObjectMeta `json:"ingressMeta,omitempty"`
	ServiceMeta  *meta.ObjectMeta `json:"serviceMeta,omitempty"`
	*HTTPBackend `json:",inline"`
}

+kubebuilder:object:generate=true

func (*Network) DeepCopy

func (in *Network) DeepCopy() *Network

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

func (*Network) DeepCopyInto

func (in *Network) DeepCopyInto(out *Network)

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

func (*Network) GetIngress

func (n *Network) GetIngress() *ingress.Ingress

func (*Network) GetService

func (n *Network) GetService() *service.Service

func (*Network) Init

func (n *Network) Init()

type Workload

type Workload struct {
	*meta.ObjectMeta       `json:"commonMeta,omitempty"`
	*deployment.Deployment `json:"deployment,omitempty"`
	*Network               `json:"network,omitempty"`
	Settings               []string `json:"settings,omitempty"`
}

+kubebuilder:object:generate=true

func (*Workload) DeepCopy

func (in *Workload) DeepCopy() *Workload

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

func (*Workload) DeepCopyInto

func (in *Workload) DeepCopyInto(out *Workload)

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

func (*Workload) GetConfig

func (w *Workload) GetConfig() settings.Config

func (*Workload) GetMeta

func (w *Workload) GetMeta() meta.Instance

func (*Workload) GetObjects

func (w *Workload) GetObjects() map[int]objects.Object

func (*Workload) HasSettings

func (w *Workload) HasSettings() []string

func (*Workload) Init

func (w *Workload) Init()

func (*Workload) SetDefaults

func (w *Workload) SetDefaults()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL