config

package
v0.0.0-...-8dbc9cc Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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