Documentation ¶
Index ¶
- type Builder
- func (b *Builder) Build() (corev1.Container, error)
- func (b *Builder) WithArgumentsNew(args []string) *Builder
- func (b *Builder) WithCommandNew(cmd []string) *Builder
- func (b *Builder) WithEnvsFrom(envFrom []corev1.EnvFromSource) *Builder
- func (b *Builder) WithEnvsNew(envs []corev1.EnvVar) *Builder
- func (b *Builder) WithImage(img string) *Builder
- func (b *Builder) WithImagePullPolicy(policy corev1.PullPolicy) *Builder
- func (b *Builder) WithName(name string) *Builder
- func (b *Builder) WithPortsNew(ports []corev1.ContainerPort) *Builder
- func (b *Builder) WithResourceRequirements(rr corev1.ResourceRequirements) *Builder
- func (b *Builder) WithSecurityContext(sc corev1.SecurityContext) *Builder
- func (b *Builder) WithVolumeMountsNew(volumeMounts []corev1.VolumeMount) *Builder
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 (*Builder) WithArgumentsNew ¶
WithArgumentsNew sets the command arguments of the container
func (*Builder) WithCommandNew ¶
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 ¶
WithEnvsNew sets the envs 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) 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
Click to show internal directories.
Click to hide internal directories.