Documentation
¶
Index ¶
- func WithArgs(args ...string) func(*Phase) (*Phase, error)
- func WithDaemonAccess() func(*Phase) (*Phase, error)
- func WithRegistryAccess(repos ...string) func(*Phase) (*Phase, error)
- type Docker
- type Lifecycle
- func (l *Lifecycle) Cleanup() error
- func (l *Lifecycle) NewAnalyze(repoName string, publish bool) (*Phase, error)
- func (l *Lifecycle) NewBuild() (*Phase, error)
- func (l *Lifecycle) NewCache(cacheImage string) (*Phase, error)
- func (l *Lifecycle) NewDetect() (*Phase, error)
- func (l *Lifecycle) NewExport(repoName, runImage string, publish bool) (*Phase, error)
- func (l *Lifecycle) NewPhase(name string, ops ...func(*Phase) (*Phase, error)) (*Phase, error)
- func (l *Lifecycle) NewRestore(cacheImage string) (*Phase, error)
- type LifecycleConfig
- type Phase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithDaemonAccess ¶
Types ¶
type Docker ¶
type Docker interface {
RunContainer(ctx context.Context, id string, stdout io.Writer, stderr io.Writer) error
CopyToContainer(ctx context.Context, containerID, dstPath string, content io.Reader, options types.CopyToContainerOptions) error
ContainerCreate(ctx context.Context, config *container.Config, hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig, containerName string) (container.ContainerCreateCreatedBody, error)
ContainerRemove(ctx context.Context, containerID string, options types.ContainerRemoveOptions) error
ImageRemove(ctx context.Context, imageID string, options types.ImageRemoveOptions) ([]types.ImageDeleteResponseItem, error)
ImageList(ctx context.Context, options types.ImageListOptions) ([]types.ImageSummary, error)
VolumeRemove(ctx context.Context, volumeID string, force bool) error
VolumeList(ctx context.Context, filter filters.Args) (volume.VolumeListOKBody, error)
}
type Lifecycle ¶
type Lifecycle struct {
BuilderImage string
Logger *logging.Logger
Docker Docker
LayersVolume string
AppVolume string
// contains filtered or unexported fields
}
func NewLifecycle ¶
func NewLifecycle(c LifecycleConfig) (*Lifecycle, error)
func (*Lifecycle) NewAnalyze ¶
type LifecycleConfig ¶
Click to show internal directories.
Click to hide internal directories.