config

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Debug bool `toml:"debug"`

	// Root is the path to a directory where buildkit will store persistent data
	Root string `toml:"root"`

	// GRPC configuration settings
	GRPC GRPCConfig `toml:"grpc"`

	Workers struct {
		OCI        OCIConfig        `toml:"oci"`
		Containerd ContainerdConfig `toml:"containerd"`
	} `toml:"worker"`

	Registries map[string]RegistryConfig `toml:"registry"`
}

Config provides containerd configuration data for the server

func Load

func Load(r io.Reader) (Config, *toml.MetaData, error)

func LoadFile

func LoadFile(fp string) (Config, *toml.MetaData, error)

type ContainerdConfig

type ContainerdConfig struct {
	Address   string            `toml:"address"`
	Enabled   *bool             `toml:"enabled"`
	Labels    map[string]string `toml:"labels"`
	Platforms []string          `toml:"platforms"`
	GCPolicy  []GCPolicy        `toml:"gcpolicy"`
	Namespace string            `toml:"namespace"`
}

type GCPolicy

type GCPolicy struct {
	All          bool     `toml:"all"`
	KeepBytes    int64    `toml:"keepBytes"`
	KeepDuration int64    `toml:"keepDuration"`
	Filters      []string `toml:"filters"`
}

func DefaultGCPolicy

func DefaultGCPolicy(p string) []GCPolicy

type GRPCConfig

type GRPCConfig struct {
	Address      []string `toml:"address"`
	DebugAddress string   `toml:"debugAddress"`
	UID          int      `toml:"uid"`
	GID          int      `toml:"gid"`

	TLS TLSConfig `toml:"tls"`
}

type OCIConfig

type OCIConfig struct {
	Enabled     *bool             `toml:"enabled"`
	Labels      map[string]string `toml:"labels"`
	Platforms   []string          `toml:"platforms"`
	Snapshotter string            `toml:"snapshotter"`
	Rootless    bool              `toml:"rootless"`
	GCPolicy    []GCPolicy        `toml:"gcpolicy"`
}

type RegistryConfig

type RegistryConfig struct {
	Mirrors   []string `toml:"mirrors"`
	PlainHTTP bool     `toml:"http"`
}

type TLSConfig

type TLSConfig struct {
	Cert string `toml:"cert"`
	Key  string `toml:"key"`
	CA   string `toml:"ca"`
}

Jump to

Keyboard shortcuts

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