Documentation ¶
Index ¶
- Constants
- Variables
- func ClientKeyAuth(keyFile string) (ssh.AuthMethod, error)
- func ErrKeyword(val interface{}) error
- func ErrNotValidVariable(val interface{}) error
- func ErrWrongType(field interface{}, val interface{}, _type string) error
- func PasswordAuth(pass string) (ssh.AuthMethod, error)
- type CustomUnmarshalError
- type Inventory
- type InventoryConfig
- type InventoryInterface
- type Machine
- type Module
- type Plan
- type PlanProxy
- type SSHTransport
- type Task
- type TaskProxy
- type TaskResult
- type TransportConfig
- type TransportInterface
- type VarsMap
- type VarsProxy
- type YAMLInventory
Constants ¶
const ( ECHO = 53 TTY_OP_ISPEED = 128 TTY_OP_OSPEED = 129 )
Variables ¶
var ModuleSearchPath = []string{
"modules",
}
Functions ¶
func ClientKeyAuth ¶
func ClientKeyAuth(keyFile string) (ssh.AuthMethod, error)
func ErrKeyword ¶
func ErrKeyword(val interface{}) error
func ErrNotValidVariable ¶
func ErrNotValidVariable(val interface{}) error
func ErrWrongType ¶
func PasswordAuth ¶
func PasswordAuth(pass string) (ssh.AuthMethod, error)
Types ¶
type CustomUnmarshalError ¶
type CustomUnmarshalError struct {
Err error
}
func (*CustomUnmarshalError) Error ¶
func (cue *CustomUnmarshalError) Error() string
type InventoryConfig ¶
type InventoryInterface ¶
type InventoryInterface interface {
Load(ic InventoryConfig, tc TransportConfig) (Inventory, error)
}
type Machine ¶
type Machine struct { Hostname string Transport TransportInterface }
type Plan ¶
func PreprocessPlan ¶
For Plan NOTE: inventory should always be initialized and passed in?
or should we just check to see if it's nil?
type SSHTransport ¶
type SSHTransport struct { Host string Port uint16 Config *ssh.ClientConfig }
func NewSSH ¶
func NewSSH(config *TransportConfig) (*SSHTransport, error)
func (*SSHTransport) Initialize ¶
func (sshTransport *SSHTransport) Initialize(config *TransportConfig) error
type Task ¶
type Task struct { Id string Sudo bool Name string Module *Module IgnoreErrors bool `yaml:"ignore_errors"` Local bool When string Register string Vars VarsMap }
func PreprocessTasks ¶
Checks the a slice of TaskProxy ptrs passed in by a Plan and determines whether if it's an include value or a normal task. If it's a normal task it appends it as a standard task, otherwise it recursively expands the include statement
type TaskProxy ¶
Task is for the general Task format. Refer to task.go Vars are kept in scope for each Task. So there is a Vars field for each task Include is the file name for the included Tasks list
func (*TaskProxy) UnmarshalYAML ¶
Custom unmarshaller which accounts for module names
type TaskResult ¶
type TransportConfig ¶
type TransportInterface ¶
type VarsProxy ¶
type VarsProxy struct {
Vars VarsMap
}
func (*VarsProxy) UnmarshalYAML ¶
Custom unmarshaller which account for multiple include statements and include types NOTE: Cannot account for double includes because unmarshal(&vMap) already does
under the hood unmarshaling and does what any map would do, which is override repeating key values
type YAMLInventory ¶
FIXME: Have a way to provide specifics
func (*YAMLInventory) Load ¶
func (yi *YAMLInventory) Load(ic InventoryConfig, tc TransportConfig) (Inventory, error)
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Godeps
|
|
_workspace/src/github.com/stretchr/testify/assert
Package assert provides a set of comprehensive testing tools for use with the normal Go testing system.
|
Package assert provides a set of comprehensive testing tools for use with the normal Go testing system. |
_workspace/src/github.com/stretchr/testify/require
Alternative testing tools which stop test execution if test failed.
|
Alternative testing tools which stop test execution if test failed. |
_workspace/src/gopkg.in/yaml.v2
Package yaml implements YAML support for the Go language.
|
Package yaml implements YAML support for the Go language. |