Documentation
¶
Overview ¶
Package publish implements publishing a Compose application as an OCI artifact: the pre-checks on what it would leak, the layers, and the push.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface {
// APIClient talks to the Docker daemon.
APIClient() client.APIClient
// AuthProvider supplies the registry credentials.
AuthProvider() registry.AuthProvider
// Events receives the progress of the operation.
Events() api.EventProcessor
// DryRun tells whether the operation only reports what it would do.
DryRun() bool
// Prompt asks the user a yes/no question.
Prompt(message string, defaultValue bool) (bool, error)
// Push pushes the images built for the project, as part of the operation
// already running: it opens no progress bracket of its own.
Push(ctx context.Context, project *types.Project, options api.PushOptions) error
}
Backend is what publishing needs from the engine it acts on.
Click to show internal directories.
Click to hide internal directories.