modules

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2017 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Apt

type Apt struct {
	Name   string
	Absent bool
}

func (Apt) Files added in v0.3.1

func (apt Apt) Files() []string

func (Apt) ID

func (apt Apt) ID() string

func (Apt) Install

func (apt Apt) Install() (string, error)

func (Apt) Remove

func (apt Apt) Remove() (string, error)

func (Apt) Status

func (apt Apt) Status() (genesis.Status, string, error)

type Command

type Command struct {
	Cmd          string
	Opts         []string
	PSPattern    string
	IgnoreErrors bool
	Timeout      time.Duration
}

func MakeCommand

func MakeCommand(cmd string, opts ...string) Command

func (Command) Files added in v0.3.1

func (cmd Command) Files() []string

func (Command) ID

func (cmd Command) ID() string

func (Command) Install

func (cmd Command) Install() (string, error)

func (Command) Remove

func (cmd Command) Remove() (string, error)

func (Command) Status

func (cmd Command) Status() (genesis.Status, string, error)

type CopyFile

type CopyFile struct {
	Dest string
	Src  string
}

func (CopyFile) Files added in v0.3.1

func (cpf CopyFile) Files() []string

func (CopyFile) ID

func (cpf CopyFile) ID() string

func (CopyFile) Install

func (cpf CopyFile) Install() (string, error)

func (CopyFile) Remove

func (cpf CopyFile) Remove() (string, error)

func (CopyFile) Status

func (cpf CopyFile) Status() (genesis.Status, string, error)

type Dpkg

type Dpkg struct {
	Path   string
	Name   string
	Force  bool
	Absent bool
}

func (Dpkg) Files added in v0.3.1

func (dpkg Dpkg) Files() []string

func (Dpkg) ID

func (dpkg Dpkg) ID() string

func (Dpkg) Install

func (dpkg Dpkg) Install() (string, error)

func (Dpkg) Remove

func (dpkg Dpkg) Remove() (string, error)

func (Dpkg) Status

func (dpkg Dpkg) Status() (genesis.Status, string, error)

type File

type File struct {
	Path   string
	Mode   os.FileMode
	Owner  string
	Absent bool
	Local  bool // Don't follow links
}

func (File) Files added in v0.3.1

func (file File) Files() []string

func (File) ID

func (file File) ID() string

func (File) Install

func (file File) Install() (string, error)

func (File) Remove

func (file File) Remove() (string, error)

func (File) Status

func (file File) Status() (genesis.Status, string, error)

type HttpGet

type HttpGet struct {
	Dest string
	Url  string
}

func (HttpGet) Files added in v0.3.1

func (get HttpGet) Files() []string

func (HttpGet) ID

func (get HttpGet) ID() string

func (HttpGet) Install

func (get HttpGet) Install() (string, error)

func (HttpGet) Remove

func (get HttpGet) Remove() (string, error)

func (HttpGet) Status

func (get HttpGet) Status() (genesis.Status, string, error)

type Initd

type Initd struct {
	Name string
}

func (Initd) Files added in v0.3.1

func (initd Initd) Files() []string

func (Initd) ID

func (initd Initd) ID() string

func (Initd) Install

func (initd Initd) Install() (string, error)

func (Initd) Remove

func (initd Initd) Remove() (string, error)

func (Initd) Status

func (initd Initd) Status() (genesis.Status, string, error)

type LineInFile

type LineInFile struct {

	// Required
	File string   // path to the file
	Line []string // line(s) to insert

	// Optional
	Pattern []string // line(s) to replace
	Success []string // pattern to check for success (defaults to Line)
	Before  []string // insert line before this pattern
	After   []string // insert line after this pattern
	Absent  bool     // ensure line is absent from file

}

LineInFile lets the user insert lines of text into a file.

func (LineInFile) Files added in v0.3.1

func (lif LineInFile) Files() []string

func (LineInFile) ID

func (lif LineInFile) ID() string

func (LineInFile) Install

func (lif LineInFile) Install() (string, error)

func (LineInFile) Remove

func (lif LineInFile) Remove() (string, error)

func (LineInFile) Status

func (lif LineInFile) Status() (genesis.Status, string, error)

type Mkdir

type Mkdir struct {
	Path   string
	Absent bool
	Empty  bool
}

func (Mkdir) Files added in v0.3.1

func (mkdir Mkdir) Files() []string

func (Mkdir) ID

func (mkdir Mkdir) ID() string

func (Mkdir) Install

func (mkdir Mkdir) Install() (string, error)

func (Mkdir) Remove

func (mkdir Mkdir) Remove() (string, error)

func (Mkdir) Status

func (mkdir Mkdir) Status() (genesis.Status, string, error)

type Template

type Template struct {
	Dest string
	Src  string
	Vars interface{}
}

func (Template) Files added in v0.3.1

func (tmpl Template) Files() []string

func (Template) ID

func (tmpl Template) ID() string

func (Template) Install

func (tmpl Template) Install() (string, error)

func (Template) Remove

func (tmpl Template) Remove() (string, error)

func (Template) Status

func (tmpl Template) Status() (genesis.Status, string, error)

type User

type User struct {
	Name, Passwd string
}

func (User) Files added in v0.3.1

func (u User) Files() []string

func (User) ID

func (u User) ID() string

func (User) Install

func (u User) Install() (string, error)

func (User) Remove

func (u User) Remove() (string, error)

func (User) Status

func (u User) Status() (genesis.Status, string, error)

Jump to

Keyboard shortcuts

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