registry

package
v1.26.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: MIT Imports: 7 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchRequest

type BatchRequest struct {
	OS      string
	Arch    string
	Plugins []*BatchRequestPlugin
}

func (*BatchRequest) GetOSArch

func (b *BatchRequest) GetOSArch() string

func (*BatchRequest) Validate

func (b *BatchRequest) Validate() error

type BatchRequestPlugin

type BatchRequestPlugin struct {
	FullName          string
	VersionConstraint string
}

type BatchResponse

type BatchResponse struct {
	OS               string
	Arch             string
	Plugins          BatchResponsePlugins
	DownloadHash     string
	DownloadURL      string
	DownloadChecksum string
}

func NewBatchResponse

func NewBatchResponse(req *BatchRequest, plugins BatchResponsePlugins) *BatchResponse

func (*BatchResponse) CalculateHash

func (b *BatchResponse) CalculateHash()

func (*BatchResponse) GetOSArch

func (b *BatchResponse) GetOSArch() string

func (*BatchResponse) Hash

func (b *BatchResponse) Hash() []byte

func (*BatchResponse) VerifyHash

func (b *BatchResponse) VerifyHash() bool

type BatchResponsePlugin

type BatchResponsePlugin struct {
	*BatchRequestPlugin
	Version  string
	FileName string
	URL      string
	Checksum string
}

func NewBatchResponsePlugin

func NewBatchResponsePlugin(req *BatchRequestPlugin) *BatchResponsePlugin

func (*BatchResponsePlugin) Hash

func (b *BatchResponsePlugin) Hash() []byte

func (*BatchResponsePlugin) String

func (b *BatchResponsePlugin) String() string

type BatchResponsePlugins

type BatchResponsePlugins []*BatchResponsePlugin

func (BatchResponsePlugins) Has

func (b BatchResponsePlugins) Has(fullName string) bool

func (BatchResponsePlugins) Hash

func (b BatchResponsePlugins) Hash() []byte

func (BatchResponsePlugins) Len

func (b BatchResponsePlugins) Len() int

func (BatchResponsePlugins) Less

func (b BatchResponsePlugins) Less(i, j int) bool

func (BatchResponsePlugins) Swap

func (b BatchResponsePlugins) Swap(i, j int)

type Plugin

type Plugin struct {
	FullName      string
	Type          string
	Name          string
	URL           string
	LatestRelease *PluginRelease
	Versions      []string
	UpdatedAt     time.Time
}

type PluginAsset

type PluginAsset struct {
	FileName string
	URL      string
	OS       string
	Arch     string
	Checksum string
}

type PluginRelease

type PluginRelease struct {
	Version    string
	Prerelease bool
	CreatedAt  time.Time
	Assets     map[string]*PluginAsset
	UpdatedAt  time.Time
}

Jump to

Keyboard shortcuts

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