images

package
v0.0.0-...-db5eef7 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllImages

func GetAllImages(cfg *kubeadmapi.MasterConfiguration) []string

GetAllImages returns a list of container images kubeadm expects to use on a control plane node

func GetCoreImage

func GetCoreImage(image, repoPrefix, k8sVersion, overrideImage string) string

GetCoreImage generates and returns the image for the core Kubernetes components or returns overrideImage if specified

Types

type CRInterfacer

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

CRInterfacer is a struct that interfaces with the container runtime

func NewCRInterfacer

func NewCRInterfacer(execer utilsexec.Interface, criSocket string) (*CRInterfacer, error)

NewCRInterfacer sets up and returns a CRInterfacer

func (*CRInterfacer) Exists

func (cri *CRInterfacer) Exists(image string) error

Exists checks to see if the image exists on the system already Returns an error if the image is not found.

func (*CRInterfacer) Pull

func (cri *CRInterfacer) Pull(image string) error

Pull pulls the actual image using either crictl or docker

type Existence

type Existence interface {
	Exists(string) error
}

Existence is an interface to determine if an image exists on the system A nil error means the image was found

type Images

type Images interface {
	Puller
	Existence
}

Images defines the set of behaviors needed for images relating to the CRI

type Puller

type Puller interface {
	Pull(string) error
}

Puller is an interface for pulling images

Jump to

Keyboard shortcuts

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