resource

package
v0.0.0-...-5e1307b Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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 (*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 (*DeploymentAnnotationBuilder) Version

type DeploymentBuilder

type DeploymentBuilder struct {
	// contains filtered or unexported fields
}

func (*DeploymentBuilder) Annotate

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 (*PersistentVolumeClaimBuilder) Build

func (*PersistentVolumeClaimBuilder) In

func (*PersistentVolumeClaimBuilder) Labeled

func (*PersistentVolumeClaimBuilder) Named

func (*PersistentVolumeClaimBuilder) ResourceLimits

func (*PersistentVolumeClaimBuilder) ResourceRequests

func (*PersistentVolumeClaimBuilder) StorageClass

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 (*StatefulSetAnnotationBuilder) Version

type StatefulSetBuilder

type StatefulSetBuilder struct {
	// contains filtered or unexported fields
}

func (*StatefulSetBuilder) Annotate

func (*StatefulSetBuilder) Build

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 (*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

Jump to

Keyboard shortcuts

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