cmd

package
v0.0.0-...-8bf9598 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2016 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CmdGet

func CmdGet(f *cmdutil.Factory, out io.Writer) *cobra.Command

NewCmdGet creates a command object for the generic "get" action, which retrieves one or more resources from a server.

func NewCmdClusters

func NewCmdClusters(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command

NewCmdClusters implements the OpenShift cli rollback command

func NewCmdGet

func NewCmdGet(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command

NewCmdGet is a wrapper for the Kubernetes cli get command

func NewCmdLogin

func NewCmdLogin(fullName string, f *osclientcmd.Factory, reader io.Reader, out io.Writer) *cobra.Command

func NewCmdTypes

func NewCmdTypes(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command

func RunLogin

func RunLogin(cmd *cobra.Command, options *AuthOptions) error

RunLogin contains all the necessary functionality for the OpenShift cli login command

Types

type AuthOptions

type AuthOptions struct {
	Server      string
	CAFile      string
	InsecureTLS bool
	APIVersion  unversioned.GroupVersion

	// flags and printing helpers
	Username string
	Password string
	Project  string

	// infra
	StartingKubeConfig *kclientcmdapi.Config
	DefaultNamespace   string
	Config             *restclient.Config
	Reader             io.Reader
	Out                io.Writer
	Client             *client.Client
	KClient            *kclient.Client

	// cert data to be used when authenticating
	CertFile string
	KeyFile  string

	Token string

	PathOptions *kcmdconfig.PathOptions
}

=====================================

func (*AuthOptions) Complete

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

func (*AuthOptions) GatherInfo

func (o *AuthOptions) GatherInfo() error

func (*AuthOptions) RunClusters

func (o *AuthOptions) RunClusters(currentProject string) error

RunProjects lists all projects a user belongs to

type ClusterOptions

type ClusterOptions struct {
	Config       clientcmdapi.Config
	ClientConfig *restclient.Config
	Client       *client.Client
	KClient      *kclient.Client
	Out          io.Writer
	PathOptions  *kubecmdconfig.PathOptions

	DisplayShort bool
}

func (*ClusterOptions) Complete

func (o *ClusterOptions) Complete(f *clientcmd.Factory, args []string, out io.Writer) error

func (ClusterOptions) RunClusters

func (o ClusterOptions) RunClusters() error

RunProjects lists all projects a user belongs to

type GetOptions

type GetOptions struct {
	Filenames []string
	Recursive bool
}

GetOptions is the start of the data required to perform the operation. As new fields are added, add them here instead of referencing the cmd.Flags()

type SortByClusterName

type SortByClusterName []*clusters.ClustersItems0

SortByProjectName is sort

func (SortByClusterName) Len

func (p SortByClusterName) Len() int
func (p SortByClusterName) Len() int {
	return len(p)
}
func (p SortByClusterName) Swap(i, j int) {
	p[i], p[j] = p[j], p[i]
}
func (p SortByClusterName) Less(i, j int) bool {
	return p[i].Name < p[j].Name
}

func (SortByClusterName) Less

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

func (SortByClusterName) Swap

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

Jump to

Keyboard shortcuts

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