spec

package
v0.4.12 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Formatter

type Formatter struct {
}

func (*Formatter) Encode

func (f *Formatter) Encode(obj any) (string, error)

type HelmRepository

type HelmRepository struct {
	Name string `yaml:"name"`
	URL  string `yaml:"url"`
}

HelmRepository is an individual repository entry in the Helm repository configuration.

type HelmRepositoryConfig

type HelmRepositoryConfig struct {
	Repositories []HelmRepository `yaml:"repositories"`
}

HelmRepositoryConfig is a container for Helm repository configurations.

func (*HelmRepositoryConfig) Load

func (c *HelmRepositoryConfig) Load() error

Load attempts to load the current Helm repository configuration.

func (*HelmRepositoryConfig) LookupURL

func (c *HelmRepositoryConfig) LookupURL(name string) (*url.URL, error)

LookupURL returns the repository URL for the specified name or an error if it cannot be found.

type Parser

type Parser struct {
	// Reader to use for the "-" specification.
	Reader io.Reader

	// Configuration of Helm repositories to consider when processing "helm://" URLs.
	HelmRepositoryConfig HelmRepositoryConfig
}

func (*Parser) Decode

func (p *Parser) Decode(spec string) (any, error)

Decode converts a string into a resource. The goal here is to be compatible with Kustomize where we overlap, (e.g. Git URLs), but there may be additional functionality handled here.

type URL

type URL struct {
	url.URL
}

func ParseURL

func ParseURL(rawurl string) (*URL, error)

func (*URL) String

func (u *URL) String() string

Jump to

Keyboard shortcuts

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