Documentation ¶
Index ¶
- Variables
- func WithArgs(args ...string) func(*Phase) (*Phase, error)
- func WithBinds(binds ...string) func(*Phase) (*Phase, error)
- func WithDaemonAccess() func(*Phase) (*Phase, error)
- func WithNetwork(networkMode string) func(*Phase) (*Phase, error)
- func WithRegistryAccess(repos ...string) func(*Phase) (*Phase, error)
- func WithRoot() func(*Phase) (*Phase, error)
- type Cache
- 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) error
- func (l *Lifecycle) Cache(ctx context.Context, cacheName string) error
- func (l *Lifecycle) Cleanup() error
- func (l *Lifecycle) CombinedExporterCacher() bool
- func (l *Lifecycle) Detect(ctx context.Context, networkMode 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) NewPhase(name string, ops ...func(*Phase) (*Phase, error)) (*Phase, error)
- func (l *Lifecycle) Restore(ctx context.Context, cacheName string) error
- func (l *Lifecycle) Setup(opts LifecycleOptions)
- type LifecycleOptions
- type Phase
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // SupportedPlatformAPIVersions lists the Platform API versions pack supports. SupportedPlatformAPIVersions = []string{"0.1", "0.2"} )
Functions ¶
func WithDaemonAccess ¶
Types ¶
type Lifecycle ¶
type Lifecycle struct { LayersVolume string AppVolume string // contains filtered or unexported fields }
func (*Lifecycle) Cache ¶
The cache phase is obsolete with Platform API 0.2 and will be removed in the future.
func (*Lifecycle) CombinedExporterCacher ¶
CombinedExporterCacher returns true if the lifecycle contains combined exporter/cacher phases and reversed analyzer/restorer phases.
func (*Lifecycle) Execute ¶
func (l *Lifecycle) Execute(ctx context.Context, opts LifecycleOptions) error
func (*Lifecycle) Setup ¶
func (l *Lifecycle) Setup(opts LifecycleOptions)
type LifecycleOptions ¶
Click to show internal directories.
Click to hide internal directories.