conf

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvConfig

type EnvConfig struct {
	User     string `toml:"user"`
	Home     string `toml:"home"`
	OS       string `toml:"os"`
	Kernel   string `toml:"kernel"`
	HostName string `toml:"hostname"`

	GenerateEnv bool `toml:"genenv,omitempty"`

	Envs map[string]string `toml:"envs"`
}

func (*EnvConfig) CheckAndFill

func (c *EnvConfig) CheckAndFill() error

func (*EnvConfig) FillDefault

func (c *EnvConfig) FillDefault()

type FakeshellConfig

type FakeshellConfig struct {
	Enable bool `toml:"enable"`

	EnvConfig `toml:"env"`

	RootFS string `toml:"rootfs"`

	LogConfig `toml:"log"`
}

func (*FakeshellConfig) FillDefault

func (c *FakeshellConfig) FillDefault()

func (*FakeshellConfig) MergeOptions

func (c *FakeshellConfig) MergeOptions(opt *modules.Opt) bool

type LogConfig added in v0.5.1

type LogConfig struct {
	Enable bool `toml:"enable"`

	Path     string `toml:"path"`
	Compress string `toml:"compress"`
}

Jump to

Keyboard shortcuts

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