Documentation ¶
Index ¶
- Constants
- Variables
- func Early(dev sysconfig.Device, cfg RunTransaction, values map[string]interface{}) error
- func ExportExperimentalFlags(tr ConfGetter) error
- func IsSupportedExperimentalFlag(flag string) bool
- func MockSupportedExperimentalFlags(flags []string) (restore func())
- func Run(dev sysconfig.Device, cfg RunTransaction) error
- type ConfGetter
- type RunTransaction
Constants ¶
View Source
const HOST_NAME_MAX = 64
Note that HOST_NAME_MAX is 64 on Linux, but DNS allows domain names up to 255 characters
Variables ¶
View Source
var ( Stdout = os.Stdout Stderr = os.Stderr )
Functions ¶
func Early ¶
func Early(dev sysconfig.Device, cfg RunTransaction, values map[string]interface{}) error
func ExportExperimentalFlags ¶
func ExportExperimentalFlags(tr ConfGetter) error
func IsSupportedExperimentalFlag ¶
IsSupportedExperimentalFlag checks if passed flag is a supported experimental feature.
func MockSupportedExperimentalFlags ¶
func MockSupportedExperimentalFlags(flags []string) (restore func())
MockSupportedExperimentalFlags mocks list of supported experimental flags for use in testing.
Types ¶
type ConfGetter ¶
type ConfGetter interface { Get(snapName, key string, result interface{}) error GetMaybe(snapName, key string, result interface{}) error GetPristine(snapName, key string, result interface{}) error }
ConfGetter is an interface for reading of config values.
type RunTransaction ¶
type RunTransaction interface { Get(snapName, key string, result interface{}) error GetMaybe(snapName, key string, result interface{}) error GetPristine(snapName, key string, result interface{}) error Task() *state.Task Set(snapName, key string, value interface{}) error Changes() []string State() *state.State Commit() }
RunTransaction is an interface describing how to access the system configuration state and transaction.
func NewRunTransaction ¶
func NewRunTransaction(tr *config.Transaction, tk *state.Task) RunTransaction
Source Files ¶
- backlight.go
- certs.go
- cloud.go
- corecfg.go
- coredump.go
- ctrlaltdel.go
- debug.go
- experimental.go
- handlers.go
- homedirs.go
- hostname.go
- journal.go
- kernel.go
- lockout.go
- netplan.go
- network.go
- picfg.go
- powerbtn.go
- prompting.go
- proxy.go
- refresh.go
- runwithstate.go
- services.go
- snapshots.go
- store.go
- swap.go
- sysctl.go
- timezone.go
- tmp.go
- users.go
- utils.go
- vitality.go
- watchdog.go
Click to show internal directories.
Click to hide internal directories.