Documentation
¶
Index ¶
- type DeployPackage
- type DeployPackageFile
- type DeployPackageRepository
- type DeployPackageRepositoryImpl
- func (r *DeployPackageRepositoryImpl) DeleteMultiple(ctx context.Context, dps []*DeployPackage) error
- func (r *DeployPackageRepositoryImpl) FindByDigest(ctx context.Context, digest string) (*DeployPackage, error)
- func (r *DeployPackageRepositoryImpl) FindByTag(ctx context.Context, tag string) (*DeployPackage, error)
- func (r *DeployPackageRepositoryImpl) GetTaggedPrefixesWithSortByUpdatedAtAsc(ctx context.Context, prefixes []string) ([]*DeployPackage, error)
- func (r *DeployPackageRepositoryImpl) GetUntaggedWithSortByUpdatedAtAsc(ctx context.Context) ([]*DeployPackage, error)
- func (r *DeployPackageRepositoryImpl) LoadFile(ctx context.Context, dp *DeployPackage) (*DeployPackage, error)
- func (r *DeployPackageRepositoryImpl) Save(ctx context.Context, dp *DeployPackage) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeployPackage ¶
type DeployPackage struct {
Digest string
Tags []string
ObjectBucket string
ObjectKey string
UpdatedAt time.Time
File *DeployPackageFile
}
func (*DeployPackage) Copy ¶
func (dp *DeployPackage) Copy() *DeployPackage
type DeployPackageFile ¶
type DeployPackageRepository ¶
type DeployPackageRepository interface {
Save(ctx context.Context, dp *DeployPackage) error
FindByTag(ctx context.Context, tag string) (*DeployPackage, error)
FindByDigest(ctx context.Context, digest string) (*DeployPackage, error)
GetUntaggedWithSortByUpdatedAtAsc(ctx context.Context) ([]*DeployPackage, error)
GetTaggedPrefixesWithSortByUpdatedAtAsc(ctx context.Context, prefixes []string) ([]*DeployPackage, error)
LoadFile(ctx context.Context, dp *DeployPackage) (*DeployPackage, error)
DeleteMultiple(ctx context.Context, dps []*DeployPackage) error
}
type DeployPackageRepositoryImpl ¶
type DeployPackageRepositoryImpl struct {
// contains filtered or unexported fields
}
func NewDeployPackageRepositoryImpl ¶
func NewDeployPackageRepositoryImpl( packageStoreCli packagestore.Client, tagDBCli tagdb.Client, ) *DeployPackageRepositoryImpl
func (*DeployPackageRepositoryImpl) DeleteMultiple ¶
func (r *DeployPackageRepositoryImpl) DeleteMultiple(ctx context.Context, dps []*DeployPackage) error
func (*DeployPackageRepositoryImpl) FindByDigest ¶
func (r *DeployPackageRepositoryImpl) FindByDigest(ctx context.Context, digest string) (*DeployPackage, error)
func (*DeployPackageRepositoryImpl) FindByTag ¶
func (r *DeployPackageRepositoryImpl) FindByTag(ctx context.Context, tag string) (*DeployPackage, error)
func (*DeployPackageRepositoryImpl) GetTaggedPrefixesWithSortByUpdatedAtAsc ¶
func (r *DeployPackageRepositoryImpl) GetTaggedPrefixesWithSortByUpdatedAtAsc( ctx context.Context, prefixes []string, ) ([]*DeployPackage, error)
func (*DeployPackageRepositoryImpl) GetUntaggedWithSortByUpdatedAtAsc ¶
func (r *DeployPackageRepositoryImpl) GetUntaggedWithSortByUpdatedAtAsc(ctx context.Context) ([]*DeployPackage, error)
func (*DeployPackageRepositoryImpl) LoadFile ¶
func (r *DeployPackageRepositoryImpl) LoadFile(ctx context.Context, dp *DeployPackage) (*DeployPackage, error)
func (*DeployPackageRepositoryImpl) Save ¶
func (r *DeployPackageRepositoryImpl) Save(ctx context.Context, dp *DeployPackage) error
Click to show internal directories.
Click to hide internal directories.