Documentation ¶
Index ¶
- func ConfirmProjectAccess(currentProject string, projectClient projectclient.ProjectInterface, ...) error
- func GetProjects(projectClient projectclient.ProjectInterface, kClient kclientset.Interface) ([]projectapi.Project, error)
- func NewCmdProject(fullName string, f kcmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
- type ProjectOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfirmProjectAccess ¶
func ConfirmProjectAccess(currentProject string, projectClient projectclient.ProjectInterface, kClient kclientset.Interface) error
func GetProjects ¶
func GetProjects(projectClient projectclient.ProjectInterface, kClient kclientset.Interface) ([]projectapi.Project, error)
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 ClientConfig *restclient.Config ClientFn func() (projectclient.ProjectInterface, kclientset.Interface, 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 (o *ProjectOptions) Complete(f genericclioptions.RESTClientGetter, args []string) error
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) RunProject ¶
func (o ProjectOptions) RunProject() error
RunProject contains all the necessary functionality for the OpenShift cli project command
func (ProjectOptions) Validate ¶
func (o ProjectOptions) Validate() error
Click to show internal directories.
Click to hide internal directories.