registry

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry added in v1.1.0

type Entry struct {
	Name        string            `yaml:"name"`
	Version     string            `yaml:"version"`
	OS          string            `json:"os"`
	Arch        string            `json:"arch"`
	Annotations map[string]string `yaml:"annotations"`
	URL         string            `yaml:"url"`
	Checksum    string            `yaml:"checksum"`
}

type Index added in v1.1.0

type Index struct {
	Meta        config.Metadata   `yaml:"-"`
	APIVersion  string            `yaml:"apiVersion,omitempty"`
	Kind        string            `yaml:"kind,omitempty"`
	Annotations map[string]string `yaml:"annotations"`
	Entries     []Entry           `yaml:"entries"`
}

type Registry

type Registry interface {
	Update() error
	GetHighestBreaking(dep dependency.Dependency) (*Entry, error)
	GetHighestNonBreaking(dep dependency.Dependency) (*Entry, error)
	GetExactMatch(dep dependency.Dependency) (*Entry, error)
}

func NewLocal added in v1.1.0

func NewLocal(registryPath string) Registry

NewLocal returns new registry instance hosted locally.

func NewRemote added in v1.1.0

func NewRemote(registryUrl string) Registry

NewRemote returns new registry instance hosted on http server.

type Version

type Version string

func (Version) GreaterThan

func (ver Version) GreaterThan(ver2 Version) bool

func (Version) Match

func (ver Version) Match(constraint string) bool

Jump to

Keyboard shortcuts

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