Documentation ¶
Index ¶
- Variables
- type Builder
- type Cache
- type DefaultPhaseFactory
- type Lifecycle
- func (l *Lifecycle) Analyze(ctx context.Context, repoName, cacheName string, publish, clearCache bool, ...) error
- func (l *Lifecycle) Build(ctx context.Context, networkMode string, volumes []string, ...) error
- func (l *Lifecycle) Cleanup() error
- func (l *Lifecycle) Detect(ctx context.Context, networkMode string, volumes []string, ...) error
- func (l *Lifecycle) Execute(ctx context.Context, opts LifecycleOptions) error
- func (l *Lifecycle) Export(ctx context.Context, repoName string, runImage string, publish bool, ...) error
- func (l *Lifecycle) Restore(ctx context.Context, cacheName string, phaseFactory PhaseFactory) error
- func (l *Lifecycle) Setup(opts LifecycleOptions)
- type LifecycleOptions
- type Phase
- type PhaseConfigProvider
- type PhaseConfigProviderOperation
- func WithArgs(args ...string) PhaseConfigProviderOperation
- func WithBinds(binds ...string) PhaseConfigProviderOperation
- func WithDaemonAccess() PhaseConfigProviderOperation
- func WithLifecycleProxy(lifecycle *Lifecycle) PhaseConfigProviderOperation
- func WithNetwork(networkMode string) PhaseConfigProviderOperation
- func WithRegistryAccess(authConfig string) PhaseConfigProviderOperation
- func WithRoot() PhaseConfigProviderOperation
- type PhaseFactory
- type RunnerCleaner
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // SupportedPlatformAPIVersions lists the Platform API versions pack supports. SupportedPlatformAPIVersions = []string{"0.2", "0.3"} )
Functions ¶
This section is empty.
Types ¶
type Builder ¶ added in v0.10.0
type Builder interface { Name() string UID() int GID() int LifecycleDescriptor() builder.LifecycleDescriptor }
type DefaultPhaseFactory ¶ added in v0.10.0
type DefaultPhaseFactory struct {
// contains filtered or unexported fields
}
func NewDefaultPhaseFactory ¶ added in v0.10.0
func NewDefaultPhaseFactory(lifecycle *Lifecycle) *DefaultPhaseFactory
func (*DefaultPhaseFactory) New ¶ added in v0.10.0
func (m *DefaultPhaseFactory) New(provider *PhaseConfigProvider) RunnerCleaner
type Lifecycle ¶
type Lifecycle struct { LayersVolume string AppVolume string Volumes []string DefaultProcessType string // contains filtered or unexported fields }
func NewLifecycle ¶
func NewLifecycle(docker client.CommonAPIClient, logger logging.Logger) *Lifecycle
func (*Lifecycle) Execute ¶
func (l *Lifecycle) Execute(ctx context.Context, opts LifecycleOptions) error
func (*Lifecycle) Setup ¶
func (l *Lifecycle) Setup(opts LifecycleOptions)
type LifecycleOptions ¶
type PhaseConfigProvider ¶ added in v0.10.0
type PhaseConfigProvider struct {
// contains filtered or unexported fields
}
func NewPhaseConfigProvider ¶ added in v0.10.0
func NewPhaseConfigProvider(name string, lifecycle *Lifecycle, ops ...PhaseConfigProviderOperation) *PhaseConfigProvider
func (*PhaseConfigProvider) ContainerConfig ¶ added in v0.10.0
func (p *PhaseConfigProvider) ContainerConfig() *container.Config
func (*PhaseConfigProvider) HostConfig ¶ added in v0.10.0
func (p *PhaseConfigProvider) HostConfig() *container.HostConfig
func (*PhaseConfigProvider) Name ¶ added in v0.10.0
func (p *PhaseConfigProvider) Name() string
type PhaseConfigProviderOperation ¶ added in v0.10.0
type PhaseConfigProviderOperation func(*PhaseConfigProvider)
func WithArgs ¶
func WithArgs(args ...string) PhaseConfigProviderOperation
func WithBinds ¶
func WithBinds(binds ...string) PhaseConfigProviderOperation
func WithDaemonAccess ¶
func WithDaemonAccess() PhaseConfigProviderOperation
func WithLifecycleProxy ¶ added in v0.10.0
func WithLifecycleProxy(lifecycle *Lifecycle) PhaseConfigProviderOperation
func WithNetwork ¶
func WithNetwork(networkMode string) PhaseConfigProviderOperation
func WithRegistryAccess ¶
func WithRegistryAccess(authConfig string) PhaseConfigProviderOperation
func WithRoot ¶
func WithRoot() PhaseConfigProviderOperation
type PhaseFactory ¶ added in v0.10.0
type PhaseFactory interface {
New(provider *PhaseConfigProvider) RunnerCleaner
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.