cmd

package
v0.1.1-rc Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2018 License: Apache-2.0, CC-BY-4.0, MIT Imports: 28 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasicAuth

BasicAuth returns the basic auth credentials.

func DownloadCmdCompletion

func DownloadCmdCompletion(c *cli.Context)

DownloadCmdCompletion provide bash auto completion options

func EMetricsCompletion

func EMetricsCompletion(c *cli.Context)

EMetricsCompletion provide bash auto completion options

func InitCmdCompletion

func InitCmdCompletion(c *cli.Context)

InitCmdCompletion provide bash auto completion options

func IsValidManifest

func IsValidManifest(manifest []byte) bool

IsValidManifest returns true if the data is a valid manifest file.

func IsValidZip

func IsValidZip(zipFile string) bool

IsValidZip returns true of the path points to a valid zip file.

func LocationToID

func LocationToID(location string) string

LocationToID return the ID component of a DLaaS Location header. For example:

/dlaas/api/v1/models/training-gQYXhh2gg -> training-gQYXhh2gg

func LoglinesCompletion

func LoglinesCompletion(c *cli.Context)

LoglinesCompletion provide bash auto completion options

func ModelIDCompletion

func ModelIDCompletion(c *cli.Context)

ModelIDCompletion provide bash auto completion options for a model ID.

func NewDlaaSClient

func NewDlaaSClient() (*dlaasClient.Dlaas, error)

NewDlaaSClient is a helper for creating a new DLaaS REST API client with the right endpoint.

func SetBuildstamp

func SetBuildstamp(bstamp string)

SetBuildstamp sets the build stamp on this component

func SetGithash

func SetGithash(ghash string)

SetGithash set the git hash on this component

func TrainCmdCompletion

func TrainCmdCompletion(c *cli.Context)

TrainCmdCompletion provide bash auto completion options

func TrainingLogsCompletion

func TrainingLogsCompletion(c *cli.Context)

TrainingLogsCompletion provide bash auto completion options

Types

type DeleteCmd

type DeleteCmd struct {
	// contains filtered or unexported fields
}

DeleteCmd is the struct to delete a model.

func NewDeleteCmd

func NewDeleteCmd(ui terminal.UI, context plugin.PluginContext) *DeleteCmd

NewDeleteCmd is used to delete a model.

func (*DeleteCmd) Run

func (cmd *DeleteCmd) Run(cliContext *cli.Context) error

Run is the handler for the model-delete CLI command.

type DownloadCmd

type DownloadCmd struct {
	// contains filtered or unexported fields
}

DownloadCmd is the struct to download a trained model

func NewDownloadCmd

func NewDownloadCmd(ui terminal.UI, context plugin.PluginContext) *DownloadCmd

NewDownloadCmd is used to get a training job's info.

func (*DownloadCmd) Run

func (cmd *DownloadCmd) Run(cliContext *cli.Context) error

Run is the handler for the training-show CLI command.

type EmetricsCmd

type EmetricsCmd struct {
	// contains filtered or unexported fields
}

EmetricsCmd represents the instance of this command

func NewEmetricsCmd

func NewEmetricsCmd(ui terminal.UI, context plugin.PluginContext) *EmetricsCmd

NewEmetricsCmd creates a new instance of this command

func (*EmetricsCmd) Run

func (cmd *EmetricsCmd) Run(cliContext *cli.Context) error

Run is the handler for the emetrics CLI command.

type HaltCmd

type HaltCmd struct {
	// contains filtered or unexported fields
}

HaltCmd is the struct to get a training job.

func NewHaltCmd

func NewHaltCmd(ui terminal.UI, context plugin.PluginContext) *HaltCmd

NewHaltCmd is used to get a training job's info.

func (*HaltCmd) Run

func (cmd *HaltCmd) Run(cliContext *cli.Context) error

Run is the handler for the training-show CLI command.

type InitCmd

type InitCmd struct {
	// contains filtered or unexported fields
}

InitCmd is the struct to create a new project template.

func NewInitCmd

func NewInitCmd(ui terminal.UI, context plugin.PluginContext) *InitCmd

NewInitCmd is used to create a new project template.

func (*InitCmd) Run

func (cmd *InitCmd) Run(ctx *cli.Context) error

Run is the handler for the project-template CLI command.

type ListCmd

type ListCmd struct {
	// contains filtered or unexported fields
}

ListCmd is the struct to get all models.

func NewListCmd

func NewListCmd(ui terminal.UI, context plugin.PluginContext) *ListCmd

NewListCmd is used to get all models.

func (*ListCmd) Run

func (cmd *ListCmd) Run(cliContext *cli.Context) error

Run is the handler for the model-list CLI command.

type LoglinesCmd

type LoglinesCmd struct {
	// contains filtered or unexported fields
}

LoglinesCmd represents the instance of this command

func NewLoglinesCmd

func NewLoglinesCmd(ui terminal.UI, context plugin.PluginContext) *LoglinesCmd

NewLoglinesCmd creates a new instance of this command

func (*LoglinesCmd) Run

func (cmd *LoglinesCmd) Run(cliContext *cli.Context) error

Run is the handler for the loglines CLI command.

type LogsCmd

type LogsCmd struct {
	// contains filtered or unexported fields
}

LogsCmd represents the instance of this command

func NewLogsCmd

func NewLogsCmd(ui terminal.UI, context plugin.PluginContext) *LogsCmd

NewLogsCmd creates a new instance of this command

func (*LogsCmd) Run

func (cmd *LogsCmd) Run(cliContext *cli.Context) error

Run is the handler for the training-show CLI command.

type ShowCmd

type ShowCmd struct {
	// contains filtered or unexported fields
}

ShowCmd is the struct to get details of the model/training.

func NewShowCmd

func NewShowCmd(ui terminal.UI, context plugin.PluginContext) *ShowCmd

NewShowCmd is used to get a model's info.

func (*ShowCmd) Run

func (cmd *ShowCmd) Run(cliContext *cli.Context) error

Run is the handler for the model-show CLI command.

type TrainCmd

type TrainCmd struct {
	// contains filtered or unexported fields
}

TrainCmd is the struct to deploy a model.

func NewTrainCmd

func NewTrainCmd(ui terminal.UI, context plugin.PluginContext) *TrainCmd

NewTrainCmd is used to deploy a model's.

func (*TrainCmd) Run

func (cmd *TrainCmd) Run(cliContext *cli.Context) error

Run is the handler for the model-deploy CLI command.

type Version

type Version struct {
	// contains filtered or unexported fields
}

Version is the struct to show model git hash and build time

func NewVersion

func NewVersion(ui terminal.UI, context plugin.PluginContext) *Version

NewVersion creates a new instance of this command

func (*Version) Run

func (cmd *Version) Run(cliContext *cli.Context) error

Run is the handler for the version CLI command.

Jump to

Keyboard shortcuts

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