Documentation
¶
Index ¶
- Constants
- func Build(r *util.Repo, image *core.Image, template *core.Template, verbose bool, ...) error
- func BuildPackage(packageDir string) (string, error)
- func CollectPackage(repo *util.Repo, packageDir string, pullMissing, remote, verbose bool) error
- func CollectPathContents(path string) (map[string]string, error)
- func Compose(r *util.Repo, loaderImage string, imageSize int64, uploadPath string, ...) error
- func ComposePackage(repo *util.Repo, imageSize int64, updatePackage, verbose, pullMissing bool, ...) error
- func ComposePackageAndUploadToRemoteInstance(repo *util.Repo, verbose, pullMissing bool, ...) error
- func ConfigPrint(c *cli.Context) error
- func CopyFile(conn net.Conn, src string, dst string) error
- func CreateVolume(packagePath string, volume Volume) error
- func Delete(name string) error
- func DeleteVolume(packagePath, name string, verbose bool) error
- func DescribePackage(repo *util.Repo, packageName string) (string, error)
- func ImportPackage(repo *util.Repo, packageDir string) error
- func Info(path string) error
- func InitPackage(packagePath string, p *core.Package) error
- func Instances() error
- func IsReg(m os.FileMode) bool
- func OpenStackPush(c *cli.Context) error
- func OpenStackRun(c *cli.Context) error
- func Pull(r *util.Repo, hypervisor string, image string) error
- func PullPackage(r *util.Repo, packageName string) error
- func RunInstance(repo *util.Repo, config *runtime.RunConfig) error
- func RuntimeInit(runtimeName string, plain bool, force bool) error
- func RuntimeList() string
- func RuntimePreview(runtimeName string, plain bool) error
- func SetArgs(r *util.Repo, hypervisor, image string, args string) error
- func Stop(name string) error
- func UpdatePackages(repo *util.Repo, search string, compareCreated, verbose bool) error
- func UploadFiles(r *util.Repo, hypervisor string, image string, t *core.Template, verbose bool, ...) error
- func UploadPackageContents(r *util.Repo, appImage string, uploadPaths map[string]string, ...) (core.HashCache, error)
- func UploadPackageContentsToRemoteGuest(uploadPaths map[string]string, remoteHostNameOrIpAddress string, verbose bool) error
- func UploadRPM(r *util.Repo, hypervisor string, image string, template *core.Template, ...) error
- type BootOptions
- type Volume
Constants ¶
const ( VOLUMES_DIR string = "volumes" VOLUME_FORMAT_DEFAULT string = "raw" )
Variables ¶
This section is empty.
Functions ¶
func BuildPackage ¶ added in v0.2.0
func CollectPackage ¶ added in v0.2.0
CollectPackage will try to resolve all of the dependencies of the given package and collect the content in the $CWD/mpm-pkg directory.
func CollectPathContents ¶ added in v0.2.0
func ComposePackage ¶ added in v0.2.0
func ComposePackage(repo *util.Repo, imageSize int64, updatePackage, verbose, pullMissing bool, packageDir, appName string, bootOpts *BootOptions) error
ComposePackage uses the contents of the specified package directory and create a (QEMU) virtual machine image. The image consists of all of the required packages. If updatePackage is set, ComposePackage tries to update an existing image by comparing previous MD5 hashes to the ones in the current package directory. Only modified files are uploaded and no file deletions are possible at this time.
func ComposePackageAndUploadToRemoteInstance ¶ added in v0.3.0
func ConfigPrint ¶ added in v0.2.0
ConfigPrint prints current capstan configuration to console.
func CreateVolume ¶ added in v0.3.0
CreateVolume creates volume with given specifications.
func DeleteVolume ¶ added in v0.3.0
DeleteVolume deletes volume and its metadata with given name.
func DescribePackage ¶ added in v0.2.0
DescribePackage describes package with given name without extracting it.
func OpenStackPush ¶ added in v0.2.0
OpenStackPush picks best flavor, composes package, builds .qcow2 image and uploads it to OpenStack.
func OpenStackRun ¶ added in v0.2.0
OpenStackRun picks best flavor for image and runs instacne(s) on OpenStack.
func PullPackage ¶ added in v0.2.0
PullPackage looks for the package in remote repository and tries to import it into local repository.
func RunInstance ¶ added in v0.2.0
func RuntimeInit ¶ added in v0.2.0
func RuntimeList ¶ added in v0.2.0
func RuntimeList() string
func RuntimePreview ¶ added in v0.2.0
func UpdatePackages ¶ added in v0.3.0
func UploadFiles ¶ added in v0.1.2
func UploadPackageContents ¶ added in v0.2.0
func UploadPackageContentsToRemoteGuest ¶ added in v0.3.0
Types ¶
type BootOptions ¶ added in v0.3.0
func (*BootOptions) GetCmd ¶ added in v0.3.0
func (b *BootOptions) GetCmd() (string, error)
GetCmd builds final bootcmd based on three parameters (in this order): * --run <commandLine> * --boot <customBoot> * config_set_default: <> (read from meta/run.yaml within packageDir)