ansible

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: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DriverName is the name for the driver
	DriverName = "ansible-playbook"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AnsibleDriverer

type AnsibleDriverer interface {
	WithPlaybook(playbook string)
	WithOptions(opts *ansible.AnsiblePlaybookOptions)
	WithConnectionOptions(opts *options.AnsibleConnectionOptions)
	WithPriviledgedEscalationOptions(opts *options.AnsiblePrivilegeEscalationOptions)
	WithStdoutCallback(callback string)
	PrepareExecutor(writer io.Writer, prefix string)
	Run(ctx context.Context) error
}

AnsibleDriverer is an interface that describes the methods that must implement any objects for building images from ansible

type AnsiblePlaybookDriver

type AnsiblePlaybookDriver struct {
	// contains filtered or unexported fields
}

AnsiblePlaybookDriver drives the build through ansible

func NewAnsiblePlaybookDriver

func NewAnsiblePlaybookDriver(driver AnsibleDriverer, ref repository.ImageReferenceNamer, writer io.Writer) (*AnsiblePlaybookDriver, error)

NewAnsiblePlaybookDriver returns an AnsiblePlaybookDriver. In case driver is null, it returns an error

func (*AnsiblePlaybookDriver) Build

Build performs the build. In case the build could not performed it returns an error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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