Documentation ¶
Index ¶
- func CheckSameFile(f1name, f2name string) (bool, error)
- func CheckTar(image string) bool
- func CleanupImage(image Image)
- func GetImageLayers(pathToImage string) []string
- func GetSize(path string) int64
- func IsTar(path string) bool
- func NewClient() (*client.Client, error)
- func UnTar(filename string, target string) error
- type CloudPrepper
- type ConfigObject
- type ConfigSchema
- type DaemonPrepper
- type Directory
- type DirectoryEntry
- type Event
- type Image
- type ImageHistoryItem
- type Prepper
- type TarPrepper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckSameFile ¶
func CleanupImage ¶
func CleanupImage(image Image)
func GetImageLayers ¶
Types ¶
type CloudPrepper ¶
CloudPrepper prepares images sourced from a Cloud registry
func (CloudPrepper) GetConfig ¶
func (p CloudPrepper) GetConfig() (ConfigSchema, error)
func (CloudPrepper) GetFileSystem ¶
func (p CloudPrepper) GetFileSystem() (string, error)
func (CloudPrepper) GetImage ¶
func (p CloudPrepper) GetImage() (Image, error)
func (CloudPrepper) GetSource ¶
func (p CloudPrepper) GetSource() string
func (CloudPrepper) Name ¶
func (p CloudPrepper) Name() string
type ConfigObject ¶
type ConfigObject struct {
Env []string `json:"Env"`
}
type ConfigSchema ¶
type ConfigSchema struct { Config ConfigObject `json:"config"` History []ImageHistoryItem `json:"history"` }
type DaemonPrepper ¶
func (DaemonPrepper) GetConfig ¶
func (p DaemonPrepper) GetConfig() (ConfigSchema, error)
func (DaemonPrepper) GetFileSystem ¶
func (p DaemonPrepper) GetFileSystem() (string, error)
func (DaemonPrepper) GetHistory ¶
func (p DaemonPrepper) GetHistory() []ImageHistoryItem
func (DaemonPrepper) GetImage ¶
func (p DaemonPrepper) GetImage() (Image, error)
func (DaemonPrepper) GetSource ¶
func (p DaemonPrepper) GetSource() string
func (DaemonPrepper) Name ¶
func (p DaemonPrepper) Name() string
type DirectoryEntry ¶
func CreateDirectoryEntries ¶
func CreateDirectoryEntries(root string, entryNames []string) (entries []DirectoryEntry)
func GetDirectoryEntries ¶
func GetDirectoryEntries(d Directory) []DirectoryEntry
type Image ¶
type Image struct { Source string FSPath string Config ConfigSchema }
type ImageHistoryItem ¶
type ImageHistoryItem struct {
CreatedBy string `json:"created_by"`
}
type TarPrepper ¶
func (TarPrepper) GetConfig ¶
func (p TarPrepper) GetConfig() (ConfigSchema, error)
func (TarPrepper) GetFileSystem ¶
func (p TarPrepper) GetFileSystem() (string, error)
func (TarPrepper) GetImage ¶
func (p TarPrepper) GetImage() (Image, error)
func (TarPrepper) GetSource ¶
func (p TarPrepper) GetSource() string
func (TarPrepper) Name ¶
func (p TarPrepper) Name() string
Click to show internal directories.
Click to hide internal directories.