build

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const PlatformAPIVersion = "0.1"

PlatformAPIVersion is the current Platform API Version supported by this version of pack.

Variables

This section is empty.

Functions

func WithArgs

func WithArgs(args ...string) func(*Phase) (*Phase, error)

func WithBinds added in v0.2.0

func WithBinds(binds ...string) func(*Phase) (*Phase, error)

func WithDaemonAccess

func WithDaemonAccess() func(*Phase) (*Phase, error)

func WithNetwork added in v0.5.0

func WithNetwork(networkMode string) func(*Phase) (*Phase, error)

func WithRegistryAccess

func WithRegistryAccess(repos ...string) func(*Phase) (*Phase, error)

Types

type Cache added in v0.2.0

type Cache interface {
	Name() string
	Clear(context.Context) error
}

type Lifecycle

type Lifecycle struct {
	LayersVolume string
	AppVolume    string
	// contains filtered or unexported fields
}

func NewLifecycle

func NewLifecycle(docker *client.Client, logger logging.Logger) *Lifecycle

func (*Lifecycle) Analyze added in v0.2.0

func (l *Lifecycle) Analyze(ctx context.Context, repoName string, publish, clearCache bool) error

func (*Lifecycle) Build added in v0.2.0

func (l *Lifecycle) Build(ctx context.Context, networkMode string) error

func (*Lifecycle) Cache added in v0.2.0

func (l *Lifecycle) Cache(ctx context.Context, cacheName string) error

func (*Lifecycle) Cleanup

func (l *Lifecycle) Cleanup() error

func (*Lifecycle) Detect added in v0.2.0

func (l *Lifecycle) Detect(ctx context.Context, networkMode string) error

func (*Lifecycle) Execute added in v0.2.0

func (l *Lifecycle) Execute(ctx context.Context, opts LifecycleOptions) error

func (*Lifecycle) Export added in v0.2.0

func (l *Lifecycle) Export(ctx context.Context, repoName string, runImage string, publish bool, launchCacheName string) error

func (*Lifecycle) NewPhase

func (l *Lifecycle) NewPhase(name string, ops ...func(*Phase) (*Phase, error)) (*Phase, error)

func (*Lifecycle) Restore added in v0.2.0

func (l *Lifecycle) Restore(ctx context.Context, cacheName string) error

func (*Lifecycle) Setup added in v0.2.0

func (l *Lifecycle) Setup(opts LifecycleOptions)

type LifecycleOptions added in v0.2.0

type LifecycleOptions struct {
	AppPath    string
	Image      name.Reference
	Builder    *builder.Builder
	RunImage   string
	ClearCache bool
	Publish    bool
	HTTPProxy  string
	HTTPSProxy string
	NoProxy    string
	Network    string
}

type Phase

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

func (*Phase) Cleanup

func (p *Phase) Cleanup() error

func (*Phase) Run

func (p *Phase) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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