Documentation ¶
Index ¶
- Constants
- func CmdConfigMap(f *clientcmd.Factory, reader io.Reader, out io.Writer) *cobra.Command
- func CmdCreate(f *clientcmd.Factory, reader io.Reader, out io.Writer, extended bool) *cobra.Command
- func CmdDelete(f *clientcmd.Factory, reader io.Reader, out io.Writer, extended bool) *cobra.Command
- func CmdGet(f *osclientcmd.Factory, reader io.Reader, out io.Writer, extended bool) *cobra.Command
- func CmdScale(f *clientcmd.Factory, reader io.Reader, out io.Writer) *cobra.Command
- func CmdVersion(f *clientcmd.Factory, reader io.Reader, out io.Writer) *cobra.Command
- func NameFromCommandArgs(cmd *cobra.Command, args []string, noNameRequired bool) (string, error)
- func NewCmdConfigMap(fullName string, f *clientcmd.Factory, in io.Reader, out io.Writer) *cobra.Command
- func NewCmdCreate(fullName string, f *clientcmd.Factory, in io.Reader, out io.Writer) *cobra.Command
- func NewCmdCreateExtended(fullName string, f *clientcmd.Factory, in io.Reader, out io.Writer) *cobra.Command
- func NewCmdDelete(fullName string, f *clientcmd.Factory, in io.Reader, out io.Writer) *cobra.Command
- func NewCmdDeleteExtended(fullName string, f *clientcmd.Factory, in io.Reader, out io.Writer) *cobra.Command
- func NewCmdGet(fullName string, f *osclientcmd.Factory, in io.Reader, out io.Writer) *cobra.Command
- func NewCmdGetExtended(fullName string, f *osclientcmd.Factory, in io.Reader, out io.Writer) *cobra.Command
- func NewCmdScale(fullName string, f *clientcmd.Factory, in io.Reader, out io.Writer) *cobra.Command
- func NewCmdVersion(fullName string, f *clientcmd.Factory, in io.Reader, out io.Writer) *cobra.Command
- func NewCmdWhoAmI(name, fullname string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func PrintOutput(format string, object interface{}) error
- func PrintSingleObject(object interface{}) error
- func RunWhoAmI(f *clientcmd.Factory, out io.Writer, cmd *cobra.Command, args []string, ...) error
- type CmdOptions
- func (o *CmdOptions) Complete(f *osclientcmd.Factory, cmd *cobra.Command, args []string) error
- func (o *CmdOptions) GatherInfo() error
- func (o *CmdOptions) RunClusters() error
- func (o *CmdOptions) RunCmdConfigMap(f *clientcmd.Factory, out io.Writer, cmd *cobra.Command, args []string) error
- func (o *CmdOptions) RunCreate(out io.Writer, cmd *cobra.Command, args []string) error
- func (o *CmdOptions) RunDelete(out io.Writer, cmd *cobra.Command, args []string) error
- func (o *CmdOptions) RunScale() error
- func (o *CmdOptions) RunVersion(out io.Writer, cmd *cobra.Command, args []string) error
- type SortByClusterName
- type WhoAmIOptions
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 CmdVersion ¶
func NameFromCommandArgs ¶
NameFromCommandArgs is a utility function for commands that assume the first argument is a resource name
func NewCmdConfigMap ¶ added in v0.2.5
func NewCmdCreate ¶
func NewCmdCreateExtended ¶ added in v0.2.3
func NewCmdDelete ¶
func NewCmdDeleteExtended ¶ added in v0.2.3
func NewCmdGetExtended ¶ added in v0.2.3
func NewCmdScale ¶
func NewCmdVersion ¶
func NewCmdWhoAmI ¶ added in v0.5.0
func PrintOutput ¶
func PrintSingleObject ¶ added in v0.5.5
func PrintSingleObject(object interface{}) 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 (*CmdOptions) RunScale ¶
func (o *CmdOptions) RunScale() error
func (*CmdOptions) RunVersion ¶
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 }
Click to show internal directories.
Click to hide internal directories.