imagefacade

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2018 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunImageFacade

func RunImageFacade(configPath string, stop <-chan struct{})

Types

type Action

type Action interface {
	// contains filtered or unexported methods
}

type Config

type Config struct {
	// These allow images to be pulled from registries that require authentication
	PrivateDockerRegistries []docker.RegistryAuth

	LogLevel string

	CreateImagesOnly bool
	Port             int
}

func GetConfig

func GetConfig(configPath string) (*Config, error)

GetConfig returns a configuration object to configure Perceptor

func (*Config) GetLogLevel

func (config *Config) GetLogLevel() (log.Level, error)

type DiskMetrics

type DiskMetrics struct {
	FreeBytes      uint64
	AvailableBytes uint64
	TotalBytes     uint64
	UsedBytes      uint64
}

type GetImage

type GetImage struct {
	Image        *common.Image
	Continuation func(imageStatus common.ImageStatus)
}

func NewGetImage

func NewGetImage(image *common.Image, continuation func(imageStatus common.ImageStatus)) *GetImage

type HTTPServer

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

func NewHTTPServer

func NewHTTPServer() *HTTPServer

func (*HTTPServer) GetImageChannel

func (h *HTTPServer) GetImageChannel() <-chan *GetImage

func (*HTTPServer) PullImageChannel

func (h *HTTPServer) PullImageChannel() <-chan *PullImage

type ImageFacade

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

func NewImageFacade

func NewImageFacade(dockerRegistries []pdocker.RegistryAuth, createImagesOnly bool) *ImageFacade

type Model

type Model struct {
	State  ModelState
	Images map[string]common.ImageStatus
	// contains filtered or unexported fields
}

func NewModel

func NewModel() *Model

func (*Model) PullImageChannel

func (model *Model) PullImageChannel() <-chan *common.Image

type ModelState

type ModelState int
const (
	ModelStateReady   ModelState = iota
	ModelStatePulling ModelState = iota
)

func (ModelState) String

func (m ModelState) String() string

type PullImage

type PullImage struct {
	Image        *common.Image
	Continuation func(err error)
}

func NewPullImage

func NewPullImage(image *common.Image, continuation func(err error)) *PullImage

Jump to

Keyboard shortcuts

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