image

package
v1.0.0-beta.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SingularityRegistry

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

SingularityRegistry implements k8s ImageService interface.

func NewSingularityRegistry

func NewSingularityRegistry(storePath string, index *index.ImageIndex) (*SingularityRegistry, error)

NewSingularityRegistry initializes and returns SingularityRuntime. Singularity must be installed on the host otherwise it will return an error.

func (*SingularityRegistry) ImageFsInfo

ImageFsInfo returns information of the filesystem that is used to store images. Note that local SIF images that were not pulled by CRI are not counted in this stat.

func (*SingularityRegistry) ImageStatus

ImageStatus returns the status of the image. If the image is not present, returns a response with ImageStatusResponse.Image set to nil.

func (*SingularityRegistry) ListImages

ListImages lists existing images.

func (*SingularityRegistry) PullImage

PullImage pulls an image with authentication config.

func (*SingularityRegistry) RemoveImage

RemoveImage removes the image. This call is idempotent, and does not return an error if the image has already been removed.

func (*SingularityRegistry) Shutdown

func (s *SingularityRegistry) Shutdown() error

Shutdown should be called whenever SingularityRegistry is no longer used to make sure allocated resources are freed.

Jump to

Keyboard shortcuts

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