project

package
v3.11.6-1+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfirmProjectAccess

func ConfirmProjectAccess(currentProject string, projectClient projectv1client.ProjectV1Interface, kClient corev1client.CoreV1Interface) error

func DisplayNameForProject

func DisplayNameForProject(project *projectv1.Project) string

func NewCmdProject

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

NewCmdProject implements the OpenShift cli rollback command

Types

type ProjectOptions

type ProjectOptions struct {
	Config      clientcmdapi.Config
	RESTConfig  *rest.Config
	ClientFn    func() (projectv1client.ProjectV1Interface, corev1client.CoreV1Interface, error)
	PathOptions *kclientcmd.PathOptions

	ProjectName  string
	ProjectOnly  bool
	DisplayShort bool

	// SkipAccessValidation means that if a specific name is requested, don't bother checking for access to the project
	SkipAccessValidation bool

	genericclioptions.IOStreams
}

func NewProjectOptions

func NewProjectOptions(streams genericclioptions.IOStreams) *ProjectOptions

func (*ProjectOptions) Complete

func (*ProjectOptions) GetContextFromName

func (o *ProjectOptions) GetContextFromName(contextName string) (*clientcmdapi.Context, bool)

returns a context by the given contextName and a boolean true if the context exists

func (ProjectOptions) Run

func (o ProjectOptions) Run() error

RunProject contains all the necessary functionality for the OpenShift cli project command

Jump to

Keyboard shortcuts

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