Documentation ¶
Index ¶
- type Block
- type Host
- type HostGroup
- type IPlaybookSession
- type ITask
- type IncludeRole
- type Inventory
- type OfflineSession
- func (sess *OfflineSession) ConfigYaml(yaml string) *OfflineSession
- func (sess *OfflineSession) Configs(configs map[string]interface{}) *OfflineSession
- func (sess *OfflineSession) GetConfigYaml() string
- func (sess *OfflineSession) GetConfigs() map[string]interface{}
- func (sess *OfflineSession) GetPlaybookPath() string
- func (sess *OfflineSession) Inventory(s string) *OfflineSession
- func (sess *OfflineSession) KeepTmpdir(keep bool) *OfflineSession
- func (sess *OfflineSession) OutputWriter(w io.Writer) *OfflineSession
- func (sess *OfflineSession) PlaybookPath(s string) *OfflineSession
- func (sess *OfflineSession) PrivateKey(s string) *OfflineSession
- func (sess *OfflineSession) Run(ctx context.Context) (err error)
- type Play
- type Playbook
- type PlaybookSessionBase
- func (pb *PlaybookSessionBase) CheckAndSetRunning() bool
- func (pb *PlaybookSessionBase) GetConfigYaml() string
- func (pb *PlaybookSessionBase) GetConfigs() map[string]interface{}
- func (pb *PlaybookSessionBase) GetFiles() map[string][]byte
- func (pb *PlaybookSessionBase) GetInventory() string
- func (pb *PlaybookSessionBase) GetOutputWriter() io.Writer
- func (pb *PlaybookSessionBase) GetPlaybook() string
- func (pb *PlaybookSessionBase) GetPlaybookPath() string
- func (pb *PlaybookSessionBase) GetPrivateKey() string
- func (pb *PlaybookSessionBase) GetRequirements() string
- func (pb *PlaybookSessionBase) GetRolePublic() bool
- func (pb *PlaybookSessionBase) GetTimeout() int
- func (pb *PlaybookSessionBase) IsKeepTmpdir() bool
- func (pb *PlaybookSessionBase) SetStopped()
- type Requirements
- type RoleSource
- type Session
- func (sess *Session) AddFile(path string, data []byte) *Session
- func (sess *Session) Files(files map[string][]byte) *Session
- func (sess *Session) GetFile() map[string][]byte
- func (sess *Session) GetPlaybook() string
- func (sess *Session) GetRequirements() string
- func (sess *Session) Inventory(s string) *Session
- func (sess *Session) KeepTmpdir(keep bool) *Session
- func (sess *Session) OutputWriter(w io.Writer) *Session
- func (sess *Session) Playbook(s string) *Session
- func (sess *Session) PrivateKey(s string) *Session
- func (sess *Session) RemoveFile(path string) []byte
- func (sess *Session) Requirements(s string) *Session
- func (sess *Session) RolePublic(public bool) *Session
- func (sess *Session) Run(ctx context.Context) (err error)
- func (sess *Session) Timeout(timeout int) *Session
- type ShellTask
- type Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct { Name string WithPlugin string WithPluginVal interface{} When string Register string IgnoreErrors bool Vars map[string]interface{} Tasks []ITask }
func (*Block) MarshalYAML ¶
type HostGroup ¶
type HostGroup struct { Hosts map[string]*Host Children map[string]*HostGroup Vars map[string]interface{} }
func NewHostGroup ¶
func NewHostGroup(args ...interface{}) *HostGroup
func (*HostGroup) MarshalYAML ¶
type IPlaybookSession ¶
type IPlaybookSession interface { GetPrivateKey() string GetPlaybook() string GetPlaybookPath() string GetInventory() string IsKeepTmpdir() bool GetConfigs() map[string]interface{} GetRequirements() string GetFiles() map[string][]byte GetOutputWriter() io.Writer GetRolePublic() bool GetTimeout() int CheckAndSetRunning() bool SetStopped() GetConfigYaml() string }
type IncludeRole ¶
func (*IncludeRole) MarshalYAML ¶
func (r *IncludeRole) MarshalYAML() (interface{}, error)
type Inventory ¶
type Inventory struct {
HostGroup
}
func NewInventory ¶
func NewInventory(args ...interface{}) *Inventory
func (*Inventory) MarshalYAML ¶
type OfflineSession ¶
type OfflineSession struct { PlaybookSessionBase // contains filtered or unexported fields }
func NewOfflineSession ¶
func NewOfflineSession() *OfflineSession
func (*OfflineSession) ConfigYaml ¶
func (sess *OfflineSession) ConfigYaml(yaml string) *OfflineSession
func (*OfflineSession) Configs ¶
func (sess *OfflineSession) Configs(configs map[string]interface{}) *OfflineSession
func (*OfflineSession) GetConfigYaml ¶
func (sess *OfflineSession) GetConfigYaml() string
func (*OfflineSession) GetConfigs ¶
func (sess *OfflineSession) GetConfigs() map[string]interface{}
func (*OfflineSession) GetPlaybookPath ¶
func (sess *OfflineSession) GetPlaybookPath() string
func (*OfflineSession) Inventory ¶
func (sess *OfflineSession) Inventory(s string) *OfflineSession
func (*OfflineSession) KeepTmpdir ¶
func (sess *OfflineSession) KeepTmpdir(keep bool) *OfflineSession
func (*OfflineSession) OutputWriter ¶
func (sess *OfflineSession) OutputWriter(w io.Writer) *OfflineSession
func (*OfflineSession) PlaybookPath ¶
func (sess *OfflineSession) PlaybookPath(s string) *OfflineSession
func (*OfflineSession) PrivateKey ¶
func (sess *OfflineSession) PrivateKey(s string) *OfflineSession
type Play ¶
type Play struct { Name string RemoteUser string Vars map[string]interface{} IgnoreErrors bool Hosts string Tasks []ITask }
func (*Play) MarshalYAML ¶
type Playbook ¶
type Playbook struct {
Plays []*Play
}
func NewPlaybook ¶
func (*Playbook) MarshalYAML ¶
type PlaybookSessionBase ¶
type PlaybookSessionBase struct {
// contains filtered or unexported fields
}
func NewPlaybookSessionBase ¶
func NewPlaybookSessionBase() PlaybookSessionBase
func (*PlaybookSessionBase) CheckAndSetRunning ¶
func (pb *PlaybookSessionBase) CheckAndSetRunning() bool
func (*PlaybookSessionBase) GetConfigYaml ¶
func (pb *PlaybookSessionBase) GetConfigYaml() string
func (*PlaybookSessionBase) GetConfigs ¶
func (pb *PlaybookSessionBase) GetConfigs() map[string]interface{}
func (*PlaybookSessionBase) GetFiles ¶
func (pb *PlaybookSessionBase) GetFiles() map[string][]byte
func (*PlaybookSessionBase) GetInventory ¶
func (pb *PlaybookSessionBase) GetInventory() string
func (*PlaybookSessionBase) GetOutputWriter ¶
func (pb *PlaybookSessionBase) GetOutputWriter() io.Writer
func (*PlaybookSessionBase) GetPlaybook ¶
func (pb *PlaybookSessionBase) GetPlaybook() string
func (*PlaybookSessionBase) GetPlaybookPath ¶
func (pb *PlaybookSessionBase) GetPlaybookPath() string
func (*PlaybookSessionBase) GetPrivateKey ¶
func (pb *PlaybookSessionBase) GetPrivateKey() string
func (*PlaybookSessionBase) GetRequirements ¶
func (pb *PlaybookSessionBase) GetRequirements() string
func (*PlaybookSessionBase) GetRolePublic ¶
func (pb *PlaybookSessionBase) GetRolePublic() bool
func (*PlaybookSessionBase) GetTimeout ¶
func (pb *PlaybookSessionBase) GetTimeout() int
func (*PlaybookSessionBase) IsKeepTmpdir ¶
func (pb *PlaybookSessionBase) IsKeepTmpdir() bool
func (*PlaybookSessionBase) SetStopped ¶
func (pb *PlaybookSessionBase) SetStopped()
type Requirements ¶
type Requirements struct {
RoleSources []RoleSource
}
func NewRequirements ¶
func NewRequirements(rss ...RoleSource) *Requirements
func (*Requirements) AddRoleSource ¶
func (rm *Requirements) AddRoleSource(rss ...RoleSource)
func (*Requirements) MarshalYAML ¶
func (rm *Requirements) MarshalYAML() (interface{}, error)
func (*Requirements) String ¶
func (rm *Requirements) String() string
type RoleSource ¶
func (*RoleSource) MarshalYAML ¶
func (rs *RoleSource) MarshalYAML() (interface{}, error)
type Session ¶
type Session struct { PlaybookSessionBase // contains filtered or unexported fields }
func NewSession ¶
func NewSession() *Session
func (*Session) GetPlaybook ¶
func (*Session) GetRequirements ¶
func (*Session) KeepTmpdir ¶
func (*Session) PrivateKey ¶
func (*Session) RemoveFile ¶
func (*Session) Requirements ¶
func (*Session) RolePublic ¶
Click to show internal directories.
Click to hide internal directories.