imagefacade

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2018 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

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

type Config

type Config struct {
	// These are openshift specific, and allow pulling from the openshift docker registry
	DockerUser               string
	DockerPassword           string
	InternalDockerRegistries []string

	CreateImagesOnly bool
	Port             int
}

func GetConfig

func GetConfig() (*Config, error)

GetConfig returns a configuration object to configure Perceptor

type HTTPServer

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

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(dockerUser string, dockerPassword string, internalDockerRegistries []string, 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

Jump to

Keyboard shortcuts

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