Documentation ¶
Index ¶
- func ConfirmProjectAccess(currentProject string, projectClient projectv1client.ProjectV1Interface, ...) error
- func DisplayNameForProject(project *projectv1.Project) string
- func GetProjects(projectClient projectv1client.ProjectV1Interface, ...) ([]projectv1.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 projectv1client.ProjectV1Interface, kClient corev1client.CoreV1Interface) error
func DisplayNameForProject ¶
func GetProjects ¶
func GetProjects(projectClient projectv1client.ProjectV1Interface, kClient corev1client.CoreV1Interface) ([]projectv1.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 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 (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) Run ¶
func (o ProjectOptions) Run() error
RunProject contains all the necessary functionality for the OpenShift cli project command
Click to show internal directories.
Click to hide internal directories.