Documentation ¶
Index ¶
Constants ¶
const ( // BuildTypeImage represents image build BuildTypeImage = "image" // BuildTypeMount represents mount build BuildTypeMount = "mount" // BuildTypeVM represents vm build BuildTypeVM = "vm" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Build ¶
type Build struct { // SpecFiles is the list of specfiles to build SpecFiles []string // Names is the list of names for corresponding specfiles Names []string // Tags are used to tag the build Tags types.Tags // Rebuild forces rebuild of all parent images even if they exist Rebuild bool }
Build stores configuration for build command
type BuildFactory ¶
type BuildFactory struct { // Names is the list of names for corresponding specfiles Names []string // Tags are used to tag the build Tags []string // Rebuild forces rebuild of all parent images even if they exist Rebuild bool }
BuildFactory collects data for build config
func (BuildFactory) Config ¶
func (f BuildFactory) Config(args Args) Build
Config creates build config
type Drop ¶
type Drop struct { // If no filter is provided it is required to set this flag to drop builds All bool // LibvirtAddr is the address libvirt listens on LibvirtAddr string }
Drop stores configuration related to drop operation
type DropFactory ¶
type DropFactory struct { // If no filter is provided it is required to set this flag to drop builds All bool // LibvirtAddr is the address libvirt listens on LibvirtAddr string }
DropFactory collects data for drop config
type Filter ¶
type Filter struct { // Untagged filters untagged builds only Untagged bool // Types is the list of build types to return Types []types.BuildType // BuildIDs is the list of builds to return BuildIDs []types.BuildID // BuildKeys is the list of build keys to return BuildKeys []types.BuildKey }
Filter stores configuration of filtering criteria
type FilterFactory ¶
type FilterFactory struct { // Untagged filters untagged builds only Untagged bool // Types is the list of build types to return Types []string }
FilterFactory collects data for filter config
func (*FilterFactory) Config ¶
func (f *FilterFactory) Config(args Args) Filter
Config returns new filter config
type Format ¶
type Format struct { // Formatter is the name of formatter to use to convert list into string Formatter string }
Format stores configuration specific to formatting
type FormatFactory ¶
type FormatFactory struct { // Formatter is the name of formatter to use to convert list into string Formatter string }
FormatFactory collects data for format config
func (*FormatFactory) Config ¶
func (f *FormatFactory) Config() Format
Config returns new format config
type Logging ¶
type Logging struct { // Verbose turns on verbose logging Verbose bool }
Logging stores configuration ogf logging
type LoggingFactory ¶
type LoggingFactory struct { // VerboseLogging turns on verbose logging VerboseLogging bool }
LoggingFactory collects data for logging config
func (*LoggingFactory) Config ¶
func (f *LoggingFactory) Config() Logging
Config returns new logging config
type Mount ¶
type Mount struct { // ImageBuildID is the build ID of image to mount ImageBuildID types.BuildID // ImageBuildKey is the build key of image to mount ImageBuildKey types.BuildKey // MountKey is the build key of mounted image MountKey types.BuildKey // Type is the type of mount Type types.BuildType // XMLDir is a directory where VM definition is taken from if xml file is not provided explicitly XMLDir string // VMFile is the file containing VM definition VMFile string // LibvirtAddr is the address libvirt listens on LibvirtAddr string }
Mount stores configuration for mount command
type MountFactory ¶
type MountFactory struct { // XMLDir is a directory where VM definition is taken from if xml file is not provided explicitly XMLDir string // VMFile is the file containing VM definition VMFile string // LibvirtAddr is the address libvirt listens on LibvirtAddr string }
MountFactory collects data for mount config
func (*MountFactory) Config ¶
func (f *MountFactory) Config(args Args) Mount
Config returns new mount config
type Storage ¶
type Storage struct { // Root is the root location for images Root string // Driver specifies storage driver to use Driver string }
Storage stores configuration related to storage drivers
type StorageFactory ¶
type StorageFactory struct { // Root is the root location for images Root string // Driver specifies storage driver to use Driver string }
StorageFactory collects data for storage config
func (*StorageFactory) Config ¶
func (f *StorageFactory) Config() Storage
Config returns new storage config
type Tag ¶ added in v0.2.0
type Tag struct { // If no filter is provided it is required to set this flag to tag builds All bool // Remove is the list of tags to remove Remove []types.Tag // Add is the list of tags to add Add []types.Tag }
Tag stores configuration related to tag operation
type TagFactory ¶ added in v0.2.0
type TagFactory struct { // If no filter is provided it is required to set this flag to tag builds All bool // Remove is the list of tags to remove Remove []string // Add is the list of tags to add Add []string }
TagFactory collects data for tag config
func (*TagFactory) Config ¶ added in v0.2.0
func (f *TagFactory) Config() Tag
Config returns new tag config