importimage

package
v4.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 1, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdImportImage

func NewCmdImportImage(fullName string, f kcmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

NewCmdImportImage implements the OpenShift cli import-image command.

Types

type ImportImageOptions

type ImportImageOptions struct {
	PrintFlags *genericclioptions.PrintFlags

	ToPrinter func(string) (printers.ResourcePrinter, error)

	// user set values
	From                 string
	Confirm              bool
	All                  bool
	Scheduled            bool
	Insecure             bool
	InsecureFlagProvided bool

	DryRun bool

	// internal values
	Namespace       string
	Name            string
	Tag             string
	Target          string
	ReferencePolicy string

	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

ImageImportOptions contains all the necessary information to perform an import.

func NewImportImageOptions

func NewImportImageOptions(name string, streams genericclioptions.IOStreams) *ImportImageOptions

func (*ImportImageOptions) Complete

func (o *ImportImageOptions) Complete(f kcmdutil.Factory, cmd *cobra.Command, args []string) error

Complete turns a partially defined ImportImageOptions into a solvent structure which can be validated and used for aa import.

func (*ImportImageOptions) Run

func (o *ImportImageOptions) Run() error

Run contains all the necessary functionality for the OpenShift cli import-image command.

func (*ImportImageOptions) Validate

func (o *ImportImageOptions) Validate() error

Validate ensures that a ImportImageOptions is valid and can be used to execute an import.

Jump to

Keyboard shortcuts

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