repo

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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNameEmpty = errors.New("repository name is empty")
	ErrURLEmpty  = errors.New("repository url is empty")
)

Functions

func IndexOfName

func IndexOfName(a []Config, name string) (int, bool)

IndexOfName searches repository in slice of repositories by name. Returns offset.

func NewDuplicateError

func NewDuplicateError(name string) error

func NewInvalidURLError

func NewInvalidURLError(url string) error

func NewNotFoundError

func NewNotFoundError(name string) error

Types

type Config

type Config interface {
	log.LoggerGetter
	Install(context.Context, *helm.EnvSettings, *repo.File) error
	Name() string
	URL() string
	Validate() error
}

Config is an interface to manage particular helm repository.

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 {
	Name string
}

func (DuplicateError) Error

func (err DuplicateError) Error() string

type InvalidURLError

type InvalidURLError struct {
	URL string
}

func (InvalidURLError) Error

func (err InvalidURLError) Error() string

type NotFoundError

type NotFoundError struct {
	Name string
}

func (NotFoundError) Error

func (err NotFoundError) Error() string

Jump to

Keyboard shortcuts

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