container

package
v0.0.0-...-6b51de2 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

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

Builder is the builder object for container

func NewBuilder

func NewBuilder() *Builder

NewBuilder returns a new instance of builder

func (*Builder) Build

func (b *Builder) Build() (corev1.Container, error)

Build returns the final kubernetes container

func (*Builder) WithArgumentsNew

func (b *Builder) WithArgumentsNew(args []string) *Builder

WithArgumentsNew sets the command arguments of the container

func (*Builder) WithCommandNew

func (b *Builder) WithCommandNew(cmd []string) *Builder

WithCommandNew sets the command of the container

func (*Builder) WithEnvsFrom

func (b *Builder) WithEnvsFrom(envFrom []corev1.EnvFromSource) *Builder

WithEnvsFrom sets the envFrom of the container

func (*Builder) WithEnvsNew

func (b *Builder) WithEnvsNew(envs []corev1.EnvVar) *Builder

WithEnvsNew sets the envs of the container

func (*Builder) WithImage

func (b *Builder) WithImage(img string) *Builder

WithImage sets the image of the container

func (*Builder) WithImagePullPolicy

func (b *Builder) WithImagePullPolicy(policy corev1.PullPolicy) *Builder

WithImagePullPolicy sets the image pull policy of the container

func (*Builder) WithName

func (b *Builder) WithName(name string) *Builder

WithName sets the name of the container

func (*Builder) WithPortsNew

func (b *Builder) WithPortsNew(ports []corev1.ContainerPort) *Builder

WithPortsNew sets ports of the container

func (*Builder) WithResourceRequirements

func (b *Builder) WithResourceRequirements(rr corev1.ResourceRequirements) *Builder

WithResourceRequirements sets the resource requirements of the container

func (*Builder) WithSecurityContext

func (b *Builder) WithSecurityContext(sc corev1.SecurityContext) *Builder

WithSecurityContext sets the security context of the container

func (*Builder) WithVolumeMountsNew

func (b *Builder) WithVolumeMountsNew(volumeMounts []corev1.VolumeMount) *Builder

WithVolumeMountsNew sets the command arguments of the container

Jump to

Keyboard shortcuts

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