knowledge

package
v1.1.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Sep 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 knowledge command examples for Cobra.

func CommandLong

func CommandLong() string

CommandLong returns the knowledge command group introduction.

func PullCommandLong

func PullCommandLong() string

PullCommandLong returns the knowledge pull command introduction.

Types

type PruneResult

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

PruneResult carries knowledge prune outcome.

func Prune

func Prune(client run.EdgeletAPIClient, args []string) (*PruneResult, error)

Prune removes unreferenced knowledge artifacts.

type PullRequest

type PullRequest struct {
	Name       string
	Repo       string
	Revision   string
	RegistryID int
	Files      []string
	Format     string
}

PullRequest carries knowledge pull options.

type PullResult

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

PullResult is the knowledge pull command outcome.

func Pull

func Pull(ctx context.Context, api run.EdgeletAPIClient, uiProgress *ui.UI, req PullRequest) (*PullResult, error)

Pull starts an async knowledge pull and waits until it finishes.

type RemoveResult

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

RemoveResult carries knowledge remove outcome.

func Remove

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

Remove deletes one deployed knowledge by metadata.name.

Jump to

Keyboard shortcuts

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