registry

package
v0.30.2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNameEmpty = errors.New("registry name is empty")

Functions

func IndexOfHost

func IndexOfHost(a []Config, host string) (i int, found bool)

IndexOfHost searches registry in slice of registries by host. Returns offset.

Types

type Config

type Config interface {
	log.LoggerGetter
	Install() error
	Host() string
	Validate() error
}

Config is an interface to manage particular helm reg.

type Configs added in v0.19.1

type Configs []Config

Configs type of array Config.

func (Configs) JSONSchema added in v0.23.0

func (Configs) JSONSchema() *jsonschema.Schema

func (*Configs) UnmarshalYAML added in v0.19.1

func (r *Configs) UnmarshalYAML(node *yaml.Node) error

UnmarshalYAML is an unmarshaller for gopkg.in/yaml.v3 to parse YAML into `Config` interface.

type DuplicateError added in v0.30.2

type DuplicateError struct {
	Host string
}

func (DuplicateError) Error added in v0.30.2

func (err DuplicateError) Error() string

func (DuplicateError) Is added in v0.30.2

func (DuplicateError) Is(target error) bool

type NotFoundError added in v0.30.2

type NotFoundError struct {
	Host string
}

func (NotFoundError) Error added in v0.30.2

func (err NotFoundError) Error() string

func (NotFoundError) Is added in v0.30.2

func (NotFoundError) Is(target error) bool

Jump to

Keyboard shortcuts

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