Documentation ¶
Index ¶
- func DecryptPackage(p pack.PackageService, loc loc.Locator, encryptionKey string) error
- type EncryptedPack
- func (p *EncryptedPack) CreatePackage(locator loc.Locator, data io.Reader, options ...pack.PackageOption) (*pack.PackageEnvelope, error)
- func (p *EncryptedPack) DeletePackage(locator loc.Locator) error
- func (p *EncryptedPack) DeleteRepository(repository string) error
- func (p *EncryptedPack) GetPackages(repository string) ([]pack.PackageEnvelope, error)
- func (p *EncryptedPack) GetRepositories() ([]string, error)
- func (p *EncryptedPack) GetRepository(repository string) (storage.Repository, error)
- func (p *EncryptedPack) PackageDownloadURL(locator loc.Locator) string
- func (p *EncryptedPack) PortalURL() string
- func (p *EncryptedPack) ReadPackage(locator loc.Locator) (*pack.PackageEnvelope, io.ReadCloser, error)
- func (p *EncryptedPack) ReadPackageEnvelope(locator loc.Locator) (*pack.PackageEnvelope, error)
- func (p *EncryptedPack) UpdatePackageLabels(locator loc.Locator, addLabels map[string]string, removeLabels []string) error
- func (p *EncryptedPack) UpsertPackage(locator loc.Locator, data io.Reader, options ...pack.PackageOption) (*pack.PackageEnvelope, error)
- func (p *EncryptedPack) UpsertRepository(repository string, expires time.Time) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptPackage ¶
DecryptPackage decrypts the specified package in the specified package service
Types ¶
type EncryptedPack ¶
type EncryptedPack struct {
// contains filtered or unexported fields
}
func New ¶
func New(packages pack.PackageService, encryptionKey string) *EncryptedPack
func (*EncryptedPack) CreatePackage ¶
func (p *EncryptedPack) CreatePackage(locator loc.Locator, data io.Reader, options ...pack.PackageOption) (*pack.PackageEnvelope, error)
func (*EncryptedPack) DeletePackage ¶
func (p *EncryptedPack) DeletePackage(locator loc.Locator) error
func (*EncryptedPack) DeleteRepository ¶
func (p *EncryptedPack) DeleteRepository(repository string) error
func (*EncryptedPack) GetPackages ¶
func (p *EncryptedPack) GetPackages(repository string) ([]pack.PackageEnvelope, error)
func (*EncryptedPack) GetRepositories ¶
func (p *EncryptedPack) GetRepositories() ([]string, error)
func (*EncryptedPack) GetRepository ¶
func (p *EncryptedPack) GetRepository(repository string) (storage.Repository, error)
func (*EncryptedPack) PackageDownloadURL ¶
func (p *EncryptedPack) PackageDownloadURL(locator loc.Locator) string
func (*EncryptedPack) PortalURL ¶
func (p *EncryptedPack) PortalURL() string
func (*EncryptedPack) ReadPackage ¶
func (p *EncryptedPack) ReadPackage(locator loc.Locator) (*pack.PackageEnvelope, io.ReadCloser, error)
func (*EncryptedPack) ReadPackageEnvelope ¶
func (p *EncryptedPack) ReadPackageEnvelope(locator loc.Locator) (*pack.PackageEnvelope, error)
func (*EncryptedPack) UpdatePackageLabels ¶
func (*EncryptedPack) UpsertPackage ¶
func (p *EncryptedPack) UpsertPackage(locator loc.Locator, data io.Reader, options ...pack.PackageOption) (*pack.PackageEnvelope, error)
func (*EncryptedPack) UpsertRepository ¶
func (p *EncryptedPack) UpsertRepository(repository string, expires time.Time) error
Click to show internal directories.
Click to hide internal directories.