Documentation
¶
Index ¶
- func AddGroup(name string) error
- func AddSshAuthorizedKeys(user string, keys []string) error
- func AddUser(name, passwd string) error
- func AddUserToGroup(name, group string) error
- func Error(message string) error
- func ErrorE(message string, err error) error
- func ErrorEF(message string, err error, fields log.Fields) error
- func ErrorF(message string, fields log.Fields) error
- func Forge(mc *api.MachineConfig) error
- func ForgeHostname(hostname string) error
- func ForgeInterfaces(interfaces []*api.Interface) error
- func ForgePhy(ifx *api.Interface) error
- func ForgeUsers(users []*api.User) error
- func ForgeVlan(ifx *api.Interface) error
- func ForgeVxlan(ifx *api.Interface) error
- func GetIds() ([]string, error)
- func ValidateAddress(addr string) bool
- type PosixUser
- type Section
- type SystemdConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddSshAuthorizedKeys ¶
func AddUserToGroup ¶
func ErrorE ¶
Encapsulate err in a structured log and return an abstracted high-level error with message as the payload
func ErrorEF ¶
Encapsulate fields and err in a structured log and return an abstracted high-level error with message as the payload
func ErrorF ¶
Encapsulate fields in a structured log and return an abstracted high-level error with message as the payload
func Forge ¶
func Forge(mc *api.MachineConfig) error
func ForgeHostname ¶ added in v0.1.5
func ForgeInterfaces ¶
func ForgeUsers ¶
func ValidateAddress ¶
Types ¶
type PosixUser ¶
func GetPosixUser ¶
type SystemdConfig ¶
func (SystemdConfig) MatchName ¶
func (c SystemdConfig) MatchName(name string)
func (SystemdConfig) SetAddress ¶
func (c SystemdConfig) SetAddress(value string)
func (SystemdConfig) SetEntry ¶
func (c SystemdConfig) SetEntry(section, key, name string)
func (SystemdConfig) Write ¶
func (c SystemdConfig) Write(name string) error
Click to show internal directories.
Click to hide internal directories.