components

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultComponent string = "app"

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	ServiceName  string             `json:"name,omitempty"`
	Hostname     string             `json:"hostname,omitempty"`
	Paths        []string           `json:"routes,omitempty"`
	TLS          bool               `json:"tls,omitempty"`
	TLSSecretRef string             `json:"tlsSecretRef,omitempty"`
	Port         service.Port       `json:"port,omitempty"`
	ServiceType  corev1.ServiceType `json:"type,omitempty"`
}

+kubebuilder:object:generate=true

func (*Backend) DeepCopy

func (in *Backend) DeepCopy() *Backend

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

func (*Backend) DeepCopyInto

func (in *Backend) DeepCopyInto(out *Backend)

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

func (*Backend) GetIngressBackendPaths

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

func (*Backend) GetIngressRule

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

func (*Backend) GetIngressTLS

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

func (*Backend) GetServicePort

func (b *Backend) GetServicePort() corev1.ServicePort

func (*Backend) GetServicePorts

func (b *Backend) GetServicePorts() []corev1.ServicePort

func (*Backend) GetServiceType

func (b *Backend) GetServiceType() corev1.ServiceType

type Ingress

type Ingress struct {
	*meta.ObjectMeta `json:"commonMeta,omitempty"`
	Backends         []Backend `json:"backends,omitempty"`
}

func (*Ingress) GetIngressRules

func (i *Ingress) GetIngressRules() []networkingv1beta1.IngressRule

func (*Ingress) GetIngressTLS

func (i *Ingress) GetIngressTLS() []networkingv1beta1.IngressTLS

func (*Ingress) GetObject

func (i *Ingress) GetObject() interfaces.Object

func (*Ingress) Mutate

func (i *Ingress) Mutate(obj interfaces.Object) error

type Network

type Network struct {
	IngressMeta *meta.ObjectMeta `json:"ingressMeta,omitempty"`
	ServiceMeta *meta.ObjectMeta `json:"serviceMeta,omitempty"`
	*Backend    `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.

type Service

type Service struct {
	*meta.ObjectMeta `json:"meta,omitempty"`
	*Backend         `json:"backend,omitempty"`
}

func (*Service) GetObject

func (s *Service) GetObject() interfaces.Object

func (*Service) Mutate

func (s *Service) Mutate(obj interfaces.Object) error

type Workload

type Workload struct {
	*meta.ObjectMeta       `json:"commonMeta,omitempty"`
	*deployment.Deployment `json:"deployment,omitempty"`
	*Network               `json:"network,omitempty"`
	Dependencies           bool `json:"dependencies,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) GetDependencies

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

func (*Workload) GetMeta

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

func (*Workload) GetObjects

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

func (*Workload) HasDependencies

func (w *Workload) HasDependencies() bool

func (*Workload) Init

func (w *Workload) Init()

func (*Workload) SetDefaults

func (w *Workload) SetDefaults()

func (*Workload) SetDependencies

func (w *Workload) SetDependencies(s *settings.Component)

Jump to

Keyboard shortcuts

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