Documentation ¶
Index ¶
- Constants
- func BundleTagToChartVersion(ctx context.Context, tag string, now time.Time) (*semver.Version, error)
- 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
- func SaveChartValues(ctx context.Context, ch *chart.Chart) 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) ReadChart(ctx context.Context) (*chart.Chart, error)
- func (bundle *BundleArchive) WriteChart(ctx context.Context, ch *chart.Chart) error
- type BundleArchiveFileReader
- type BundleArchiveFileWriter
- type BundleArchiveReader
- type BundleArchiveWriter
- 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 BundleTagToChartVersion ¶ added in v1.2.172
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 { Reader BundleArchiveReader Writer BundleArchiveWriter }
func NewBundleArchive ¶ added in v1.2.169
func NewBundleArchive(reader BundleArchiveReader, writer BundleArchiveWriter) *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) WriteChart ¶ added in v1.2.170
type BundleArchiveFileReader ¶ added in v1.2.172
type BundleArchiveFileReader struct {
Path string
}
func NewBundleArchiveFileReader ¶ added in v1.2.172
func NewBundleArchiveFileReader(path string) *BundleArchiveFileReader
func (*BundleArchiveFileReader) ReadChartArchive ¶ added in v1.2.172
func (reader *BundleArchiveFileReader) ReadChartArchive() ([]byte, error)
func (*BundleArchiveFileReader) ReadImageArchive ¶ added in v1.2.172
func (reader *BundleArchiveFileReader) ReadImageArchive(imageTag string) (*ImageArchiveReadCloser, error)
func (*BundleArchiveFileReader) String ¶ added in v1.2.172
func (reader *BundleArchiveFileReader) String() string
type BundleArchiveFileWriter ¶ added in v1.2.172
type BundleArchiveFileWriter struct { Path string // contains filtered or unexported fields }
func NewBundleArchiveFileWriter ¶ added in v1.2.172
func NewBundleArchiveFileWriter(path string) *BundleArchiveFileWriter
func (*BundleArchiveFileWriter) Open ¶ added in v1.2.172
func (writer *BundleArchiveFileWriter) Open() error
func (*BundleArchiveFileWriter) Save ¶ added in v1.2.172
func (writer *BundleArchiveFileWriter) Save() error
func (*BundleArchiveFileWriter) WriteChartArchive ¶ added in v1.2.172
func (writer *BundleArchiveFileWriter) WriteChartArchive(data []byte) error
func (*BundleArchiveFileWriter) WriteImageArchive ¶ added in v1.2.172
func (writer *BundleArchiveFileWriter) WriteImageArchive(imageTag string, data []byte) error
type BundleArchiveReader ¶ added in v1.2.169
type BundleArchiveWriter ¶ added in v1.2.169
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.