strategy

package
v0.0.0-...-2a3794e Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubernetesPodPullStrategy

type KubernetesPodPullStrategy struct {
	OwnerReference v1.OwnerReference
	Client         kubernetes.Interface

	WardenImage string

	NodeName  string
	Namespace string
	PodName   string
	// contains filtered or unexported fields
}

func (*KubernetesPodPullStrategy) ImagePullErrorCh

func (kpps *KubernetesPodPullStrategy) ImagePullErrorCh() <-chan string

func (*KubernetesPodPullStrategy) ImagePullSuccessCh

func (kpps *KubernetesPodPullStrategy) ImagePullSuccessCh() <-chan string

func (*KubernetesPodPullStrategy) MonitorPods

func (kpps *KubernetesPodPullStrategy) MonitorPods(ctx context.Context)

func (*KubernetesPodPullStrategy) PullImage

func (kpps *KubernetesPodPullStrategy) PullImage(ctx context.Context, image string) error

type KubernetesPodPullStrategyOpts

type KubernetesPodPullStrategyOpts struct {
	OwnerReference v1.OwnerReference
	Client         kubernetes.Interface

	WardenImage string

	NodeName  string
	Namespace string
	PodName   string
}

type PullStrategy

type PullStrategy interface {
	PullImage(context.Context, string) error

	ImagePullSuccessCh() <-chan string
	ImagePullErrorCh() <-chan string
}

Jump to

Keyboard shortcuts

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