config

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2017 License: Apache-2.0 Imports: 4 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder added in v0.7.0

type Builder struct {
	// contains filtered or unexported fields
}

func NewBuilder added in v0.7.0

func NewBuilder(pathToYaml string) (*Builder, error)

func (*Builder) Build added in v0.7.0

func (b *Builder) Build() (Config, error)

func (*Builder) WithBtrfsBin added in v0.7.0

func (b *Builder) WithBtrfsBin(btrfsBin string, isSet bool) *Builder

func (*Builder) WithCleanOnCreate added in v0.7.0

func (b *Builder) WithCleanOnCreate(clean bool, noClean bool) *Builder

func (*Builder) WithCleanThresholdBytes added in v0.7.0

func (b *Builder) WithCleanThresholdBytes(threshold int64, isSet bool) *Builder

func (*Builder) WithDiskLimitSizeBytes added in v0.7.0

func (b *Builder) WithDiskLimitSizeBytes(limit int64, isSet bool) *Builder

func (*Builder) WithDraxBin added in v0.7.0

func (b *Builder) WithDraxBin(draxBin string, isSet bool) *Builder

func (*Builder) WithExcludeBaseImageFromQuota added in v0.7.0

func (b *Builder) WithExcludeBaseImageFromQuota(exclude, isSet bool) *Builder

func (*Builder) WithFSDriver added in v0.11.0

func (b *Builder) WithFSDriver(driver string, isSet bool) *Builder

func (*Builder) WithGIDMappings added in v0.7.0

func (b *Builder) WithGIDMappings(gidMappings []string) *Builder

func (*Builder) WithIgnoreBaseImages added in v0.7.0

func (b *Builder) WithIgnoreBaseImages(ignoreBaseImages []string) *Builder

func (*Builder) WithInsecureRegistries added in v0.7.0

func (b *Builder) WithInsecureRegistries(insecureRegistries []string) *Builder

func (*Builder) WithLogFile added in v0.7.0

func (b *Builder) WithLogFile(filepath string) *Builder

func (*Builder) WithLogLevel added in v0.7.0

func (b *Builder) WithLogLevel(level string, isSet bool) *Builder

func (*Builder) WithMetronEndpoint added in v0.7.0

func (b *Builder) WithMetronEndpoint(metronEndpoint string) *Builder

func (*Builder) WithNewgidmapBin added in v0.7.0

func (b *Builder) WithNewgidmapBin(newgidmapBin string, isSet bool) *Builder

func (*Builder) WithNewuidmapBin added in v0.7.0

func (b *Builder) WithNewuidmapBin(newuidmapBin string, isSet bool) *Builder

func (*Builder) WithStorePath added in v0.7.0

func (b *Builder) WithStorePath(storePath string, isSet bool) *Builder

func (*Builder) WithUIDMappings added in v0.7.0

func (b *Builder) WithUIDMappings(uidMappings []string) *Builder

func (*Builder) WithXFSProgsPath added in v0.11.0

func (b *Builder) WithXFSProgsPath(xfsProgsPath string, isSet bool) *Builder

type Config

type Config struct {
	StorePath                 string   `yaml:"store_path"`
	FSDriver                  string   `yaml:"driver"`
	CleanOnCreate             bool     `yaml:"clean_on_create"`
	CleanThresholdBytes       int64    `yaml:"clean_threshold_bytes"`
	DiskLimitSizeBytes        int64    `yaml:"disk_limit_size_bytes"`
	DraxBin                   string   `yaml:"drax_bin"`
	BtrfsBin                  string   `yaml:"btrfs_bin"`
	XFSProgsPath              string   `yaml:"xfsprogs_path"`
	NewuidmapBin              string   `yaml:"newuidmap_bin"`
	NewgidmapBin              string   `yaml:"newgidmap_bin"`
	ExcludeBaseImageFromQuota bool     `yaml:"exclude_base_image_from_quota"`
	GIDMappings               []string `yaml:"gid_mappings"`
	UIDMappings               []string `yaml:"uid_mappings"`
	IgnoreBaseImages          []string `yaml:"ignore_base_images"`
	InsecureRegistries        []string `yaml:"insecure_registries"`
	MetronEndpoint            string   `yaml:"metron_endpoint"`
	LogLevel                  string   `yaml:"log_level"`
	LogFile                   string   `yaml:"log_file"`
}

Jump to

Keyboard shortcuts

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