config

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultDaemonConfigFile = defaults.DefaultConfigFile
	DefaultDaemonRootDir    = defaults.DefaultRootDir
	DefaultDaemonStateDir   = defaults.DefaultStateDir
	DefaultDaemonAddress    = DefaultDaemonStateDir + filepath.Base(defaults.DefaultAddress)

	DefaultBridgeName     = defaults.DefaultBridgeName
	DefaultBridgeCIDR     = defaults.DefaultBridgeCIDR
	DefaultBootstrapImage = "docker.io/rancher/k3c:latest"

	DefaultSandboxImage = defaults.DefaultSandboxImage
	DefaultPodLogsDir   = defaults.DefaultPodLogsDir
	DefaultVolumesDir   = filepath.Join(DefaultDaemonRootDir, "volumes")
)
View Source
var (
	Socket config.GRPCConfig
)

Functions

func DefaultBuildkitConfig

func DefaultBuildkitConfig() *buildkit.Config

func DefaultCniConf

func DefaultCniConf(bridge, cidr string) map[string]interface{}

func DefaultCniConflist

func DefaultCniConflist(bridge, cidr string) map[string]interface{}

func WriteFileJSON

func WriteFileJSON(path string, data interface{}, mode os.FileMode) error

func WriteFileTOML

func WriteFileTOML(path string, data interface{}, mode os.FileMode) error

Types

type K3Config

type K3Config struct {
	BootstrapSkip  bool   `toml:"bootstrap_skip"`
	BootstrapImage string `toml:"bootstrap_image"`
	BridgeName     string `toml:"bridge_name"`
	BridgeCIDR     string `toml:"bridge_cidr"`
	PodLogs        string `toml:"pod_logs"`
	Volumes        string `toml:"volumes"`
}

func DefaultK3Config

func DefaultK3Config() *K3Config

Jump to

Keyboard shortcuts

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