helm

package
v0.0.0-...-ebf29b9 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GroupChangesByRepo

func GroupChangesByRepo(changes []*LineHelmChange) map[string][]*LineHelmChange

func LoadFromReader

func LoadFromReader(ctx context.Context, reader io.Reader, logger *zapctx.Logger) (*repo.IndexFile, error)

Types

type ChangeParser

type ChangeParser struct {
	Logger *zapctx.Logger
}

func (*ChangeParser) LoadVersions

func (c *ChangeParser) LoadVersions(_ context.Context, change *LineHelmChange, index *repo.IndexFile) (*VersionChange, error)

type HTTPLoader

type HTTPLoader struct {
	Logger *zapctx.Logger
	Client *http.Client
}

func (*HTTPLoader) LoadIndexFile

func (h *HTTPLoader) LoadIndexFile(ctx context.Context, url string) (*repo.IndexFile, error)

type IndexLoader

type IndexLoader interface {
	LoadIndexFile(ctx context.Context, repo string) (*repo.IndexFile, error)
}

type LineHelmChange

type LineHelmChange struct {
	UpgradeInfo              UpgradeInfo
	CurrentVersionLine       string
	CurrentVersionLineNumber int
}

func ParseHelmReleaseYAML

func ParseHelmReleaseYAML(lines []string) ([]*LineHelmChange, error)

type RepoInfoLoader

type RepoInfoLoader struct {
	Client          *http.Client
	Logger          *zapctx.Logger
	LoadersByScheme map[string]IndexLoader
	Cache           cache.Cache
}

func (*RepoInfoLoader) LoadIndexFile

func (r *RepoInfoLoader) LoadIndexFile(ctx context.Context, repoURL string) (*repo.IndexFile, error)

type S3Loader

type S3Loader struct {
	Logger *zapctx.Logger
	Client *s3.S3
}

func (*S3Loader) LoadIndexFile

func (h *S3Loader) LoadIndexFile(ctx context.Context, urlStr string) (*repo.IndexFile, error)

type UpgradeInfo

type UpgradeInfo struct {
	Repository        string
	ChartName         string
	CurrentVersion    string
	VersionConstraint string
	AutoMerge         *bool
	AutoApprove       *bool
}

type VersionChange

type VersionChange struct {
	PreviousLine string
	NewLine      string
	NewVersion   string
	LineNumber   int
}

Jump to

Keyboard shortcuts

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