model

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: EPL-2.0 Imports: 10 Imported by: 0

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

type PruneResult struct {
	Human string
	Data  map[string]any
}

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

type PullResult struct {
	Data  map[string]any
	Human string
}

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

type RemoveResult struct {
	Human string
	Data  map[string]any
}

RemoveResult carries model remove outcome.

func Remove

func Remove(client run.EdgeletAPIClient, name string) (*RemoveResult, error)

Remove deletes one deployed model by metadata.name.

Jump to

Keyboard shortcuts

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