usecase

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: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyLifecyclePolicyParam

type ApplyLifecyclePolicyParam struct {
	DryRun          bool
	LifecyclePolicy *lifecyclepolicy.LifecyclePolicy
}

type ApplyLifecyclePolicyResult

type ApplyLifecyclePolicyResult struct {
	ExpiredDeployPackages []*deploypackage.DeployPackage
}

type ApplyLifecyclePolicyUsecase

type ApplyLifecyclePolicyUsecase interface {
	ApplyLifecyclePolicy(
		ctx context.Context,
		param *ApplyLifecyclePolicyParam,
	) (*ApplyLifecyclePolicyResult, error)
}

type ApplyLifecyclePolicyUsecaseImpl

type ApplyLifecyclePolicyUsecaseImpl struct {
	// contains filtered or unexported fields
}

func NewApplyLifecyclePolicyUsecaseImpl

func NewApplyLifecyclePolicyUsecaseImpl(
	deployPackageRepository deploypackage.DeployPackageRepository,
) *ApplyLifecyclePolicyUsecaseImpl

func (*ApplyLifecyclePolicyUsecaseImpl) ApplyLifecyclePolicy

type PullByDigestParam

type PullByDigestParam struct {
	Digest    string
	NeedsFile bool
}

type PullByTagParam

type PullByTagParam struct {
	Tag       string
	NeedsFile bool
}

type PullPackageUsecase

type PullPackageUsecase interface {
	PullByDigest(ctx context.Context, param *PullByDigestParam) (*PullResult, error)
	PullByTag(ctx context.Context, param *PullByTagParam) (*PullResult, error)
}

type PullPackageUsecaseImpl

type PullPackageUsecaseImpl struct {
	// contains filtered or unexported fields
}

func NewPullPackageUsecaseImpl

func NewPullPackageUsecaseImpl(
	deployPackageRepository deploypackage.DeployPackageRepository,
) *PullPackageUsecaseImpl

func (*PullPackageUsecaseImpl) PullByDigest

func (u *PullPackageUsecaseImpl) PullByDigest(ctx context.Context, param *PullByDigestParam) (*PullResult, error)

func (*PullPackageUsecaseImpl) PullByTag

func (u *PullPackageUsecaseImpl) PullByTag(ctx context.Context, param *PullByTagParam) (*PullResult, error)

type PullResult

type PullResult struct {
	DeployPackage *deploypackage.DeployPackage
}

type PushPackageUsecase

type PushPackageUsecase interface {
	Push(ctx context.Context, param *PushParam) (*PushResult, error)
}

type PushPackageUsecaseImpl

type PushPackageUsecaseImpl struct {
	// contains filtered or unexported fields
}

func NewPushPackageUsecaseImpl

func NewPushPackageUsecaseImpl(deployPackageRepository deploypackage.DeployPackageRepository) *PushPackageUsecaseImpl

func (*PushPackageUsecaseImpl) Push

type PushParam

type PushParam struct {
	Tags []string
	File *os.File
}

type PushResult

type PushResult struct {
	DeployPackage *deploypackage.DeployPackage
}

Jump to

Keyboard shortcuts

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