deploypackage

package
v0.1.0-alpha.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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 DeployPackageFile struct {
	Body     io.Reader
	MimeType string
}

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 (*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 (*DeployPackageRepositoryImpl) Save

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL