Documentation
¶
Index ¶
- func ConfigExists(filename string) bool
- func Connect(network, path string) (net.Conn, error)
- func ConnectAndWait(network, path string) (net.Conn, error)
- func CopyFile(src, dst string) *exec.Cmd
- func FileInfoHeader() string
- func GenerateMAC() (net.HardwareAddr, error)
- func HomePath() string
- func ID() string
- func IsDirectIOSupported(path string) bool
- func IsRemoteImage(name string) bool
- func ListImagesRemote(search string)
- func ParseMemSize(memory string) (int64, error)
- func RawTerm() error
- func ResetTerm()
- func SearchInstance(name string) (instanceName, instancePlatform string)
- type Config
- type Contents
- type FileInfo
- type FilesInfo
- type ImageInfo
- type Query
- type Repo
- func (r *Repo) DefaultImage() string
- func (r *Repo) DownloadFile(name string) error
- func (r *Repo) DownloadImage(hypervisor string, path string) error
- func (r *Repo) ImageExists(hypervisor, image string) bool
- func (r *Repo) ImagePath(hypervisor string, image string) string
- func (r *Repo) ImportImage(imageName string, file string, version string, created string, ...) error
- func (r *Repo) ListImages()
- func (r *Repo) PullImage(image string) error
- func (r *Repo) RemoveImage(image string) error
- type RpmPackage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigExists ¶
func FileInfoHeader ¶
func FileInfoHeader() string
func GenerateMAC ¶ added in v0.1.3
func GenerateMAC() (net.HardwareAddr, error)
Generate a MAC address.
func IsDirectIOSupported ¶ added in v0.1.3
func IsRemoteImage ¶
func ListImagesRemote ¶
func ListImagesRemote(search string)
func ParseMemSize ¶
func SearchInstance ¶
Types ¶
type Config ¶
type Config struct { Base string RpmBase *RpmPackage "rpm-base" Cmdline string Build string Files map[string]string Rootfs string }
func ParseConfig ¶
func ReadConfig ¶
type FileInfo ¶
type FileInfo struct { Namespace string Name string Description string Version string Created string }
func MakeFileInfo ¶
func RemoteFileInfo ¶
type Query ¶
type Query struct {
ContentsList []Contents `xml:"Contents"`
}
func QueryRemote ¶
func QueryRemote() *Query
type Repo ¶
type Repo struct {
Path string
}
func (*Repo) DefaultImage ¶
func (*Repo) DownloadFile ¶
func (*Repo) ImageExists ¶
func (*Repo) ImportImage ¶ added in v0.1.3
func (*Repo) ListImages ¶
func (r *Repo) ListImages()
func (*Repo) RemoveImage ¶
type RpmPackage ¶
func (*RpmPackage) Download ¶
func (p *RpmPackage) Download() error
func (*RpmPackage) Filename ¶
func (p *RpmPackage) Filename() string
func (*RpmPackage) URL ¶
func (p *RpmPackage) URL() string
Click to show internal directories.
Click to hide internal directories.