command

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2014 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SettingsFileName = ".sparkio"
)

Variables

This section is empty.

Functions

func AuthenticatedSparkClient

func AuthenticatedSparkClient(auth bool) (*spark.SparkClient, error)

func AuthenticatedSparkClientWithTimeout

func AuthenticatedSparkClientWithTimeout(auth bool, timeout time.Duration) (*spark.SparkClient, error)

Types

type ClaimCommand

type ClaimCommand struct {
	Ui cli.Ui
}

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

type DevicesCommand struct {
	Ui cli.Ui
}

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

type ExecCommand struct {
	Ui cli.Ui
}

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

type InfoCommand struct {
	Ui cli.Ui
}

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

type InvalidateCommand struct {
	Ui cli.Ui
}

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

type LoginCommand struct {
	Ui cli.Ui
}

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

type LogoutCommand struct {
	Ui cli.Ui
}

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

type ReadCommand struct {
	Ui cli.Ui
}

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

type RenameCommand struct {
	Ui cli.Ui
}

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

type TokensCommand struct {
	Ui cli.Ui
}

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

type VersionCommand struct {
	Version string
	Ui      cli.Ui
}

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

Jump to

Keyboard shortcuts

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