builder

package
v1.0.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2018 License: Apache-2.0 Imports: 12 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, path *Extra) *Ansible

func (*Ansible) BeforeInstall

func (b *Ansible) BeforeInstall(container Container) error

func (*Ansible) BeforeInstallChecksum

func (b *Ansible) BeforeInstallChecksum() string

func (*Ansible) BeforeSetup

func (b *Ansible) BeforeSetup(container Container) error

func (*Ansible) BeforeSetupChecksum

func (b *Ansible) BeforeSetupChecksum() string

func (*Ansible) BuildArtifact

func (b *Ansible) BuildArtifact(container Container) error

func (*Ansible) BuildArtifactChecksum

func (b *Ansible) BuildArtifactChecksum() string

func (*Ansible) Install

func (b *Ansible) Install(container Container) error

func (*Ansible) InstallChecksum

func (b *Ansible) InstallChecksum() string

func (*Ansible) IsBeforeInstallEmpty

func (b *Ansible) IsBeforeInstallEmpty() bool

func (*Ansible) IsBeforeSetupEmpty

func (b *Ansible) IsBeforeSetupEmpty() bool

func (*Ansible) IsBuildArtifactEmpty

func (b *Ansible) IsBuildArtifactEmpty() bool

func (*Ansible) IsInstallEmpty

func (b *Ansible) IsInstallEmpty() bool

func (*Ansible) IsSetupEmpty

func (b *Ansible) IsSetupEmpty() bool

func (*Ansible) Setup

func (b *Ansible) Setup(container Container) error

func (*Ansible) SetupChecksum

func (b *Ansible) SetupChecksum() string

type Builder

type Builder interface {
	IsBeforeInstallEmpty() bool
	IsInstallEmpty() bool
	IsBeforeSetupEmpty() bool
	IsSetupEmpty() bool
	IsBuildArtifactEmpty() bool
	BeforeInstall(container Container) error
	Install(container Container) error
	BeforeSetup(container Container) error
	Setup(container Container) error
	BuildArtifact(container Container) error
	BeforeInstallChecksum() string
	InstallChecksum() string
	BeforeSetupChecksum() string
	SetupChecksum() string
	BuildArtifactChecksum() 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 {
	ContainerDappPath string
	TmpPath           string
}

type None

type None struct{}

func NewNoneBuilder

func NewNoneBuilder() *None

func (*None) BeforeInstall

func (b *None) BeforeInstall(_ Container) error

func (*None) BeforeInstallChecksum

func (b *None) BeforeInstallChecksum() string

func (*None) BeforeSetup

func (b *None) BeforeSetup(_ Container) error

func (*None) BeforeSetupChecksum

func (b *None) BeforeSetupChecksum() string

func (*None) BuildArtifact

func (b *None) BuildArtifact(_ Container) error

func (*None) BuildArtifactChecksum

func (b *None) BuildArtifactChecksum() string

func (*None) Install

func (b *None) Install(_ Container) error

func (*None) InstallChecksum

func (b *None) InstallChecksum() string

func (*None) IsBeforeInstallEmpty

func (b *None) IsBeforeInstallEmpty() bool

func (*None) IsBeforeSetupEmpty

func (b *None) IsBeforeSetupEmpty() bool

func (*None) IsBuildArtifactEmpty

func (b *None) IsBuildArtifactEmpty() bool

func (*None) IsInstallEmpty

func (b *None) IsInstallEmpty() bool

func (*None) IsSetupEmpty

func (b *None) IsSetupEmpty() bool

func (*None) Setup

func (b *None) Setup(_ Container) error

func (*None) SetupChecksum

func (b *None) SetupChecksum() string

type Shell

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

func NewShellBuilder

func NewShellBuilder(config *config.Shell) *Shell

func (*Shell) BeforeInstall

func (b *Shell) BeforeInstall(container Container) error

func (*Shell) BeforeInstallChecksum

func (b *Shell) BeforeInstallChecksum() string

func (*Shell) BeforeSetup

func (b *Shell) BeforeSetup(container Container) error

func (*Shell) BeforeSetupChecksum

func (b *Shell) BeforeSetupChecksum() string

func (*Shell) BuildArtifact

func (b *Shell) BuildArtifact(container Container) error

func (*Shell) BuildArtifactChecksum

func (b *Shell) BuildArtifactChecksum() string

func (*Shell) Install

func (b *Shell) Install(container Container) error

func (*Shell) InstallChecksum

func (b *Shell) InstallChecksum() string

func (*Shell) IsBeforeInstallEmpty

func (b *Shell) IsBeforeInstallEmpty() bool

func (*Shell) IsBeforeSetupEmpty

func (b *Shell) IsBeforeSetupEmpty() bool

func (*Shell) IsBuildArtifactEmpty

func (b *Shell) IsBuildArtifactEmpty() bool

func (*Shell) IsInstallEmpty

func (b *Shell) IsInstallEmpty() bool

func (*Shell) IsSetupEmpty

func (b *Shell) IsSetupEmpty() bool

func (*Shell) Setup

func (b *Shell) Setup(container Container) error

func (*Shell) SetupChecksum

func (b *Shell) SetupChecksum() string

Jump to

Keyboard shortcuts

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