Versions in this module Expand all Collapse all v4 v4.0.0 Jan 10, 2023 Changes in this version + const EnvVarSourcePodIP + const HostPathDirectoryOrCreate + const HostPathUnset + const ResourceMemory + const RestartPolicyAlways + const RestartPolicyNever + const RestartPolicyOnFailure + var ErrMissingPods = errors.New("missing pods") + var ErrPodHasNoIP = errors.New("pod has no ip") + type Container struct + AllowPrivilegeEscalation *bool + Args []string + Command []string + EnvVars map[string]string + EnvVarsFrom map[string]string + Image string + Name string + Ports []int32 + Privileged *bool + ResourceLimits map[ResourceName]string + ResourceRequests map[ResourceName]string + Volumes []Volume + func NewChownContainer(uid, gid uint, volumes ...Volume) Container + type CreatePodInput struct + Containers []Container + ImagePullCredentials []string + InitContainers []Container + Labels map[string]string + Name string + Nameservers []string + Namespace string + NodeSelector resource.Selector + RestartPolicy RestartPolicy + TerminationGracePeriodSeconds time.Duration + Volumes []Volume + type Executor interface + Cmd func(container string, command []string) error + Script func(container, path string) error + type HostPathType corev1.HostPathType + type PodResource struct + type Pods interface + Create func(ctx context.Context, input CreatePodInput) (*PodResource, error) + Delete func(ctx context.Context, resource resource.Resource) (resource.Resource, error) + Exec func(ctx context.Context, resource resource.Resource) Executor + Get func(ctx context.Context, name, namespace string) (*PodResource, error) + GetIP func(ctx context.Context, name string, namespace string) (string, error) + List func(ctx context.Context, namespace string, selector resource.Selector) ([]PodResource, error) + Reader func(ctx context.Context, resource resource.Resource) Reader + WaitForCondition func(ctx context.Context, resource resource.Resource, ...) waiter.Waiter + type Reader interface + File func(ctx context.Context, container string, paths ...string) (*bytes.Buffer, error) + Logs func(ctx context.Context, container string, lines int64) (string, error) + type ResourceName corev1.ResourceName + type RestartPolicy corev1.RestartPolicy + type Volume interface + Base func() VolumeBase + type VolumeBase struct + MountPath string + Name string + ReadOnly bool + SubPath string + func (v VolumeBase) Base() VolumeBase + type VolumeConfiguration struct + ConfigurationName string + Items map[string]string + type VolumeHostPath struct + HostPath string + HostPathType HostPathType