Documentation
¶
Index ¶
- type Image
- type ImageManager
- func (im *ImageManager) Assemble(imageID string, blueprintPath string, dctx *dcontext.DeployContext, ...) (err error)
- func (im *ImageManager) Delete(imageID string) (err error)
- func (im *ImageManager) Exist(imageID string) (exists bool)
- func (im *ImageManager) Get(imageID string) (image *Image, err error)
- func (im *ImageManager) List() (images []string)
- func (im *ImageManager) Load(imageID string, imagePath string, dctx *dcontext.DeployContext, overwrite bool) (err error)
- func (im *ImageManager) Pack(blueprintPath string, dstDir string, imageID string) (err error)
- func (im *ImageManager) Save(imageID string, dstDir string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageManager ¶
type ImageManager struct {
// contains filtered or unexported fields
}
func NewImageManager ¶
func NewImageManager(workDir string, upstream string) (im *ImageManager, err error)
func (*ImageManager) Assemble ¶
func (im *ImageManager) Assemble(imageID string, blueprintPath string, dctx *dcontext.DeployContext, overwrite bool) (err error)
assemble the blueprint into a given image blueprintPath must be an absoulute path
func (*ImageManager) Delete ¶
func (im *ImageManager) Delete(imageID string) (err error)
func (*ImageManager) Exist ¶
func (im *ImageManager) Exist(imageID string) (exists bool)
func (*ImageManager) List ¶
func (im *ImageManager) List() (images []string)
func (*ImageManager) Load ¶
func (im *ImageManager) Load(imageID string, imagePath string, dctx *dcontext.DeployContext, overwrite bool) (err error)
Click to show internal directories.
Click to hide internal directories.