pkg

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(ctx context.Context, pkgDir, buildDir string) error

func Install added in v0.13.0

func Install(ctx context.Context, pkgDir string) error

Types

type Config

type Config struct {
	Source      string      `json:"source"`
	Description string      `json:"description"`
	Coordinates Coordinates `json:"coordinates"`
	Usage       Usage       `json:"usage"`
	Plugins     []Plugin    `json:"plugins"`
}

func ResolvePkgConfig

func ResolvePkgConfig(pkgDir string) (Config, error)

type Coordinates

type Coordinates struct {
	Branch string `json:"branch"`
	Path   string `json:"path"`
	Repo   string `json:"repo"`
}

type GithubPlugin added in v0.13.0

type GithubPlugin struct {
	Repo    string `json:"repo"`
	Version string `json:"version"`
}

func (GithubPlugin) Install added in v0.13.0

func (p GithubPlugin) Install(ctx context.Context, pluginsDir string) error

type Plugin added in v0.13.0

type Plugin struct {
	Github *GithubPlugin `json:"github"`
}

type Usage

type Usage struct {
	Name   string `json:"name"`
	Target string `json:"target"`
}

Directories

Path Synopsis
lib

Jump to

Keyboard shortcuts

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