helm

package
v0.0.0-...-62f101d Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const CHART_MEDIA_TYPE = "application/vnd.cncf.helm.chart.content.v1.tar+gzip"
View Source
const MANIFEST_MEDIA_TYPE = "application/vnd.oci.image.manifest.v1+json"

Variables

This section is empty.

Functions

This section is empty.

Types

type Chart

type Chart struct {
	HelmVersion string
	AppVersion  string
	Images      []Image
}

type Client

type Client struct {
	CacheDir string
}

func NewClient

func NewClient(cacheDir string) (Client, error)

func (Client) GetChart

func (c Client) GetChart(repo, chrt, version string) (Chart, error)

Set version to "" to get the latest chart

type Image

type Image struct{ Repo, Version string }

type Index

type Index struct {
	// The chart versions are sorted in reverse chronological order, the latest one comes first
	Entries map[string][]chartVersion
}

type Manifest

type Manifest struct {
	MediaType string `json:"mediaType"`
	Digest    string `json:"digest"`
}

type Manifests

type Manifests struct {
	Config Manifest   `json:"config"`
	Layers []Manifest `json:"layers"`
}

Jump to

Keyboard shortcuts

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