Documentation
¶
Index ¶
- Constants
- func AuthenticatedSparkClient(auth bool) (*spark.SparkClient, error)
- func AuthenticatedSparkClientWithTimeout(auth bool, timeout time.Duration) (*spark.SparkClient, error)
- type ClaimCommand
- type DevicesCommand
- type ExecCommand
- type InfoCommand
- type InvalidateCommand
- type LoginCommand
- type LogoutCommand
- type ReadCommand
- type RenameCommand
- type TokensCommand
- type VersionCommand
Constants ¶
const (
SettingsFileName = ".sparkio"
)
Variables ¶
This section is empty.
Functions ¶
func AuthenticatedSparkClient ¶
func AuthenticatedSparkClient(auth bool) (*spark.SparkClient, error)
Types ¶
type ClaimCommand ¶
ClaimCommand is a Command implementation that tells spark cloud to claim given core
func (*ClaimCommand) Help ¶
func (c *ClaimCommand) Help() string
func (*ClaimCommand) Run ¶
func (c *ClaimCommand) Run(args []string) int
func (*ClaimCommand) Synopsis ¶
func (c *ClaimCommand) Synopsis() string
type DevicesCommand ¶
DevicesCommand is a Command implementation that tells a spark cloud to list all devices associated with account identified by access token
func (*DevicesCommand) Help ¶
func (c *DevicesCommand) Help() string
func (*DevicesCommand) Run ¶
func (c *DevicesCommand) Run(args []string) int
func (*DevicesCommand) Synopsis ¶
func (c *DevicesCommand) Synopsis() string
type ExecCommand ¶
ExecCommand is a Command implementation which remotely executes a function on the core
func (*ExecCommand) Help ¶
func (c *ExecCommand) Help() string
func (*ExecCommand) Run ¶
func (c *ExecCommand) Run(args []string) int
func (*ExecCommand) Synopsis ¶
func (c *ExecCommand) Synopsis() string
type InfoCommand ¶
InfoCommand is a Command implementation which retrieves info about the coreId from spark cloud
func (*InfoCommand) Help ¶
func (c *InfoCommand) Help() string
func (*InfoCommand) Run ¶
func (c *InfoCommand) Run(args []string) int
func (*InfoCommand) Synopsis ¶
func (c *InfoCommand) Synopsis() string
type InvalidateCommand ¶
DeleteCommand is a Command implementation that deletes a given access token from spark cloud
func (*InvalidateCommand) Help ¶
func (c *InvalidateCommand) Help() string
func (*InvalidateCommand) Run ¶
func (c *InvalidateCommand) Run(args []string) int
func (*InvalidateCommand) Synopsis ¶
func (c *InvalidateCommand) Synopsis() string
type LoginCommand ¶
LoginCommand is a Command implementation that attempts to log in to spark cloud
func (*LoginCommand) Help ¶
func (c *LoginCommand) Help() string
func (*LoginCommand) Run ¶
func (c *LoginCommand) Run(args []string) int
func (*LoginCommand) Synopsis ¶
func (c *LoginCommand) Synopsis() string
type LogoutCommand ¶
LogoutCommand is a Command implementation that attempts to delete the access token stored locally
func (*LogoutCommand) Help ¶
func (c *LogoutCommand) Help() string
func (*LogoutCommand) Run ¶
func (c *LogoutCommand) Run(args []string) int
func (*LogoutCommand) Synopsis ¶
func (c *LogoutCommand) Synopsis() string
type ReadCommand ¶
ReadCommand is a Command implementation that reads the value of a variable exposed by the spark core
func (*ReadCommand) Help ¶
func (c *ReadCommand) Help() string
func (*ReadCommand) Run ¶
func (c *ReadCommand) Run(args []string) int
func (*ReadCommand) Synopsis ¶
func (c *ReadCommand) Synopsis() string
type RenameCommand ¶
RenameCommand is a Command implementation that tells spark cloud to rename a given core
func (*RenameCommand) Help ¶
func (c *RenameCommand) Help() string
func (*RenameCommand) Run ¶
func (c *RenameCommand) Run(args []string) int
func (*RenameCommand) Synopsis ¶
func (c *RenameCommand) Synopsis() string
type TokensCommand ¶
TokensCommand is a Command implementation that list all oauth tokens from spark cloud
func (*TokensCommand) Help ¶
func (c *TokensCommand) Help() string
func (*TokensCommand) Run ¶
func (c *TokensCommand) Run(args []string) int
func (*TokensCommand) Synopsis ¶
func (c *TokensCommand) Synopsis() string
type VersionCommand ¶
VersionCommand is a Command implementation which prints the version.
func (*VersionCommand) Help ¶
func (c *VersionCommand) Help() string
func (*VersionCommand) Run ¶
func (c *VersionCommand) Run(_ []string) int
func (*VersionCommand) Synopsis ¶
func (c *VersionCommand) Synopsis() string