app

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(defaults *Options, ctx context.Context) *cobra.Command

NewCommand provides a CLI handler for 'oci-image-mirror' command with a default Options.

Types

type Options

type Options struct {
	*configuration.Configuration
	Logs *logs.Options
	// contains filtered or unexported fields
}

func NewOptions

func NewOptions() *Options

NewOptions returns a new Options

func (*Options) AddFlags

func (o *Options) AddFlags(fs *pflag.FlagSet)

func (*Options) Complete

func (o *Options) Complete() error

Complete fills in fields required to have valid data

func (*Options) Config

func (o *Options) Config() (*configuration.Configuration, error)

Config returns config for the api server given Options

func (*Options) RunServer

func (o *Options) RunServer(ctx context.Context) error

RunServer starts a new Server given Options

func (*Options) Validate

func (o *Options) Validate(args []string) error

Validate validates Options

Jump to

Keyboard shortcuts

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