core

package
v0.0.0-...-71f76d9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2016 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTemplateFile

func IsTemplateFile(filename string) bool

IsTemplateFile returns true if filename points to a valid template file; otherwise returns false.

Types

type Image

type Image struct {
	Name       string
	Hypervisor string
}

type RpmPackage

type RpmPackage struct {
	Name    string
	Version string
	Release string
	Arch    string
}

func (*RpmPackage) Download

func (p *RpmPackage) Download() error

func (*RpmPackage) Filename

func (p *RpmPackage) Filename() string

func (*RpmPackage) URL

func (p *RpmPackage) URL() string

type Template

type Template struct {
	Base    string
	RpmBase *RpmPackage "rpm-base"
	Cmdline string
	Build   string
	Files   map[string]string
	Rootfs  string
}

A template is a configuration file that describes how to build a VM image. It is usually representeed as a `Capstanfile` file on disk.

func ParseTemplate

func ParseTemplate(data []byte) (*Template, error)

ParseTemplate parses a Template from a byte array.

func ReadTemplateFile

func ReadTemplateFile(filename string) (*Template, error)

ReadTemplateFile parses a Template from a file.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL