bundles

package
v1.2.171 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 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 BundleAccessor added in v1.2.170

type BundleAccessor interface {
	ReadChart(ctx context.Context) (*chart.Chart, error)
	WriteChart(ctx context.Context, ch *chart.Chart) error

	CopyTo(ctx context.Context, to BundleAccessor) error
	CopyFromArchive(ctx context.Context, fromArchive *BundleArchive) error
	CopyFromRemote(ctx context.Context, fromRemote *RemoteBundle) error
}

func NewBundleAccessor added in v1.2.170

func NewBundleAccessor(addr *Addr, opts BundleAccessorOptions) BundleAccessor

type BundleAccessorOptions added in v1.2.170

type BundleAccessorOptions struct {
	BundlesRegistryClient BundlesRegistryClient
	RegistryClient        docker_registry.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) CopyFromArchive added in v1.2.170

func (bundle *BundleArchive) CopyFromArchive(ctx context.Context, fromArchive *BundleArchive) error

func (*BundleArchive) CopyFromRemote added in v1.2.170

func (bundle *BundleArchive) CopyFromRemote(ctx context.Context, fromRemote *RemoteBundle) error

func (*BundleArchive) CopyTo added in v1.2.170

func (bundle *BundleArchive) CopyTo(ctx context.Context, to BundleAccessor) error

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) ReadChart added in v1.2.170

func (bundle *BundleArchive) ReadChart(ctx context.Context) (*chart.Chart, 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) WriteChart added in v1.2.170

func (bundle *BundleArchive) WriteChart(ctx context.Context, ch *chart.Chart) 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 BundleReader added in v1.2.170

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

type BundleWriter added in v1.2.170

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

type BundlesRegistryClient added in v1.2.170

type BundlesRegistryClient interface {
	PullChartToCache(ref *bundles_registry.Reference) error
	LoadChart(ref *bundles_registry.Reference) (*chart.Chart, error)
	SaveChart(ch *chart.Chart, ref *bundles_registry.Reference) error
	PushChart(ref *bundles_registry.Reference) error
}

type CopyOptions added in v1.2.169

type CopyOptions struct {
	BundlesRegistryClient                BundlesRegistryClient
	FromRegistryClient, ToRegistryClient 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 {
	RegistryAddress       *RegistryAddress
	BundlesRegistryClient BundlesRegistryClient
	RegistryClient        docker_registry.Interface
}

func NewRemoteBundle added in v1.2.169

func NewRemoteBundle(registryAddress *RegistryAddress, bundlesRegistryClient BundlesRegistryClient, registryClient docker_registry.Interface) *RemoteBundle

func (*RemoteBundle) CopyFromArchive added in v1.2.170

func (bundle *RemoteBundle) CopyFromArchive(ctx context.Context, fromArchive *BundleArchive) error

func (*RemoteBundle) CopyFromRemote added in v1.2.170

func (bundle *RemoteBundle) CopyFromRemote(ctx context.Context, fromRemote *RemoteBundle) error

func (*RemoteBundle) CopyTo added in v1.2.170

func (bundle *RemoteBundle) CopyTo(ctx context.Context, to BundleAccessor) error

func (*RemoteBundle) ReadChart added in v1.2.170

func (bundle *RemoteBundle) ReadChart(ctx context.Context) (*chart.Chart, error)

func (*RemoteBundle) WriteChart added in v1.2.170

func (bundle *RemoteBundle) WriteChart(ctx context.Context, ch *chart.Chart) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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