Documentation ¶
Index ¶
- type BuildConfiguration
- func (c *BuildConfiguration) BuilderCache() string
- func (c *BuildConfiguration) BuilderLocation() string
- func (c *BuildConfiguration) BuilderName() string
- func (c *BuildConfiguration) IncludePatterns(stageName string) []string
- func (c *BuildConfiguration) IsBuilderCacheSet() bool
- func (c *BuildConfiguration) MergedStringSpecAttribute(stageName, attrName string) []string
- func (c *BuildConfiguration) SpecAttribute(stageName, attrName string) (interface{}, bool)
- func (c *BuildConfiguration) SpecAttributeNames(stageName string) []string
- type CliConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildConfiguration ¶
type BuildConfiguration struct {
// contains filtered or unexported fields
}
BuildConfiguration represents the build configuration of an application
func ReadBuildConfiguration ¶
func ReadBuildConfiguration(filepath string) (BuildConfiguration, error)
ReadBuildConfiguration unserialize the build configuration
func (*BuildConfiguration) BuilderCache ¶
func (c *BuildConfiguration) BuilderCache() string
BuilderCache returns the builder's image cache
func (*BuildConfiguration) BuilderLocation ¶
func (c *BuildConfiguration) BuilderLocation() string
BuilderLocation returns the builder's location
func (*BuildConfiguration) BuilderName ¶
func (c *BuildConfiguration) BuilderName() string
BuilderName returns the builder's name
func (*BuildConfiguration) IncludePatterns ¶
func (c *BuildConfiguration) IncludePatterns(stageName string) []string
IncludePatterns returns the files to include in the Docker context
func (*BuildConfiguration) IsBuilderCacheSet ¶
func (c *BuildConfiguration) IsBuilderCacheSet() bool
IsBuilderCacheSet returns wether a buildercache is specified
func (*BuildConfiguration) MergedStringSpecAttribute ¶
func (c *BuildConfiguration) MergedStringSpecAttribute(stageName, attrName string) []string
MergedStringSpecAttribute returns an array of merge attributes from the stage and the globalSpec
func (*BuildConfiguration) SpecAttribute ¶
func (c *BuildConfiguration) SpecAttribute(stageName, attrName string) (interface{}, bool)
SpecAttribute returns the stage attribute of the configuration or a global one if it exists
func (*BuildConfiguration) SpecAttributeNames ¶
func (c *BuildConfiguration) SpecAttributeNames(stageName string) []string
SpecAttributeNames returns the list of attributes that have been specified
type CliConfiguration ¶
type CliConfiguration struct { DefaultLocation string `yaml:"default-builder-location"` DefaultBuildConcurrency int64 `yaml:"default-build-concurrency"` DefaultPullConcurrency int64 `yaml:"default-pull-concurrency"` DefaultBuilderImageCache string `yaml:"default-extra-image-cache"` DefaultCacheImagePush bool `yaml:"default-cache-image-push"` DefaultCacheImagePull bool `yaml:"default-cache-image-pull"` DefaultEngine string `yaml:"default-engine"` // contains filtered or unexported fields }
func NewDefaultConfiguration ¶
func NewDefaultConfiguration() *CliConfiguration
func (*CliConfiguration) Load ¶
func (c *CliConfiguration) Load(filepath string) error
func (*CliConfiguration) Save ¶
func (c *CliConfiguration) Save() error