Documentation ¶
Index ¶
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
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.