Documentation ¶
Index ¶
- type GoAnsibleDriver
- func (d *GoAnsibleDriver) PrepareExecutor(writer io.Writer, prefix string)
- func (d *GoAnsibleDriver) Run(ctx context.Context) error
- func (d *GoAnsibleDriver) WithConnectionOptions(opts *options.AnsibleConnectionOptions)
- func (d *GoAnsibleDriver) WithExecutor(executor execute.Executor)
- func (d *GoAnsibleDriver) WithOptions(opts *ansible.AnsiblePlaybookOptions)
- func (d *GoAnsibleDriver) WithPlaybook(playbook string)
- func (d *GoAnsibleDriver) WithPriviledgedEscalationOptions(opts *options.AnsiblePrivilegeEscalationOptions)
- func (d *GoAnsibleDriver) WithStdoutCallback(callback string)
- type MockAnsibleDriver
- func (d *MockAnsibleDriver) PrepareExecutor(writer io.Writer, prefix string)
- func (d *MockAnsibleDriver) Run(ctx context.Context) error
- func (d *MockAnsibleDriver) WithConnectionOptions(opts *options.AnsibleConnectionOptions)
- func (d *MockAnsibleDriver) WithExecutor(executor execute.Executor)
- func (d *MockAnsibleDriver) WithOptions(opts *ansible.AnsiblePlaybookOptions)
- func (d *MockAnsibleDriver) WithPlaybook(playbook string)
- func (d *MockAnsibleDriver) WithPriviledgedEscalationOptions(opts *options.AnsiblePrivilegeEscalationOptions)
- func (d *MockAnsibleDriver) WithStdoutCallback(callback string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoAnsibleDriver ¶
type GoAnsibleDriver struct {
// contains filtered or unexported fields
}
GoAnsibleDriver is a driver for building docker images from ansible-playbooks
func NewGoAnsibleDriver ¶
func NewGoAnsibleDriver() *GoAnsibleDriver
NewGoAnsibleDriver creates a new GoAnsibleDriver
func (*GoAnsibleDriver) PrepareExecutor ¶
func (d *GoAnsibleDriver) PrepareExecutor(writer io.Writer, prefix string)
PrepareExecutor prepares the executor
func (*GoAnsibleDriver) Run ¶
func (d *GoAnsibleDriver) Run(ctx context.Context) error
Run executes the ansible command
func (*GoAnsibleDriver) WithConnectionOptions ¶
func (d *GoAnsibleDriver) WithConnectionOptions(opts *options.AnsibleConnectionOptions)
WithConnectionOptions sets the connection options to ansible command
func (*GoAnsibleDriver) WithExecutor ¶
func (d *GoAnsibleDriver) WithExecutor(executor execute.Executor)
WithExecutor sets the executor to ansible command
func (*GoAnsibleDriver) WithOptions ¶
func (d *GoAnsibleDriver) WithOptions(opts *ansible.AnsiblePlaybookOptions)
WithOptions sets the options to ansible command
func (*GoAnsibleDriver) WithPlaybook ¶
func (d *GoAnsibleDriver) WithPlaybook(playbook string)
WithPlaybook sets the playbook to ansible command
func (*GoAnsibleDriver) WithPriviledgedEscalationOptions ¶
func (d *GoAnsibleDriver) WithPriviledgedEscalationOptions(opts *options.AnsiblePrivilegeEscalationOptions)
WithPriviledgedEscalationOptions sets the priviliged escalations options to ansible command
func (*GoAnsibleDriver) WithStdoutCallback ¶
func (d *GoAnsibleDriver) WithStdoutCallback(callback string)
WithStdoutCallback sets the callback to ansible command
type MockAnsibleDriver ¶
MockAnsibleDriver is a mock of AnsibleDriver interface
func NewMockAnsibleDriver ¶
func NewMockAnsibleDriver() *MockAnsibleDriver
NewMockAnsibleDriver returns a new mock of AnsibleDriver interface
func (*MockAnsibleDriver) PrepareExecutor ¶
func (d *MockAnsibleDriver) PrepareExecutor(writer io.Writer, prefix string)
PrepareExecutor returns a mock of AnsibleDriver interface
func (*MockAnsibleDriver) Run ¶
func (d *MockAnsibleDriver) Run(ctx context.Context) error
Run returns a mock of AnsibleDriver interface
func (*MockAnsibleDriver) WithConnectionOptions ¶
func (d *MockAnsibleDriver) WithConnectionOptions(opts *options.AnsibleConnectionOptions)
WithConnectionOptions returns a mock of AnsibleDriver interface
func (*MockAnsibleDriver) WithExecutor ¶
func (d *MockAnsibleDriver) WithExecutor(executor execute.Executor)
WithExecutor returns a mock of AnsibleDriver interface
func (*MockAnsibleDriver) WithOptions ¶
func (d *MockAnsibleDriver) WithOptions(opts *ansible.AnsiblePlaybookOptions)
WithOptions returns a mock of AnsibleDriver interface
func (*MockAnsibleDriver) WithPlaybook ¶
func (d *MockAnsibleDriver) WithPlaybook(playbook string)
WithPlaybook returns a mock of AnsibleDriver interface
func (*MockAnsibleDriver) WithPriviledgedEscalationOptions ¶
func (d *MockAnsibleDriver) WithPriviledgedEscalationOptions(opts *options.AnsiblePrivilegeEscalationOptions)
WithPriviledgedEscalationOptions returns a mock of AnsibleDriver interface
func (*MockAnsibleDriver) WithStdoutCallback ¶
func (d *MockAnsibleDriver) WithStdoutCallback(callback string)
WithStdoutCallback returns a mock of AnsibleDriver interface