importimage

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2018 License: Apache-2.0 Imports: 16 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 {
	// 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(cmd *cobra.Command) 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