projects

package
v3.11.8-1+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdProjects

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

NewCmdProjects implements the OpenShift cli rollback command

Types

type ProjectsOptions

type ProjectsOptions struct {
	Config      clientcmdapi.Config
	RESTConfig  *rest.Config
	Client      projectv1client.ProjectV1Interface
	KubeClient  corev1client.CoreV1Interface
	PathOptions *kclientcmd.PathOptions

	// internal strings
	CommandName  string
	DisplayShort bool
	Args         []string

	genericclioptions.IOStreams
}

func NewProjectsOptions

func NewProjectsOptions(name string, streams genericclioptions.IOStreams) *ProjectsOptions

func (*ProjectsOptions) Complete

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

func (ProjectsOptions) Run

func (o ProjectsOptions) Run() error

RunProjects lists all projects a user belongs to

func (*ProjectsOptions) Validate

func (o *ProjectsOptions) Validate() error

type SortByProjectName

type SortByProjectName []projectv1.Project

SortByProjectName is sort

func (SortByProjectName) Len

func (p SortByProjectName) Len() int

func (SortByProjectName) Less

func (p SortByProjectName) Less(i, j int) bool

func (SortByProjectName) Swap

func (p SortByProjectName) Swap(i, j int)

Jump to

Keyboard shortcuts

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