pusher

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FlagProfile is the flag for defining the input file location.
	FlagProfile string = cli.FlagProfile

	// FlagUsername is the flag for defining the username for registry
	// authentication.
	FlagUsername string = cli.FlagUsername

	// FlagAnnotations is the flag for setting custom annotations to the pushed
	// artifact.
	FlagAnnotations string = "annotations"
)

Variables

View Source
var DefaultInputFile = cli.DefaultFile

DefaultInputFile defines the default input location for the pusher.

Functions

This section is empty.

Types

type Options

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

Options define all possible options for the pusher.

func Default

func Default() *Options

Default returns a default options instance.

func FromContext

func FromContext(ctx *ucli.Context) (*Options, error)

FromContext can be used to create Options from an CLI context.

type Pusher

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

Pusher is the main structure of this package.

func New

func New(options *Options) *Pusher

New returns a new Pusher instance.

func (*Pusher) Run

func (p *Pusher) Run() error

Run the Pusher.

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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