goansible

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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

type MockAnsibleDriver struct {
	mock.Mock
}

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

Jump to

Keyboard shortcuts

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