Versions in this module Expand all Collapse all v0 v0.0.13 Dec 28, 2020 v0.0.12 Dec 28, 2020 Changes in this version + func SetTitle(s string) + type Cmd struct + Args []string + Context context.Context + Dir string + Env [][2]string + Path string + Shell bool + Stderr io.Writer + Stdin io.Reader + Stdout io.Writer + func (cmd *Cmd) Run() error type File + func (f *File) Apply(host *Host) (itemStatus, error) + func (f *File) Clone() Item + func (f *File) ID() int + func (f *File) Needs() []string + func (f *File) Provides() []string + func (f *File) SetID(id int) + type FileInfo struct + func (fi *FileInfo) IsDir() bool + func (fi *FileInfo) ModTime() time.Time + func (fi *FileInfo) Mode() os.FileMode + func (fi *FileInfo) Name() string + func (fi *FileInfo) Size() int64 + func (fi *FileInfo) String() string + func (fi *FileInfo) Sys() interface{} + type FuncType func(*Host) error + type Function struct + Fn FuncType + func (f *Function) Apply(host *Host) (itemStatus, error) + func (f *Function) Clone() Item + func (f *Function) ID() int + func (f *Function) Needs() []string + func (f *Function) Provides() []string + func (f *Function) SetID(id int) + func (f *Function) StaticFiles() []string + func (f *Function) String() string + func (f *Function) Validate() error type Group + func (g *Group) Apply(host *Host) (itemStatus, error) + func (g *Group) Clone() Item + func (g *Group) ID() int + func (g *Group) Needs() []string + func (g *Group) Provides() []string + func (g *Group) SetID(id int) + type Host struct + Host string + Name string + Run *Run + SSH bool + Virt *Virtual + VirtMu sync.RWMutex + func (host *Host) Add(add ...Item) error + func (host *Host) AddFromSource(source string, add ...Item) error + func (host *Host) Command(ctx context.Context, path string, args ...string) *Cmd + func (host *Host) Create(path string) (io.WriteCloser, error) + func (host *Host) Key() string + func (host *Host) Open(path string) (io.ReadCloser, error) + func (host *Host) ReadFile(path string) ([]byte, error) + func (host *Host) Remove(path string) error + func (host *Host) Stat(path string) (os.FileInfo, error) + func (host *Host) String() string type Item + func Func(fn FuncType) Item + Apply func(host *Host) (itemStatus, error) + Clone func() Item + ID func() int + Needs func() []string + Provides func() []string + SetID func(id int) + type Run struct + Diff bool + Dry bool + Hosts []*Host + Pool *sshpool.Pool + User string + Verbose bool + func (r *Run) Add(add ...Item) error + func (r *Run) AddFromSource(source string, add ...Item) error + type SSHWriter struct + func (w *SSHWriter) Close() error + func (w *SSHWriter) Write(p []byte) (int, error) type User + func (u *User) Apply(host *Host) (itemStatus, error) + func (u *User) Clone() Item + func (u *User) ID() int + func (u *User) Needs() []string + func (u *User) Provides() []string + func (u *User) SetID(id int) + type Virtual struct + Arch string + Contents map[string]string + Files map[string]os.FileInfo + Groups map[string]*Group + Hostname string + Kernel string + OS string + Uname string + Users map[string]*User + func NewVirtual() *Virtual v0.0.11 Dec 22, 2020 v0.0.10 Dec 22, 2020 Changes in this version type File + Local string + Src string v0.0.9 Dec 20, 2020 Changes in this version type File + Mode os.FileMode + type VaultResponse struct + Data VaultResponseData + type VaultResponseData struct + Data map[string]string v0.0.8 Dec 20, 2020 v0.0.7 Dec 20, 2020 v0.0.6 Dec 19, 2020 Changes in this version + func Add(add ...Item) + func AddFromSource(source string, add ...Item) + func Apply() error + func RedError(e error) string + func RedPrintln(s string) + func SetAssetLoader(fn func(string) (io.Reader, error)) + func SetDescribe(s string) + func SetSourcePrefix(s string) + func Warnf(str string, args ...interface{}) + type Color int + const Black + const Blue + const Cyan + const Green + const Magenta + const Red + const White + const Yellow + type File struct + Content string + Delete bool + Path string + Template string + User User + func (f *File) StaticFiles() []string + func (f *File) String() string + func (f *File) Validate() error + type Group struct + Delete bool + Gid int + GidPrimary bool + Name string + func (g *Group) String() string + type Item interface + String func() string + type Package struct + Name string + type StaticFiler interface + StaticFiles func() []string + type User struct + BlankPassword bool + Delete bool + Gecos string + Group string + Groups []string + Home string + Name string + Password string + Shell string + Uid int + UidPrimary bool + func (u *User) String() string + type Validator interface + Validate func() error