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 return the Image Facade configurations
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 return the image facade configurations
func NewImageFacade ¶
func NewImageFacade(dockerRegistries []*common.RegistryAuth, createImagesOnly bool, imagePullerType string, stop <-chan struct{}) *ImageFacade
NewImageFacade return the image puller that will used to pull the artifacts
func (*ImageFacade) GetImage ¶
func (imf *ImageFacade) GetImage(image *common.Image) common.ImageStatus
GetImage is used to get to the image status
func (*ImageFacade) GetModel ¶
func (imf *ImageFacade) GetModel() map[string]interface{}
GetModel returns the api model
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 maps to the ImageFacade config of the input configmap
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.