repo

package
Version: v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("repository not found")

ErrNotFound is an error for not declared repository name.

Functions

func IndexOf added in v0.12.0

func IndexOf(a []Config, rep Config) (i int, found bool)

IndexOf searches repository in slice of repositories. Returns offset.

func IndexOfName added in v0.12.0

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

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

Types

type Config

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

Config is an interface to manage particular helm repository.

func UnmarshalYAML added in v0.16.6

func UnmarshalYAML(node *yaml.Node) ([]Config, error)

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

type Configs added in v0.19.1

type Configs []Config

Configs type of array Config.

func (*Configs) UnmarshalYAML added in v0.19.1

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

UnmarshalYAML parse Config.

Jump to

Keyboard shortcuts

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