options

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DigestOptions

type DigestOptions struct {
	PrefixWithImage bool
	Registry        RegistryOptions
}

func (*DigestOptions) AddFlags

func (o *DigestOptions) AddFlags(cmd *cobra.Command)

AddFlags implements Interface

type Interface

type Interface interface {
	// AddFlags adds this options' flags to the cobra command.
	AddFlags(cmd *cobra.Command)
}

type RegistryOptions

type RegistryOptions struct {
	AllowInsecure      bool
	KubernetesKeychain bool
}

RegistryOptions is the wrapper for the registry options.

func (*RegistryOptions) AddFlags

func (o *RegistryOptions) AddFlags(cmd *cobra.Command)

AddFlags implements Interface

func (*RegistryOptions) ClientOpts

func (o *RegistryOptions) ClientOpts(ctx context.Context) ([]ociremote.Option, error)

func (*RegistryOptions) GetRegistryClientOpts

func (o *RegistryOptions) GetRegistryClientOpts(ctx context.Context) []remote.Option

Jump to

Keyboard shortcuts

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