config

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2017 License: Apache-2.0 Imports: 3 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) WithBtrfsProgsPath added in v0.21.0

func (b *Builder) WithBtrfsProgsPath(btrfsProgsPath string, isSet bool) *Builder

func (*Builder) WithClean added in v0.15.0

func (b *Builder) WithClean(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) WithExcludeImageFromQuota added in v0.15.0

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

func (*Builder) WithFSDriver added in v0.11.0

func (b *Builder) WithFSDriver(driver string, isSet bool) *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) WithMount added in v0.16.0

func (b *Builder) WithMount(mount bool, noMount bool) *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) WithSkipLayerValidation added in v0.25.0

func (b *Builder) WithSkipLayerValidation(skip, isSet bool) *Builder

func (*Builder) WithStorePath added in v0.7.0

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

func (*Builder) WithStoreSizeBytes added in v0.20.0

func (b *Builder) WithStoreSizeBytes(size int64) *Builder

func (*Builder) WithTardisBin added in v0.16.0

func (b *Builder) WithTardisBin(tardisBin string, isSet bool) *Builder

type Clean added in v0.15.0

type Clean struct {
	ThresholdBytes int64 `yaml:"threshold_bytes"`
}

type Config

type Config struct {
	StorePath      string `yaml:"store"`
	FSDriver       string `yaml:"driver"`
	DraxBin        string `yaml:"drax_bin"`
	TardisBin      string `yaml:"tardis_bin"`
	BtrfsProgsPath string `yaml:"btrfs_progs_path"`
	NewuidmapBin   string `yaml:"newuidmap_bin"`
	NewgidmapBin   string `yaml:"newgidmap_bin"`
	MetronEndpoint string `yaml:"metron_endpoint"`
	LogLevel       string `yaml:"log_level"`
	LogFile        string `yaml:"log_file"`
	Create         Create `yaml:"create"`
	Clean          Clean  `yaml:"clean"`
	Init           Init   `yaml:"-"`
}

type Create added in v0.15.0

type Create struct {
	ExcludeImageFromQuota             bool     `yaml:"exclude_image_from_quota"`
	SkipLayerValidation               bool     `yaml:"skip_layer_validation"`
	WithClean                         bool     `yaml:"with_clean"`
	WithoutMount                      bool     `yaml:"without_mount"`
	DiskLimitSizeBytes                int64    `yaml:"disk_limit_size_bytes"`
	InsecureRegistries                []string `yaml:"insecure_registries"`
	RemoteLayerClientCertificatesPath string   `yaml:"remote_layer_client_certificates_path"`
}

type Init added in v0.20.0

type Init struct {
	StoreSizeBytes int64
	OwnerUser      string
	OwnerGroup     string
}

Jump to

Keyboard shortcuts

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