Documentation ¶
Index ¶
- type Option
- func WithDispatcher(dispatcher types.Dispatcher) Option
- func WithLogger(logger logger.Logger) Option
- func WithRocketBlendConfigurator(configurator types.RBConfigurator) Option
- func WithRocketBlendRepository(repository types.RBRepository) Option
- func WithStore(store types.Store) Option
- func WithValidator(validator types.Validator) Option
- func WithWatcherDebounceDuration(duration time.Duration) Option
- type Options
- type Repository
- func (r *Repository) AddPackage(ctx context.Context, opts *types.AddPackageOpts) error
- func (r *Repository) AddPackageOperation(ctx context.Context, opts *types.AddPackageOperationOpts) error
- func (r *Repository) Close() error
- func (r *Repository) GetPackage(ctx context.Context, opts *types.GetPackageOpts) (*types.GetPackageResponse, error)
- func (r *Repository) InstallPackage(ctx context.Context, opts *types.InstallPackageOpts) (err error)
- func (r *Repository) ListPackages(ctx context.Context, opts ...listoption.ListOption) (*types.ListPackagesResponse, error)
- func (r *Repository) RefreshPackages(ctx context.Context) error
- func (r *Repository) RemovePackageOperation(ctx context.Context, opts *types.RemovePackageOperationOpts) error
- func (r *Repository) UninstallPackage(ctx context.Context, opts *types.UninstallPackageOpts) error
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 WithRocketBlendConfigurator ¶
func WithRocketBlendConfigurator(configurator types.RBConfigurator) Option
func WithRocketBlendRepository ¶
func WithRocketBlendRepository(repository types.RBRepository) Option
func WithValidator ¶
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 (r *Repository) GetPackage(ctx context.Context, opts *types.GetPackageOpts) (*types.GetPackageResponse, error)
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
Click to show internal directories.
Click to hide internal directories.