interfaces

package
v0.0.0-...-540bb61 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerCreator

type ContainerCreator interface {
	GetArgs() ([]string, error)
	GetName() string
	GetExecutor() string
	GetProbes() (*core.Probe, *core.Probe, *core.Probe, error)
	GetResourceRequirements() core.ResourceRequirements
	GetLifecycle() (*core.Lifecycle, error)
	GetImagePullPolicy() core.PullPolicy
	GetImage() string
	GetEnvs() ([]core.EnvVar, []core.EnvFromSource)
	GetSecurityContext() *core.SecurityContext
	GetPorts() []core.ContainerPort
	GetVolumeMounts() []core.VolumeMount
}

type Inspector

type Inspector interface {
	secret.Inspector
	service.Inspector
}

type PodCreator

type PodCreator interface {
	Init(context.Context, Inspector, *core.Pod) error
	GetName() string
	GetRole() string
	GetVolumes() []core.Volume
	GetSidecars(*core.Pod) error
	GetInitContainers(cachedStatus Inspector) ([]core.Container, error)
	GetFinalizers() []string
	GetTolerations() []core.Toleration
	GetNodeSelector() map[string]string
	GetServiceAccountName() string
	GetPodAntiAffinity() *core.PodAntiAffinity
	GetPodAffinity() *core.PodAffinity
	GetNodeAffinity() *core.NodeAffinity
	GetRestartPolicy() core.RestartPolicy
	GetContainerCreator() ContainerCreator
	GetImagePullSecrets() []string
	IsDeploymentMode() bool
	Validate(cachedStatus Inspector) error

	Annotations() map[string]string
	Labels() map[string]string

	PodModifier
}

type PodModifier

type PodModifier interface {
	ApplyPodSpec(spec *core.PodSpec) error
}

Jump to

Keyboard shortcuts

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