registry

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ISO8601Time

type ISO8601Time time.Time

func (ISO8601Time) MarshalYAML

func (i ISO8601Time) MarshalYAML() (interface{}, error)

func (*ISO8601Time) UnmarshalYAML

func (i *ISO8601Time) UnmarshalYAML(node *yaml.Node) error

type Plugin

type Plugin struct {
	Name        string          `yaml:"name"`
	Description string          `yaml:"description"`
	Homepage    string          `yaml:"homepage"`
	LastUpdated ISO8601Time     `yaml:"lastUpdated"`
	Authors     []PluginAuthor  `yaml:"authors"`
	Versions    []PluginVersion `yaml:"versions"`
}

type PluginAuthor

type PluginAuthor struct {
	Name    string `yaml:"name"`
	Email   string `yaml:"email"`
	Company string `yaml:"company,omitempty"`
}

type PluginExecutable

type PluginExecutable struct {
	Locator string     `yaml:"locator"`
	Type    PluginType `yaml:"type"`
	Info    struct {
		ExtraArgs []string `yaml:"args,omitempty"`
		Checksum  string   `yaml:"sha256sum,omitempty"`
	} `yaml:"info"`
}

type PluginRegistry

type PluginRegistry struct {
	Name    string   `yaml:"name"`
	BaseURL string   `yaml:"baseURL"`
	Plugins []Plugin `yaml:"plugins,omitempty"`
}

type PluginType

type PluginType string
const (
	Native PluginType = "native"
	Python PluginType = "python"
	NodeJS PluginType = "nodejs"
	Java   PluginType = "java"
)

type PluginVersion

type PluginVersion struct {
	Version      string                                  `yaml:"version"`
	DownloadInfo map[TargetArchitecture]PluginExecutable `yaml:"download"`
}

type TargetArchitecture

type TargetArchitecture string
const (
	DarwinAmd64     TargetArchitecture = "darwin/amd64"
	DarwinArm64     TargetArchitecture = "darwin/arm64"
	DarwinUniversal TargetArchitecture = "darwin/universal"
	LinuxAmd64      TargetArchitecture = "linux/amd64"
	LinuxArm64      TargetArchitecture = "linux/arm64"
	WindowsAmd64    TargetArchitecture = "windows/amd64"
	WindowsArm64    TargetArchitecture = "windows/arm64"
	MultiArch       TargetArchitecture = "multi-arch"
)

Jump to

Keyboard shortcuts

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