Documentation ¶
Index ¶
- Constants
- func BytesToChart(data []byte) (*chart.Chart, error)
- func ChartToBytes(ch *chart.Chart) ([]byte, error)
- func Copy(ctx context.Context, fromAddr, toAddr *Addr, opts CopyOptions) error
- func Publish(ctx context.Context, bundle *chart_extender.Bundle, bundleRef string, ...) error
- func Pull(ctx context.Context, bundleRef, destDir string, ...) error
- type Addr
- type ArchiveAddress
- type Bundle
- type BundleArchive
- func (bundle *BundleArchive) GetImageArchiveOpener(imageTag string) *ImageArchiveOpener
- func (bundle *BundleArchive) Open() error
- func (bundle *BundleArchive) ReadChartArchive() ([]byte, error)
- func (bundle *BundleArchive) ReadImageArchive(imageTag string) (*ImageArchiveReadCloser, error)
- func (bundle *BundleArchive) Save() error
- func (bundle *BundleArchive) WriteChartArchive(data []byte) error
- func (bundle *BundleArchive) WriteImageArchive(imageTag string, data []byte) error
- type BundleArchiveReader
- type BundleArchiveWriter
- type CopyOptions
- type ImageArchiveOpener
- type ImageArchiveReadCloser
- type RegistryAddress
- type RemoteBundle
Constants ¶
View Source
const ( ArchiveSchema = "archive:" RegistrySchema = "docker://" )
Variables ¶
This section is empty.
Functions ¶
func Copy ¶ added in v1.2.92
func Copy(ctx context.Context, fromAddr, toAddr *Addr, opts CopyOptions) error
Types ¶
type Addr ¶ added in v1.2.169
type Addr struct { *ArchiveAddress *RegistryAddress }
type ArchiveAddress ¶ added in v1.2.169
type ArchiveAddress struct {
Path string
}
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 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
type RegistryAddress ¶ added in v1.2.169
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
Click to show internal directories.
Click to hide internal directories.