Documentation ¶
Index ¶
- func BasicAuth() oapiRuntime.ClientAuthInfoWriter
- func DownloadCmdCompletion(c *cli.Context)
- func EMetricsCompletion(c *cli.Context)
- func InitCmdCompletion(c *cli.Context)
- func IsValidManifest(manifest []byte) bool
- func IsValidZip(zipFile string) bool
- func LocationToID(location string) string
- func LoglinesCompletion(c *cli.Context)
- func ModelIDCompletion(c *cli.Context)
- func NewDlaaSClient() (*dlaasClient.Dlaas, error)
- func SetBuildstamp(bstamp string)
- func SetGithash(ghash string)
- func TrainCmdCompletion(c *cli.Context)
- func TrainingLogsCompletion(c *cli.Context)
- type DeleteCmd
- type DownloadCmd
- type EmetricsCmd
- type HaltCmd
- type InitCmd
- type ListCmd
- type LoglinesCmd
- type LogsCmd
- type ShowCmd
- type TrainCmd
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BasicAuth ¶
func BasicAuth() oapiRuntime.ClientAuthInfoWriter
BasicAuth returns the basic auth credentials.
func DownloadCmdCompletion ¶
DownloadCmdCompletion provide bash auto completion options
func EMetricsCompletion ¶
EMetricsCompletion provide bash auto completion options
func InitCmdCompletion ¶
InitCmdCompletion provide bash auto completion options
func IsValidManifest ¶
IsValidManifest returns true if the data is a valid manifest file.
func IsValidZip ¶
IsValidZip returns true of the path points to a valid zip file.
func LocationToID ¶
LocationToID return the ID component of a DLaaS Location header. For example:
/dlaas/api/v1/models/training-gQYXhh2gg -> training-gQYXhh2gg
func LoglinesCompletion ¶
LoglinesCompletion provide bash auto completion options
func ModelIDCompletion ¶
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 TrainCmdCompletion ¶
TrainCmdCompletion provide bash auto completion options
func TrainingLogsCompletion ¶
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.
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.
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
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.
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.
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.
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
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
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.
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.
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