registry

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: MIT Imports: 10 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) (int, bool)

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

func NewDuplicateError

func NewDuplicateError(host string) error

func NewLoginError

func NewLoginError(err error) error

func NewNotFoundError

func NewNotFoundError(host string) error

func NewYAMLDecodeError

func NewYAMLDecodeError(err error) error

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

type Configs []Config

Configs type of array Config.

func (Configs) JSONSchema

func (Configs) JSONSchema() *jsonschema.Schema

func (*Configs) UnmarshalYAML

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

type DuplicateError struct {
	Host string
}

func (DuplicateError) Error

func (err DuplicateError) Error() string

type LoginError

type LoginError struct {
	Err error
}

func (LoginError) Error

func (err LoginError) Error() string

func (LoginError) Unwrap

func (err LoginError) Unwrap() error

type NotFoundError

type NotFoundError struct {
	Host string
}

func (NotFoundError) Error

func (err NotFoundError) Error() string

type YAMLDecodeError

type YAMLDecodeError struct {
	Err error
}

func (YAMLDecodeError) Error

func (err YAMLDecodeError) Error() string

func (YAMLDecodeError) Unwrap

func (err YAMLDecodeError) Unwrap() error

Jump to

Keyboard shortcuts

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