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 ¶
func (d *AnsiblePlaybookDriver) Build(ctx context.Context, i *image.Image, o *image.BuildDriverOptions) error
Build performs the build. In case the build could not performed it returns an error
Click to show internal directories.
Click to hide internal directories.