registry

package
v4.0.0-0.5.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2018 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdRegistry

func NewCmdRegistry(f kcmdutil.Factory, parentName, name string, streams genericclioptions.IOStreams) *cobra.Command

NewCmdRegistry implements the OpenShift cli registry command

Types

type RegistryConfig

type RegistryConfig struct {
	PrintFlags *genericclioptions.PrintFlags

	Printer printers.ResourcePrinter

	Action configcmd.BulkAction

	Name           string
	Type           string
	ImageTemplate  variable.ImageTemplate
	Ports          string
	Replicas       int32
	Labels         string
	Volume         string
	HostMount      string
	DryRun         bool
	Selector       string
	ServiceAccount string
	DaemonSet      bool
	EnforceQuota   bool

	// SupplementalGroups is list of int64, however cobra does not have appropriate func
	// for that type list.
	SupplementalGroups []string
	FSGroup            string

	ServingCertPath string
	ServingKeyPath  string

	ClusterIP string

	Local bool
}

RegistryConfig contains configuration for the registry that will be created.

type RegistryOptions

type RegistryOptions struct {
	Config *RegistryConfig

	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

RegistryOptions contains the configuration for the registry as well as any other helpers required to run the command.

func NewRegistryOpts

func NewRegistryOpts(streams genericclioptions.IOStreams) *RegistryOptions

func (*RegistryOptions) Complete

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

Complete completes any options that are required by validate or run steps.

func (*RegistryOptions) RunCmdRegistry

func (opts *RegistryOptions) RunCmdRegistry() error

RunCmdRegistry contains all the necessary functionality for the OpenShift cli registry command

Jump to

Keyboard shortcuts

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