projects

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2018 License: Apache-2.0 Imports: 19 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
	ClientConfig *restclient.Config
	Client       projectclient.ProjectInterface
	KubeClient   kclientset.Interface
	PathOptions  *kclientcmd.PathOptions

	// internal strings
	CommandName string

	DisplayShort bool

	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) RunProjects

func (o ProjectsOptions) RunProjects() error

RunProjects lists all projects a user belongs to

func (*ProjectsOptions) Validate

func (o *ProjectsOptions) Validate(args []string) error

type SortByProjectName

type SortByProjectName []projectapi.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