bundles

package
v1.2.169 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: Apache-2.0 Imports: 23 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ArchiveSchema  = "archive:"
	RegistrySchema = "docker://"
)

Variables

This section is empty.

Functions

func BytesToChart added in v1.2.169

func BytesToChart(data []byte) (*chart.Chart, error)

func ChartToBytes added in v1.2.169

func ChartToBytes(ch *chart.Chart) ([]byte, error)

func Copy added in v1.2.92

func Copy(ctx context.Context, fromAddr, toAddr *Addr, opts CopyOptions) error

func Publish

func Publish(ctx context.Context, bundle *chart_extender.Bundle, bundleRef string, bundlesRegistryClient *registry.Client) error

func Pull

func Pull(ctx context.Context, bundleRef, destDir string, bundlesRegistryClient *registry.Client) error

Types

type Addr added in v1.2.169

type Addr struct {
	*ArchiveAddress
	*RegistryAddress
}

func ParseAddr added in v1.2.169

func ParseAddr(addr string) (*Addr, error)

func (*Addr) String added in v1.2.169

func (addr *Addr) String() string

type ArchiveAddress added in v1.2.169

type ArchiveAddress struct {
	Path string
}

type Bundle added in v1.2.169

type Bundle interface{}

type BundleArchive added in v1.2.169

type BundleArchive struct {
	Path string
	// contains filtered or unexported fields
}

func NewBundleArchive added in v1.2.169

func NewBundleArchive(path string) *BundleArchive

func (*BundleArchive) GetImageArchiveOpener added in v1.2.169

func (bundle *BundleArchive) GetImageArchiveOpener(imageTag string) *ImageArchiveOpener

func (*BundleArchive) Open added in v1.2.169

func (bundle *BundleArchive) Open() error

func (*BundleArchive) ReadChartArchive added in v1.2.169

func (bundle *BundleArchive) ReadChartArchive() ([]byte, error)

func (*BundleArchive) ReadImageArchive added in v1.2.169

func (bundle *BundleArchive) ReadImageArchive(imageTag string) (*ImageArchiveReadCloser, error)

func (*BundleArchive) Save added in v1.2.169

func (bundle *BundleArchive) Save() error

func (*BundleArchive) WriteChartArchive added in v1.2.169

func (bundle *BundleArchive) WriteChartArchive(data []byte) error

func (*BundleArchive) WriteImageArchive added in v1.2.169

func (bundle *BundleArchive) WriteImageArchive(imageTag string, data []byte) error

type BundleArchiveReader added in v1.2.169

type BundleArchiveReader interface {
	ReadChartArchive() ([]byte, error)
	GetImageArchiveOpener(imageTag string) *ImageArchiveOpener
	ReadImageArchive(imageTag string) (*ImageArchiveReadCloser, error)
}

type BundleArchiveWriter added in v1.2.169

type BundleArchiveWriter interface {
	Open() error
	WriteChartArchive(data []byte) error
	WriteImageArchive(imageTag string, data []byte) error
	Save() error
}

type CopyOptions added in v1.2.169

type CopyOptions struct {
	BundlesRegistryClient    *bundles_registry.Client
	FromRegistry, ToRegistry docker_registry.Interface
}

type ImageArchiveOpener added in v1.2.169

type ImageArchiveOpener struct {
	Archive  *BundleArchive
	ImageTag string
}

func NewImageArchiveOpener added in v1.2.169

func NewImageArchiveOpener(archive *BundleArchive, imageTag string) *ImageArchiveOpener

func (*ImageArchiveOpener) Open added in v1.2.169

func (opener *ImageArchiveOpener) Open() (io.ReadCloser, error)

type ImageArchiveReadCloser added in v1.2.169

type ImageArchiveReadCloser struct {
	// contains filtered or unexported fields
}

func NewImageArchiveReadCloser added in v1.2.169

func NewImageArchiveReadCloser(reader io.Reader, closer func() error) *ImageArchiveReadCloser

func (*ImageArchiveReadCloser) Close added in v1.2.169

func (opener *ImageArchiveReadCloser) Close() error

func (*ImageArchiveReadCloser) Read added in v1.2.169

func (opener *ImageArchiveReadCloser) Read(p []byte) (int, error)

type RegistryAddress added in v1.2.169

type RegistryAddress struct {
	*registry.Reference
}

type RemoteBundle added in v1.2.169

type RemoteBundle struct {
	RegistryClient *bundles_registry.Client
}

func NewRemoteBundle added in v1.2.169

func NewRemoteBundle(registryClient *bundles_registry.Client) *RemoteBundle

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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