cmd

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2018 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScaleCmdUsage = "scale <NAME>"
	ScaleCmdShort = "Scale spark cluster by name"
)
View Source
const WhoAmIRecommendedCommandName = "whoami"

Variables

This section is empty.

Functions

func CmdConfigMap added in v0.2.5

func CmdConfigMap(f *clientcmd.Factory, reader io.Reader, out io.Writer) *cobra.Command

func CmdCreate

func CmdCreate(f *clientcmd.Factory, reader io.Reader, out io.Writer, extended bool) *cobra.Command

func CmdDelete

func CmdDelete(f *clientcmd.Factory, reader io.Reader, out io.Writer, extended bool) *cobra.Command

func CmdGet added in v0.2.3

func CmdGet(f *osclientcmd.Factory, reader io.Reader, out io.Writer, extended bool) *cobra.Command

func CmdScale

func CmdScale(f *clientcmd.Factory, reader io.Reader, out io.Writer) *cobra.Command

func CmdVersion

func CmdVersion(f *clientcmd.Factory, reader io.Reader, out io.Writer) *cobra.Command

func NameFromCommandArgs

func NameFromCommandArgs(cmd *cobra.Command, args []string, noNameRequired bool) (string, error)

NameFromCommandArgs is a utility function for commands that assume the first argument is a resource name

func NewCmdConfigMap added in v0.2.5

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

func NewCmdCreate

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

func NewCmdCreateExtended added in v0.2.3

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

func NewCmdDelete

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

func NewCmdDeleteExtended added in v0.2.3

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

func NewCmdGet

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

func NewCmdGetExtended added in v0.2.3

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

func NewCmdScale

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

func NewCmdVersion

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

func NewCmdWhoAmI added in v0.5.0

func NewCmdWhoAmI(name, fullname string, f *clientcmd.Factory, out io.Writer) *cobra.Command

func PrintOutput

func PrintOutput(format string, object interface{}) error

func PrintSingleObject added in v0.5.5

func PrintSingleObject(object interface{}) error

func RunWhoAmI added in v0.5.0

func RunWhoAmI(f *clientcmd.Factory, out io.Writer, cmd *cobra.Command, args []string, o *WhoAmIOptions) error

Types

type CmdOptions

type CmdOptions struct {
	Name           string `json:"name,omitempty"`
	Image          string `json:"image"`
	WorkerCount    int    `json:"workerCount"`
	MasterCount    int    `json:"masterCount,omitempty"`
	MasterConfig   string `json:"sparkMasterConfig,omitempty"`
	WorkerConfig   string `json:"workerConfig,omitempty"`
	StoredConfig   string `json:"storedConfig,omitempty"`
	ExposeWebUI    string `json:"exposeui,omitempty"`
	AppStatus      string `json:"appStatus,omitempty"`
	App            string `json:"app,omitempty"`
	Verbose        bool
	Output         string
	Directory      string
	Ephemeral      bool
	NoNameRequired bool
	Metrics        string
	NoPods         bool
	Deprecated     bool
	auth.AuthOptions
}

func (*CmdOptions) Complete

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

func (*CmdOptions) GatherInfo

func (o *CmdOptions) GatherInfo() error

func (*CmdOptions) RunClusters

func (o *CmdOptions) RunClusters() error

RunProjects lists all projects a user belongs to

func (*CmdOptions) RunCmdConfigMap added in v0.2.5

func (o *CmdOptions) RunCmdConfigMap(f *clientcmd.Factory, out io.Writer, cmd *cobra.Command, args []string) error

func (*CmdOptions) RunCreate

func (o *CmdOptions) RunCreate(out io.Writer, cmd *cobra.Command, args []string) error

func (*CmdOptions) RunDelete

func (o *CmdOptions) RunDelete(out io.Writer, cmd *cobra.Command, args []string) error

func (*CmdOptions) RunScale

func (o *CmdOptions) RunScale() error

func (*CmdOptions) RunVersion

func (o *CmdOptions) RunVersion(out io.Writer, cmd *cobra.Command, args []string) error

type SortByClusterName

type SortByClusterName []clusters.SparkCluster

func (SortByClusterName) Len

func (p SortByClusterName) Len() int

func (SortByClusterName) Less

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

func (SortByClusterName) Swap

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

type WhoAmIOptions added in v0.5.0

type WhoAmIOptions struct {
	UserInterface userclient.UserResourceInterface

	Out io.Writer
}

func (WhoAmIOptions) WhoAmI added in v0.5.0

func (o WhoAmIOptions) WhoAmI() (*userapi.User, error)

Jump to

Keyboard shortcuts

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