pack

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Options)

func WithDispatcher

func WithDispatcher(dispatcher types.Dispatcher) Option

func WithLogger

func WithLogger(logger logger.Logger) Option

func WithRocketBlendConfigurator

func WithRocketBlendConfigurator(configurator types.RBConfigurator) Option

func WithRocketBlendRepository

func WithRocketBlendRepository(repository types.RBRepository) Option

func WithStore

func WithStore(store types.Store) Option

func WithValidator

func WithValidator(validator types.Validator) Option

func WithWatcherDebounceDuration

func WithWatcherDebounceDuration(duration time.Duration) Option

type Options

type Options struct {
	Logger    types.Logger
	Validator types.Validator

	Store      types.Store
	Dispatcher types.Dispatcher

	WatcherDebounceDuration time.Duration
	// contains filtered or unexported fields
}

type Repository

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

func New

func New(opts ...Option) (*Repository, error)

func (*Repository) AddPackage

func (r *Repository) AddPackage(ctx context.Context, opts *types.AddPackageOpts) error

func (*Repository) AddPackageOperation

func (r *Repository) AddPackageOperation(ctx context.Context, opts *types.AddPackageOperationOpts) error

func (*Repository) Close

func (r *Repository) Close() error

func (*Repository) GetPackage

func (*Repository) InstallPackage

func (r *Repository) InstallPackage(ctx context.Context, opts *types.InstallPackageOpts) (err error)

func (*Repository) ListPackages

func (r *Repository) ListPackages(ctx context.Context, opts ...listoption.ListOption) (*types.ListPackagesResponse, error)

func (*Repository) RefreshPackages

func (r *Repository) RefreshPackages(ctx context.Context) error

RefreshPackages refreshes the packages. Currently, it only refreshes the default build repo.

func (*Repository) RemovePackageOperation

func (r *Repository) RemovePackageOperation(ctx context.Context, opts *types.RemovePackageOperationOpts) error

func (*Repository) UninstallPackage

func (r *Repository) UninstallPackage(ctx context.Context, opts *types.UninstallPackageOpts) error

Jump to

Keyboard shortcuts

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