publisher

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BindlePublishJobType = "bindle"
)
View Source
const (
	DockerPublishJobType = "docker"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BindlePublishJob

type BindlePublishJob struct{}

func (*BindlePublishJob) Publish

func (b *BindlePublishJob) Publish(log util.FriendlyLogger, ctx *project.Context) error

Publish publishes the application.

func (*BindlePublishJob) Type

func (b *BindlePublishJob) Type() string

Type returns the publish job's type.

type DockerPublishJob

type DockerPublishJob struct{}

func (*DockerPublishJob) Publish

func (b *DockerPublishJob) Publish(log util.FriendlyLogger, ctx *project.Context) error

Publish publishes the application.

func (*DockerPublishJob) Type

func (b *DockerPublishJob) Type() string

Type returns the publish job's type.

type PublishJob

type PublishJob interface {
	Type() string
	Publish(logger util.FriendlyLogger, pctx *project.Context) error
}

PublishJob represents an attempt to publish a packaged application.

func NewBindlePublishJob

func NewBindlePublishJob() PublishJob

NewBindlePublishJob returns a new PublishJob for Bindle.

func NewDockerPublishJob

func NewDockerPublishJob() PublishJob

NewDockerPublishJob returns a new PublishJob for Docker images.

type Publisher

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

Publisher is responsible for publishing projects.

func New

func New(log util.FriendlyLogger) *Publisher

New creates a new Publisher.

func (*Publisher) Publish

func (p *Publisher) Publish(ctx *project.Context, job PublishJob) error

Publish executes a PublishJob.

Jump to

Keyboard shortcuts

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