Documentation ¶
Index ¶
- func CmdGet(f *cmdutil.Factory, out io.Writer) *cobra.Command
- func NewCmdClusters(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdGet(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdLogin(fullName string, f *osclientcmd.Factory, reader io.Reader, out io.Writer) *cobra.Command
- func NewCmdTypes(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func RunLogin(cmd *cobra.Command, options *AuthOptions) error
- type AuthOptions
- type ClusterOptions
- type GetOptions
- type SortByClusterName
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CmdGet ¶
NewCmdGet creates a command object for the generic "get" action, which retrieves one or more resources from a server.
func NewCmdClusters ¶
NewCmdClusters implements the OpenShift cli rollback command
func NewCmdLogin ¶
func NewCmdTypes ¶
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) RunClusters ¶
func (o ClusterOptions) RunClusters() error
RunProjects lists all projects a user belongs to
type GetOptions ¶
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)
Click to show internal directories.
Click to hide internal directories.