Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunImageFacade ¶
func RunImageFacade(configPath string, stop <-chan struct{})
RunImageFacade ...
Types ¶
type Config ¶
type Config struct {
LogLevel string
ImageFacade ImageFacadeConfig
}
Config ...
type DiskMetrics ¶
type DiskMetrics struct {
FreeBytes uint64
AvailableBytes uint64
TotalBytes uint64
UsedBytes uint64
}
DiskMetrics ...
type HTTPResponder ¶
type HTTPResponder interface {
PullImage(*common.Image) error
GetImage(*common.Image) common.ImageStatus
GetModel() map[string]interface{}
}
HTTPResponder ...
type ImageFacade ¶
type ImageFacade struct {
// contains filtered or unexported fields
}
ImageFacade ...
func NewImageFacade ¶
func NewImageFacade(dockerRegistries []common.RegistryAuth, createImagesOnly bool, imagePullerType string, stop <-chan struct{}) *ImageFacade
NewImageFacade ...
func (*ImageFacade) GetImage ¶
func (imf *ImageFacade) GetImage(image *common.Image) common.ImageStatus
GetImage ...
func (*ImageFacade) GetModel ¶
func (imf *ImageFacade) GetModel() map[string]interface{}
GetModel ...
type ImageFacadeConfig ¶
type ImageFacadeConfig struct {
// These allow images to be pulled from registries that require authentication
PrivateDockerRegistries []common.RegistryAuth
ImagePullerType string
CreateImagesOnly bool
Port int
}
ImageFacadeConfig ...
type Model ¶
type Model struct {
State ModelState
Images map[string]common.ImageStatus
// contains filtered or unexported fields
}
Model ...
func (*Model) FinishImagePull ¶
FinishImagePull ...
func (*Model) GetAPIModel ¶
GetAPIModel ...
func (*Model) GetImageStatus ¶
func (model *Model) GetImageStatus(image *common.Image) common.ImageStatus
GetImageStatus ...
type ModelState ¶
type ModelState int
ModelState ...
const ( ModelStateReady ModelState = iota ModelStatePulling ModelState = iota )
...
func (ModelState) String ¶
func (m ModelState) String() string
Click to show internal directories.
Click to hide internal directories.