pkgcmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommandUse         output.Command = "package use"
	CommandDrop        output.Command = "package drop"
	CommandRefresh     output.Command = "package refresh"
	CommandStatus      output.Command = "package status"
	CommandConfigShow  output.Command = "package config show"
	CommandConfigSet   output.Command = "package config set"
	CommandConfigUnset output.Command = "package config unset"
)
View Source
const (
	CommandList  output.Command = "package list"
	KindPackages output.Kind    = "packages"
)
View Source
const (
	CommandShow output.Command = "package show"
	KindTree    output.Kind    = "tree"
)
View Source
const KindConfig output.Kind = "config"

Variables

This section is empty.

Functions

func ConfigSet

func ConfigSet(req ConfigSetRequest) output.Outcome

func ConfigShow

func ConfigShow(req ConfigShowRequest) output.Outcome

func ConfigUnset

func ConfigUnset(req ConfigUnsetRequest) output.Outcome

func Drop

func Drop(req DropRequest) output.Outcome

func List

func List(req ListRequest) output.Outcome

func Refresh

func Refresh(req RefreshRequest) output.Outcome

func Show

func Show(req ShowRequest) output.Outcome

func Status

func Status(req StatusRequest) output.Outcome

func Use

func Use(req UseRequest) output.Outcome

Types

type ConfigFile

type ConfigFile struct {
	Path       string `json:"path"`
	Deploy     string `json:"deploy"`
	Mode       string `json:"mode,omitempty"`
	Configured bool   `json:"configured"`
}

type ConfigPayload

type ConfigPayload struct {
	Source       string       `json:"source"`
	Package      string       `json:"package"`
	ManifestPath string       `json:"manifestPath,omitempty"`
	Files        []ConfigFile `json:"files"`
}

type ConfigSetRequest

type ConfigSetRequest struct {
	Ref       string
	Path      string
	Deploy    string
	Mode      string
	SetDeploy bool
	SetMode   bool
	SourceID  string
	Context   string
}

type ConfigShowRequest

type ConfigShowRequest struct {
	Ref      string
	Path     string
	SourceID string
	Context  string
}

type ConfigUnsetRequest

type ConfigUnsetRequest struct {
	Ref         string
	Path        string
	UnsetDeploy bool
	UnsetMode   bool
	SourceID    string
	Context     string
}

type DropRequest

type DropRequest struct {
	Refs     []string
	SourceID string
	Context  string
	Apply    bool
}

type ListPayload

type ListPayload struct {
	Source   string   `json:"source"`
	Packages []string `json:"packages"`
}

type ListRequest

type ListRequest struct {
	SourceID string
	Context  string
}

type RefreshRequest

type RefreshRequest struct {
	Refs     []string
	SourceID string
	Context  string
	Apply    bool
}

type ShowRequest

type ShowRequest struct {
	SourceID string
	Context  string
	Ref      string
}

type StatusRequest

type StatusRequest struct {
	Ref      string
	SourceID string
	Context  string
}

type UseRequest

type UseRequest struct {
	Refs     []string
	All      bool
	SourceID string
	Context  string
	Apply    bool
}

Jump to

Keyboard shortcuts

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