Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandExamples ¶
func CommandExamples() string
CommandExamples returns model command examples for Cobra.
func CommandLong ¶
func CommandLong() string
CommandLong returns the model command group introduction.
func PullCommandLong ¶
func PullCommandLong() string
PullCommandLong returns the model pull command introduction.
Types ¶
type PruneResult ¶
PruneResult carries model prune outcome.
func Prune ¶
func Prune(client run.EdgeletAPIClient, args []string) (*PruneResult, error)
Prune removes unreferenced model artifacts.
type PullRequest ¶
type PullRequest struct {
Name string
Repo string
Revision string
RegistryID int
Files []string
Format string
}
PullRequest carries model pull options.
type PullResult ¶
PullResult is the model pull command outcome.
func Pull ¶
func Pull(ctx context.Context, api run.EdgeletAPIClient, uiProgress *ui.UI, req PullRequest) (*PullResult, error)
Pull starts an async model pull and waits until it finishes.
type RemoveResult ¶
RemoveResult carries model remove outcome.
func Remove ¶
func Remove(client run.EdgeletAPIClient, name string) (*RemoveResult, error)
Remove deletes one deployed model by metadata.name.
Click to show internal directories.
Click to hide internal directories.