cmd

package
v0.0.0-...-1a2a7be Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2017 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Username string
	Password string
)
View Source
var (
	ExecutorID   string
	ExecutorName string
	ExecutorPack string
	ExecutorData string
)
View Source
var (
	ProjectID   string
	ProjectName string
)
View Source
var (
	TaskID   string
	TaskName string
	TaskData string
)
View Source
var (
	AgentTokenName string
)
View Source
var (
	JarvisHomePath string
)
View Source
var RootCmd = &cobra.Command{
	Use:   "jarvis3",
	Short: "A Distributed Computing System on Browser",
}

This represents the base command when called without any subcommands

Functions

func Execute

func Execute()

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func LoadEnvironmentFromConfigure

func LoadEnvironmentFromConfigure(cfg Configure) utils.Environment

func NewClientLogger

func NewClientLogger() log.Logger

func NewComputingClientForClient

func NewComputingClientForClient(logger log.Logger) (computing_service.Service, error)

func NewSigningClientForClient

func NewSigningClientForClient(logger log.Logger) (signing_service.Service, error)

func NewSigningClientForClientWithoutEnvironment

func NewSigningClientForClientWithoutEnvironment(logger log.Logger) (signing_service.Service, error)

func NewSigningClientForService

func NewSigningClientForService(logger log.Logger) (signing_service.Service, error)

Types

type ComputingConfigure

type ComputingConfigure struct {
	Host string
}

type Configure

type Configure struct {
	Host        string
	UserID      string
	Username    string
	AccessToken string
}

func LoadConfigure

func LoadConfigure() Configure

type SigningConfigure

type SigningConfigure struct {
	Host        string
	UserID      string
	AccessToken string
}

Jump to

Keyboard shortcuts

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