pack

package
v0.0.0-...-1650ebf Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Export

func Export(ctx context.Context, cache Cache, endpoint, path string, client *regclient.RegClient, p helm.Package, images ...ProtoImage) error

func ExportChart

func ExportChart(ctx context.Context, client *regclient.RegClient, src ref.Ref) (helm.Chart, error)

func Registry

func Registry(ctx context.Context, registry string, m helm.ChartManager, p helm.Package) (helm.Package, error)

func ResolvePackageSpec

func ResolvePackageSpec(ctx context.Context, endpoint, name string, in helm.PackageSpec, reg *regclient.RegClient, chttp *goHttp.Client) (helm.Chart, error)

Types

type Cache

type Cache interface {
	CacheObject(checksum string, path string, args ...any) (io.WriteCloser, error)

	Get(checksum string, path string, args ...any) (io.ReadCloser, error)

	Saved() int
}

func NewCache

func NewCache(path string) Cache

type Proto

type Proto struct {
	Charts ProtoCharts `json:"charts,omitempty"`

	Manifests map[string]string `json:"manifests,omitempty"`
}

func Import

func Import(ctx context.Context, path string, client *regclient.RegClient, registry string) (Proto, *helm.Package, error)

type ProtoChart

type ProtoChart struct {
	Version string `json:"version"`

	Images ProtoImages `json:"images,omitempty"`
}

type ProtoCharts

type ProtoCharts map[string]ProtoChart

type ProtoImage

type ProtoImage struct {
	Registry *string `json:"registry,omitempty"`
	Image    string  `json:"image,omitempty"`
	Tag      string  `json:"tag,omitempty"`
	Kind     *string `json:"kind,omitempty"`
}

func (ProtoImage) GetImage

func (p ProtoImage) GetImage() string

func (ProtoImage) GetShortImage

func (p ProtoImage) GetShortImage() string

func (ProtoImage) IsTest

func (p ProtoImage) IsTest() bool

type ProtoImages

type ProtoImages map[string]ProtoImage

type ProtoValues

type ProtoValues struct {
	Images ProtoImages `json:"images,omitempty"`
}

Jump to

Keyboard shortcuts

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