Documentation
¶
Index ¶
- Variables
- func IndexOfHost(a []Config, host string) (i int, found bool)
- func NewDuplicateError(host string) error
- func NewLoginError(err error) error
- func NewNotFoundError(host string) error
- func NewYAMLDecodeError(err error) error
- type Config
- type Configs
- type DuplicateError
- type LoginError
- type NotFoundError
- type YAMLDecodeError
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNameEmpty = errors.New("registry name is empty")
Functions ¶
func IndexOfHost ¶
IndexOfHost searches registry in slice of registries by host. Returns offset.
func NewDuplicateError ¶ added in v0.31.0
func NewLoginError ¶ added in v0.31.0
func NewNotFoundError ¶ added in v0.31.0
func NewYAMLDecodeError ¶ added in v0.31.0
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
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 LoginError ¶ added in v0.31.0
type LoginError struct {
Err error
}
func (LoginError) Error ¶ added in v0.31.0
func (err LoginError) Error() string
func (LoginError) Is ¶ added in v0.31.0
func (LoginError) Is(target error) bool
func (LoginError) Unwrap ¶ added in v0.31.0
func (err LoginError) Unwrap() error
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
type YAMLDecodeError ¶ added in v0.31.0
type YAMLDecodeError struct {
Err error
}
func (YAMLDecodeError) Error ¶ added in v0.31.0
func (err YAMLDecodeError) Error() string
func (YAMLDecodeError) Is ¶ added in v0.31.0
func (YAMLDecodeError) Is(target error) bool
func (YAMLDecodeError) Unwrap ¶ added in v0.31.0
func (err YAMLDecodeError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.