config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Users  map[string]User  `yaml:"users"`
	Files  map[string]File  `yaml:"files"`
	Groups map[string]Group `yaml:"groups"`
}

Config Headstart config

func Parse

func Parse(configStr []byte) Config

Parse a string into a config struct

type File

type File struct {
	Source          string      `yaml:"source,omitempty"`
	Contents        string      `yaml:"contents,omitempty"`
	EncodedContents string      `yaml:"encoded_contents,omitempty"`
	Hash            string      `yaml:"hash,omitempty"`
	Mode            os.FileMode `yaml:"mode,omitempty"`
	Owner           string      `yaml:"owner,omitempty"`
	Group           string      `yaml:"group,omitempty"`
}

File for creating files on the host

type Group

type Group struct {
	Sudo bool `yaml:"Sudo,omitempty"`
}

Group to be created on the host

type User

type User struct {
	Groups         []string `yaml:"groups,omitempty"`
	AuthorizedKeys []string `yaml:"authorized_keys"`
}

User users to be created on the host

Jump to

Keyboard shortcuts

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