Documentation ¶
Index ¶
- type ContainerBuilder
- func (c *ContainerBuilder) Args(args []string) *ContainerBuilder
- func (c *ContainerBuilder) Build() corev1.Container
- func (c *ContainerBuilder) Command(cmd []string) *ContainerBuilder
- func (c *ContainerBuilder) EnvironmentVars(envvar ...corev1.EnvVar) *ContainerBuilder
- func (c *ContainerBuilder) EnvironmentsFrom(envSource ...corev1.EnvFromSource) *ContainerBuilder
- func (c *ContainerBuilder) Exposes(port ...corev1.ContainerPort) *ContainerBuilder
- func (c *ContainerBuilder) Image(image string) *ContainerBuilder
- func (c *ContainerBuilder) LivensesProbe(liveProbe *corev1.Probe) *ContainerBuilder
- func (c *ContainerBuilder) Named(name string) *ContainerBuilder
- func (c *ContainerBuilder) ReadinessProbe(readyProbe *corev1.Probe) *ContainerBuilder
- func (c *ContainerBuilder) VolumeMounts(mount ...corev1.VolumeMount) *ContainerBuilder
- type DeploymentAnnotationBuilder
- type DeploymentBuilder
- func (d *DeploymentBuilder) Annotate() *DeploymentAnnotationBuilder
- func (d *DeploymentBuilder) Build() *appsv1.Deployment
- func (d *DeploymentBuilder) In(namespace string) *DeploymentBuilder
- func (d *DeploymentBuilder) Labeled(labels map[string]string) *DeploymentBuilder
- func (d *DeploymentBuilder) Named(name string) *DeploymentBuilder
- func (d *DeploymentBuilder) OfSize(replicas int32) *DeploymentBuilder
- func (d *DeploymentBuilder) RunsAs(serviceAccount string) *DeploymentBuilder
- func (d *DeploymentBuilder) Validate() error
- func (d *DeploymentBuilder) WithAnnotations(annotations map[string]string) *DeploymentBuilder
- func (d *DeploymentBuilder) WithContainers(container ...corev1.Container) *DeploymentBuilder
- func (d *DeploymentBuilder) WithVolumes(volume ...corev1.Volume) *DeploymentBuilder
- type IngressBuilder
- type PersistentVolumeClaimBuilder
- func (c *PersistentVolumeClaimBuilder) AccessModes(mode ...corev1.PersistentVolumeAccessMode) *PersistentVolumeClaimBuilder
- func (c *PersistentVolumeClaimBuilder) Build() *corev1.PersistentVolumeClaim
- func (c *PersistentVolumeClaimBuilder) In(namespace string) *PersistentVolumeClaimBuilder
- func (c *PersistentVolumeClaimBuilder) Labeled(labels map[string]string) *PersistentVolumeClaimBuilder
- func (c *PersistentVolumeClaimBuilder) Named(name string) *PersistentVolumeClaimBuilder
- func (c *PersistentVolumeClaimBuilder) ResourceLimits(limit corev1.ResourceList) *PersistentVolumeClaimBuilder
- func (c *PersistentVolumeClaimBuilder) ResourceRequests(request corev1.ResourceList) *PersistentVolumeClaimBuilder
- func (c *PersistentVolumeClaimBuilder) StorageClass(name string) *PersistentVolumeClaimBuilder
- type PodBuilder
- func (p *PodBuilder) Build() *corev1.Pod
- func (p *PodBuilder) In(namespace string) *PodBuilder
- func (p *PodBuilder) Labeled(labels map[string]string) *PodBuilder
- func (p *PodBuilder) Named(name string) *PodBuilder
- func (p *PodBuilder) RunsAs(serviceAccount string) *PodBuilder
- func (p *PodBuilder) WithAnnotations(annotations map[string]string) *PodBuilder
- func (p *PodBuilder) WithContainers(container ...corev1.Container) *PodBuilder
- func (p *PodBuilder) WithVolumes(volume ...corev1.Volume) *PodBuilder
- type ResourceBuilder
- func (r *ResourceBuilder) Container() *ContainerBuilder
- func (r *ResourceBuilder) Deployment() *DeploymentBuilder
- func (r *ResourceBuilder) Ingress() *IngressBuilder
- func (r *ResourceBuilder) PersistentVolumeClaim() *PersistentVolumeClaimBuilder
- func (r *ResourceBuilder) Pod() *PodBuilder
- func (r *ResourceBuilder) Service() *ServiceBuilder
- func (r *ResourceBuilder) StatefulSet() *StatefulSetBuilder
- type ServiceBuilder
- func (s *ServiceBuilder) Build() *corev1.Service
- func (s *ServiceBuilder) In(namespace string) *ServiceBuilder
- func (s *ServiceBuilder) Labeled(labels map[string]string) *ServiceBuilder
- func (s *ServiceBuilder) Named(name string) *ServiceBuilder
- func (s *ServiceBuilder) OfType(svcType corev1.ServiceType) *ServiceBuilder
- func (s *ServiceBuilder) Ports(svc ...corev1.ServicePort) *ServiceBuilder
- func (s *ServiceBuilder) WithSelectors(selectors map[string]string) *ServiceBuilder
- type StatefulSetAnnotationBuilder
- type StatefulSetBuilder
- func (s *StatefulSetBuilder) Annotate() *StatefulSetAnnotationBuilder
- func (s *StatefulSetBuilder) Build() *appsv1.StatefulSet
- func (s *StatefulSetBuilder) In(namespace string) *StatefulSetBuilder
- func (s *StatefulSetBuilder) Labeled(labels map[string]string) *StatefulSetBuilder
- func (s *StatefulSetBuilder) Named(name string) *StatefulSetBuilder
- func (s *StatefulSetBuilder) OfSize(replicas int32) *StatefulSetBuilder
- func (s *StatefulSetBuilder) RunsAs(serviceAccount string) *StatefulSetBuilder
- func (s *StatefulSetBuilder) WithAnnotations(annotations map[string]string) *StatefulSetBuilder
- func (s *StatefulSetBuilder) WithContainers(container ...corev1.Container) *StatefulSetBuilder
- func (s *StatefulSetBuilder) WithVolumes(volume ...corev1.Volume) *StatefulSetBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerBuilder ¶
type ContainerBuilder struct {
// contains filtered or unexported fields
}
func (*ContainerBuilder) Args ¶
func (c *ContainerBuilder) Args(args []string) *ContainerBuilder
func (*ContainerBuilder) Build ¶
func (c *ContainerBuilder) Build() corev1.Container
func (*ContainerBuilder) Command ¶
func (c *ContainerBuilder) Command(cmd []string) *ContainerBuilder
func (*ContainerBuilder) EnvironmentVars ¶
func (c *ContainerBuilder) EnvironmentVars(envvar ...corev1.EnvVar) *ContainerBuilder
func (*ContainerBuilder) EnvironmentsFrom ¶
func (c *ContainerBuilder) EnvironmentsFrom(envSource ...corev1.EnvFromSource) *ContainerBuilder
func (*ContainerBuilder) Exposes ¶
func (c *ContainerBuilder) Exposes(port ...corev1.ContainerPort) *ContainerBuilder
func (*ContainerBuilder) Image ¶
func (c *ContainerBuilder) Image(image string) *ContainerBuilder
func (*ContainerBuilder) LivensesProbe ¶
func (c *ContainerBuilder) LivensesProbe(liveProbe *corev1.Probe) *ContainerBuilder
func (*ContainerBuilder) Named ¶
func (c *ContainerBuilder) Named(name string) *ContainerBuilder
func (*ContainerBuilder) ReadinessProbe ¶
func (c *ContainerBuilder) ReadinessProbe(readyProbe *corev1.Probe) *ContainerBuilder
func (*ContainerBuilder) VolumeMounts ¶
func (c *ContainerBuilder) VolumeMounts(mount ...corev1.VolumeMount) *ContainerBuilder
type DeploymentAnnotationBuilder ¶
type DeploymentAnnotationBuilder struct {
DeploymentBuilder
}
func (*DeploymentAnnotationBuilder) Component ¶
func (a *DeploymentAnnotationBuilder) Component(component string) *DeploymentAnnotationBuilder
func (*DeploymentAnnotationBuilder) Version ¶
func (a *DeploymentAnnotationBuilder) Version(version string) *DeploymentAnnotationBuilder
type DeploymentBuilder ¶
type DeploymentBuilder struct {
// contains filtered or unexported fields
}
func (*DeploymentBuilder) Annotate ¶
func (d *DeploymentBuilder) Annotate() *DeploymentAnnotationBuilder
func (*DeploymentBuilder) Build ¶
func (d *DeploymentBuilder) Build() *appsv1.Deployment
func (*DeploymentBuilder) In ¶
func (d *DeploymentBuilder) In(namespace string) *DeploymentBuilder
func (*DeploymentBuilder) Labeled ¶
func (d *DeploymentBuilder) Labeled(labels map[string]string) *DeploymentBuilder
func (*DeploymentBuilder) Named ¶
func (d *DeploymentBuilder) Named(name string) *DeploymentBuilder
func (*DeploymentBuilder) OfSize ¶
func (d *DeploymentBuilder) OfSize(replicas int32) *DeploymentBuilder
func (*DeploymentBuilder) RunsAs ¶
func (d *DeploymentBuilder) RunsAs(serviceAccount string) *DeploymentBuilder
func (*DeploymentBuilder) Validate ¶
func (d *DeploymentBuilder) Validate() error
func (*DeploymentBuilder) WithAnnotations ¶
func (d *DeploymentBuilder) WithAnnotations(annotations map[string]string) *DeploymentBuilder
func (*DeploymentBuilder) WithContainers ¶
func (d *DeploymentBuilder) WithContainers(container ...corev1.Container) *DeploymentBuilder
func (*DeploymentBuilder) WithVolumes ¶
func (d *DeploymentBuilder) WithVolumes(volume ...corev1.Volume) *DeploymentBuilder
type IngressBuilder ¶
type IngressBuilder struct {
// contains filtered or unexported fields
}
func (*IngressBuilder) In ¶
func (i *IngressBuilder) In(namespace string) *IngressBuilder
func (*IngressBuilder) Labeled ¶
func (i *IngressBuilder) Labeled(labels map[string]string) *IngressBuilder
func (*IngressBuilder) Named ¶
func (i *IngressBuilder) Named(name string) *IngressBuilder
func (*IngressBuilder) OfClass ¶
func (i *IngressBuilder) OfClass(ingressClass string) *IngressBuilder
type PersistentVolumeClaimBuilder ¶
type PersistentVolumeClaimBuilder struct {
// contains filtered or unexported fields
}
func (*PersistentVolumeClaimBuilder) AccessModes ¶
func (c *PersistentVolumeClaimBuilder) AccessModes(mode ...corev1.PersistentVolumeAccessMode) *PersistentVolumeClaimBuilder
func (*PersistentVolumeClaimBuilder) Build ¶
func (c *PersistentVolumeClaimBuilder) Build() *corev1.PersistentVolumeClaim
func (*PersistentVolumeClaimBuilder) In ¶
func (c *PersistentVolumeClaimBuilder) In(namespace string) *PersistentVolumeClaimBuilder
func (*PersistentVolumeClaimBuilder) Labeled ¶
func (c *PersistentVolumeClaimBuilder) Labeled(labels map[string]string) *PersistentVolumeClaimBuilder
func (*PersistentVolumeClaimBuilder) Named ¶
func (c *PersistentVolumeClaimBuilder) Named(name string) *PersistentVolumeClaimBuilder
func (*PersistentVolumeClaimBuilder) ResourceLimits ¶
func (c *PersistentVolumeClaimBuilder) ResourceLimits(limit corev1.ResourceList) *PersistentVolumeClaimBuilder
func (*PersistentVolumeClaimBuilder) ResourceRequests ¶
func (c *PersistentVolumeClaimBuilder) ResourceRequests(request corev1.ResourceList) *PersistentVolumeClaimBuilder
func (*PersistentVolumeClaimBuilder) StorageClass ¶
func (c *PersistentVolumeClaimBuilder) StorageClass(name string) *PersistentVolumeClaimBuilder
type PodBuilder ¶
type PodBuilder struct {
// contains filtered or unexported fields
}
func (*PodBuilder) Build ¶
func (p *PodBuilder) Build() *corev1.Pod
func (*PodBuilder) In ¶
func (p *PodBuilder) In(namespace string) *PodBuilder
func (*PodBuilder) Labeled ¶
func (p *PodBuilder) Labeled(labels map[string]string) *PodBuilder
func (*PodBuilder) Named ¶
func (p *PodBuilder) Named(name string) *PodBuilder
func (*PodBuilder) RunsAs ¶
func (p *PodBuilder) RunsAs(serviceAccount string) *PodBuilder
func (*PodBuilder) WithAnnotations ¶
func (p *PodBuilder) WithAnnotations(annotations map[string]string) *PodBuilder
func (*PodBuilder) WithContainers ¶
func (p *PodBuilder) WithContainers(container ...corev1.Container) *PodBuilder
func (*PodBuilder) WithVolumes ¶
func (p *PodBuilder) WithVolumes(volume ...corev1.Volume) *PodBuilder
type ResourceBuilder ¶
type ResourceBuilder struct{}
func Create ¶
func Create() *ResourceBuilder
func (*ResourceBuilder) Container ¶
func (r *ResourceBuilder) Container() *ContainerBuilder
func (*ResourceBuilder) Deployment ¶
func (r *ResourceBuilder) Deployment() *DeploymentBuilder
func (*ResourceBuilder) Ingress ¶
func (r *ResourceBuilder) Ingress() *IngressBuilder
func (*ResourceBuilder) PersistentVolumeClaim ¶
func (r *ResourceBuilder) PersistentVolumeClaim() *PersistentVolumeClaimBuilder
func (*ResourceBuilder) Pod ¶
func (r *ResourceBuilder) Pod() *PodBuilder
func (*ResourceBuilder) Service ¶
func (r *ResourceBuilder) Service() *ServiceBuilder
func (*ResourceBuilder) StatefulSet ¶
func (r *ResourceBuilder) StatefulSet() *StatefulSetBuilder
type ServiceBuilder ¶
type ServiceBuilder struct {
// contains filtered or unexported fields
}
func (*ServiceBuilder) Build ¶
func (s *ServiceBuilder) Build() *corev1.Service
func (*ServiceBuilder) In ¶
func (s *ServiceBuilder) In(namespace string) *ServiceBuilder
func (*ServiceBuilder) Labeled ¶
func (s *ServiceBuilder) Labeled(labels map[string]string) *ServiceBuilder
func (*ServiceBuilder) Named ¶
func (s *ServiceBuilder) Named(name string) *ServiceBuilder
func (*ServiceBuilder) OfType ¶
func (s *ServiceBuilder) OfType(svcType corev1.ServiceType) *ServiceBuilder
func (*ServiceBuilder) Ports ¶
func (s *ServiceBuilder) Ports(svc ...corev1.ServicePort) *ServiceBuilder
func (*ServiceBuilder) WithSelectors ¶
func (s *ServiceBuilder) WithSelectors(selectors map[string]string) *ServiceBuilder
type StatefulSetAnnotationBuilder ¶
type StatefulSetAnnotationBuilder struct {
StatefulSetBuilder
}
func (*StatefulSetAnnotationBuilder) Component ¶
func (a *StatefulSetAnnotationBuilder) Component(component string) *StatefulSetAnnotationBuilder
func (*StatefulSetAnnotationBuilder) Version ¶
func (a *StatefulSetAnnotationBuilder) Version(version string) *StatefulSetAnnotationBuilder
type StatefulSetBuilder ¶
type StatefulSetBuilder struct {
// contains filtered or unexported fields
}
func (*StatefulSetBuilder) Annotate ¶
func (s *StatefulSetBuilder) Annotate() *StatefulSetAnnotationBuilder
func (*StatefulSetBuilder) Build ¶
func (s *StatefulSetBuilder) Build() *appsv1.StatefulSet
func (*StatefulSetBuilder) In ¶
func (s *StatefulSetBuilder) In(namespace string) *StatefulSetBuilder
func (*StatefulSetBuilder) Labeled ¶
func (s *StatefulSetBuilder) Labeled(labels map[string]string) *StatefulSetBuilder
func (*StatefulSetBuilder) Named ¶
func (s *StatefulSetBuilder) Named(name string) *StatefulSetBuilder
func (*StatefulSetBuilder) OfSize ¶
func (s *StatefulSetBuilder) OfSize(replicas int32) *StatefulSetBuilder
func (*StatefulSetBuilder) RunsAs ¶
func (s *StatefulSetBuilder) RunsAs(serviceAccount string) *StatefulSetBuilder
func (*StatefulSetBuilder) WithAnnotations ¶
func (s *StatefulSetBuilder) WithAnnotations(annotations map[string]string) *StatefulSetBuilder
func (*StatefulSetBuilder) WithContainers ¶
func (s *StatefulSetBuilder) WithContainers(container ...corev1.Container) *StatefulSetBuilder
func (*StatefulSetBuilder) WithVolumes ¶
func (s *StatefulSetBuilder) WithVolumes(volume ...corev1.Volume) *StatefulSetBuilder
Click to show internal directories.
Click to hide internal directories.