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 BundleAccessor
- type BundleAccessorOptions
- type BundleArchive
- func (bundle *BundleArchive) CopyFromArchive(ctx context.Context, fromArchive *BundleArchive) error
- func (bundle *BundleArchive) CopyFromRemote(ctx context.Context, fromRemote *RemoteBundle) error
- func (bundle *BundleArchive) CopyTo(ctx context.Context, to BundleAccessor) error
- func (bundle *BundleArchive) GetImageArchiveOpener(imageTag string) *ImageArchiveOpener
- func (bundle *BundleArchive) Open() error
- func (bundle *BundleArchive) ReadChart(ctx context.Context) (*chart.Chart, error)
- func (bundle *BundleArchive) ReadChartArchive() ([]byte, error)
- func (bundle *BundleArchive) ReadImageArchive(imageTag string) (*ImageArchiveReadCloser, error)
- func (bundle *BundleArchive) Save() error
- func (bundle *BundleArchive) WriteChart(ctx context.Context, ch *chart.Chart) error
- func (bundle *BundleArchive) WriteChartArchive(data []byte) error
- func (bundle *BundleArchive) WriteImageArchive(imageTag string, data []byte) error
- type BundleReader
- type BundleWriter
- type BundlesRegistryClient
- type CopyOptions
- type ImageArchiveOpener
- type ImageArchiveReadCloser
- type RegistryAddress
- type RemoteBundle
- func (bundle *RemoteBundle) CopyFromArchive(ctx context.Context, fromArchive *BundleArchive) error
- func (bundle *RemoteBundle) CopyFromRemote(ctx context.Context, fromRemote *RemoteBundle) error
- func (bundle *RemoteBundle) CopyTo(ctx context.Context, to BundleAccessor) error
- func (bundle *RemoteBundle) ReadChart(ctx context.Context) (*chart.Chart, error)
- func (bundle *RemoteBundle) WriteChart(ctx context.Context, ch *chart.Chart) error
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 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) 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 (*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 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
type RegistryAddress ¶ added in v1.2.169
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) WriteChart ¶ added in v1.2.170
Source Files
¶
Click to show internal directories.
Click to hide internal directories.