builder

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ansible

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

func NewAnsibleBuilder

func NewAnsibleBuilder(config *config.Ansible, extra *Extra) *Ansible

func (*Ansible) BeforeInstall

func (b *Ansible) BeforeInstall(ctx context.Context, container Container) error

func (*Ansible) BeforeInstallChecksum

func (b *Ansible) BeforeInstallChecksum(ctx context.Context) string

func (*Ansible) BeforeSetup

func (b *Ansible) BeforeSetup(ctx context.Context, container Container) error

func (*Ansible) BeforeSetupChecksum

func (b *Ansible) BeforeSetupChecksum(ctx context.Context) string

func (*Ansible) Install

func (b *Ansible) Install(ctx context.Context, container Container) error

func (*Ansible) InstallChecksum

func (b *Ansible) InstallChecksum(ctx context.Context) string

func (*Ansible) IsBeforeInstallEmpty

func (b *Ansible) IsBeforeInstallEmpty(ctx context.Context) bool

func (*Ansible) IsBeforeSetupEmpty

func (b *Ansible) IsBeforeSetupEmpty(ctx context.Context) bool

func (*Ansible) IsInstallEmpty

func (b *Ansible) IsInstallEmpty(ctx context.Context) bool

func (*Ansible) IsSetupEmpty

func (b *Ansible) IsSetupEmpty(ctx context.Context) bool

func (*Ansible) Setup

func (b *Ansible) Setup(ctx context.Context, container Container) error

func (*Ansible) SetupChecksum

func (b *Ansible) SetupChecksum(ctx context.Context) string

type Builder

type Builder interface {
	IsBeforeInstallEmpty(ctx context.Context) bool
	IsInstallEmpty(ctx context.Context) bool
	IsBeforeSetupEmpty(ctx context.Context) bool
	IsSetupEmpty(ctx context.Context) bool
	BeforeInstall(ctx context.Context, container Container) error
	Install(ctx context.Context, container Container) error
	BeforeSetup(ctx context.Context, container Container) error
	Setup(ctx context.Context, container Container) error
	BeforeInstallChecksum(ctx context.Context) string
	InstallChecksum(ctx context.Context) string
	BeforeSetupChecksum(ctx context.Context) string
	SetupChecksum(ctx context.Context) string
}

type Container

type Container interface {
	AddRunCommands(commands ...string)
	AddServiceRunCommands(commands ...string)
	AddVolumeFrom(volumesFrom ...string)
	AddVolume(volumes ...string)
	AddExpose(exposes ...string)
	AddEnv(envs map[string]string)
	AddLabel(labels map[string]string)
}

type Extra

type Extra struct {
	ContainerWerfPath string
	TmpPath           string
}

type Shell

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

func NewShellBuilder

func NewShellBuilder(config *config.Shell, extra *Extra) *Shell

func (*Shell) BeforeInstall

func (b *Shell) BeforeInstall(_ context.Context, container Container) error

func (*Shell) BeforeInstallChecksum

func (b *Shell) BeforeInstallChecksum(ctx context.Context) string

func (*Shell) BeforeSetup

func (b *Shell) BeforeSetup(_ context.Context, container Container) error

func (*Shell) BeforeSetupChecksum

func (b *Shell) BeforeSetupChecksum(ctx context.Context) string

func (*Shell) Install

func (b *Shell) Install(_ context.Context, container Container) error

func (*Shell) InstallChecksum

func (b *Shell) InstallChecksum(ctx context.Context) string

func (*Shell) IsBeforeInstallEmpty

func (b *Shell) IsBeforeInstallEmpty(ctx context.Context) bool

func (*Shell) IsBeforeSetupEmpty

func (b *Shell) IsBeforeSetupEmpty(ctx context.Context) bool

func (*Shell) IsInstallEmpty

func (b *Shell) IsInstallEmpty(ctx context.Context) bool

func (*Shell) IsSetupEmpty

func (b *Shell) IsSetupEmpty(ctx context.Context) bool

func (*Shell) Setup

func (b *Shell) Setup(_ context.Context, container Container) error

func (*Shell) SetupChecksum

func (b *Shell) SetupChecksum(ctx context.Context) string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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