Documentation ¶
Index ¶
- Constants
- func AuthorizeSSHKeys(user string, keysName string, keys []string) error
- func CreateUser(u *config.User) error
- func DefaultReadConfig() (io.Reader, error)
- func EnsureDirectoryExists(dir string) error
- func SetUserPassword(user, hash string) error
- func UserExists(u *config.User) bool
- func WriteEnvFile(ef *EnvFile, root string) error
- func WriteFile(f *File, root string) (string, error)
- type EnvFile
- type EtcHosts
- type Etcd
- type Etcd2
- type File
- type Flannel
- type Fleet
- type Locksmith
- type OEM
- type Unit
- type UnitManager
- type Update
Constants ¶
const DefaultIpv4Address = "127.0.0.1"
Variables ¶
This section is empty.
Functions ¶
func AuthorizeSSHKeys ¶
AuthorizeSSHKeys adds the provided SSH public key to the core user's list of authorized keys
func WriteEnvFile ¶
WriteEnvFile updates an existing env `KEY=value` formated file with new values provided in EnvFile.Vars; File.Content is ignored. Existing ordering and any unknown formatting such as comments are preserved. If no changes are required the file is untouched.
Types ¶
type EnvFile ¶
type EtcHosts ¶
type Etcd ¶
Etcd is a top-level structure which embeds its underlying configuration, config.Etcd, and provides the system-specific Unit().
type Etcd2 ¶
Etcd2 is a top-level structure which embeds its underlying configuration, config.Etcd2, and provides the system-specific Unit().
type File ¶
File is a top-level structure which embeds its underlying configuration, config.File, and provides the system-specific Permissions().
type Flannel ¶
Flannel is a top-level structure which embeds its underlying configuration, config.Flannel, and provides the system-specific Unit().
type Fleet ¶
Fleet is a top-level structure which embeds its underlying configuration, config.Fleet, and provides the system-specific Unit().
type Locksmith ¶
Locksmith is a top-level structure which embeds its underlying configuration, config.Locksmith, and provides the system-specific Unit().
type OEM ¶
OEM is a top-level structure which embeds its underlying configuration, config.OEM, and provides the system-specific File().
type Unit ¶
Unit is a top-level structure which embeds its underlying configuration, config.Unit, and provides the system-specific Destination(), Type(), and Group().
func (Unit) Destination ¶
Destination builds the appropriate absolute file path for the Unit. The root argument indicates the effective base directory of the system (similar to a chroot).
func (Unit) DropInDestination ¶
func (u Unit) DropInDestination(root string, dropIn config.UnitDropIn) string
DropInDestination builds the appropriate absolute file path for the UnitDropIn. The root argument indicates the effective base directory of the system (similar to a chroot) and the dropIn argument is the UnitDropIn for which the destination is being calculated.
func (Unit) Group ¶
Group returns "network" or "system" depending on whether or not the unit is a network unit or otherwise.
type UnitManager ¶
type Update ¶
Update is a top-level structure which contains its underlying configuration, config.Update, a function for reading the configuration (the default implementation reading from the filesystem), and provides the system-specific File() and Unit().
func (Update) File ¶
File generates an `/etc/coreos/update.conf` file (if any update configuration options are set in cloud-config) by either rewriting the existing file on disk, or starting from `/usr/share/coreos/update.conf`