config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2015 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultConfigPath = ".stifile"

DefaultConfigPath specifies the default location of the STI config file

Variables

This section is empty.

Functions

func Restore

func Restore(config *api.Config, cmd *cobra.Command)

Restore loads the arguments from disk and prefills the Request

func Save

func Save(config *api.Config, cmd *cobra.Command)

Save persists the STI command line arguments into disk

Types

type Config

type Config struct {
	Source       string            `json:"source" yaml:"source"`
	BuilderImage string            `json:"builderImage" yaml:"builderImage"`
	Tag          string            `json:"tag,omitempty" yaml:"tag,omitempty"`
	Flags        map[string]string `json:"flags,omitempty" yaml:"flags,omitempty"`
}

Config represents a basic serialization for the STI build options

Jump to

Keyboard shortcuts

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