Documentation ¶
Index ¶
- Variables
- func CompressDockerFile(data []byte) io.Reader
- func PlatformAdd(opts appTypes.PlatformOptions) error
- func PlatformRemove(name string) error
- func PlatformUpdate(opts appTypes.PlatformOptions) error
- func Register(name string, builder Builder)
- type BuildOpts
- type Builder
- type MockBuilder
- func (b *MockBuilder) Build(p provision.BuilderDeploy, app provision.App, evt *event.Event, ...) (string, error)
- func (b *MockBuilder) PlatformAdd(opts appTypes.PlatformOptions) error
- func (b *MockBuilder) PlatformRemove(name string) error
- func (b *MockBuilder) PlatformUpdate(opts appTypes.PlatformOptions) error
- type PlatformBuilder
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultBuilder = "docker"
Functions ¶
func CompressDockerFile ¶
func PlatformAdd ¶
func PlatformAdd(opts appTypes.PlatformOptions) error
func PlatformRemove ¶
func PlatformUpdate ¶
func PlatformUpdate(opts appTypes.PlatformOptions) error
Types ¶
type Builder ¶
type Builder interface {
Build(p provision.BuilderDeploy, app provision.App, evt *event.Event, opts *BuildOpts) (string, error)
}
Builder is the basic interface of this package.
func GetForProvisioner ¶
func GetForProvisioner(p provision.Provisioner) (Builder, error)
GetForProvisioner gets the builder required by the provisioner.
type MockBuilder ¶
type MockBuilder struct { OnBuild func(provision.BuilderDeploy, provision.App, *event.Event, *BuildOpts) (string, error) OnPlatformAdd func(appTypes.PlatformOptions) error OnPlatformUpdate func(appTypes.PlatformOptions) error OnPlatformRemove func(string) error }
func (*MockBuilder) Build ¶
func (b *MockBuilder) Build(p provision.BuilderDeploy, app provision.App, evt *event.Event, opts *BuildOpts) (string, error)
func (*MockBuilder) PlatformAdd ¶
func (b *MockBuilder) PlatformAdd(opts appTypes.PlatformOptions) error
func (*MockBuilder) PlatformRemove ¶
func (b *MockBuilder) PlatformRemove(name string) error
func (*MockBuilder) PlatformUpdate ¶
func (b *MockBuilder) PlatformUpdate(opts appTypes.PlatformOptions) error
type PlatformBuilder ¶
type PlatformBuilder interface { PlatformAdd(appTypes.PlatformOptions) error PlatformUpdate(appTypes.PlatformOptions) error PlatformRemove(name string) error }
PlatformBuilder is a builder where administrators can manage platforms (automatically adding, removing and updating platforms).
Click to show internal directories.
Click to hide internal directories.