publish

package
v5.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: Apache-2.0 Imports: 29 Imported by: 0

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.

type Service

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

Service publishes projects on a Backend.

func New

func New(backend Backend) *Service

New creates a Service acting on the given Backend.

func (*Service) Publish

func (s *Service) Publish(ctx context.Context, project *types.Project, repository string, options api.PublishOptions) error

Publish publishes the project as an OCI artifact to the repository. It does not open a progress bracket: the caller wraps it in the "publish" one.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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