pusher

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FlagProfiles is the flag for defining the input file locations.
	FlagProfiles string = "profiles"

	// 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"

	// FlagPlatforms is the flag for defining the platforms to push.
	FlagPlatforms string = "platforms"
)

Variables

View Source
var (
	// DefaultInputFile defines the default input location for the pusher.
	DefaultInputFile = cli.DefaultFile

	// DefaultPlatform defines the default platform for the current system.
	DefaultPlatform = &v1.Platform{
		OS:           runtime.GOOS,
		Architecture: runtime.GOARCH,
	}
)

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