Documentation
¶
Index ¶
- Constants
- func ValidExtensions() []string
- type Option
- func WithBlender(blender types.Blender) Option
- func WithConfigurator(configurator types.Configurator) Option
- func WithDispatcher(dispatcher types.Dispatcher) Option
- func WithLogger(logger logger.Logger) Option
- func WithRocketBlendConfigurator(configurator types.RBConfigurator) Option
- func WithRocketBlendDriver(driver types.RBDriver) 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) AddProjectPackage(ctx context.Context, opts *types.AddProjectPackageOpts) error
- func (r *Repository) Close() error
- func (r *Repository) CreateProject(ctx context.Context, opts *types.CreateProjectOpts) (*types.CreateProjectResult, error)
- func (r *Repository) GetProject(ctx context.Context, opts *types.GetProjectOpts) (*types.GetProjectResponse, error)
- func (r *Repository) ListProjects(ctx context.Context, opts ...listoption.ListOption) (*types.ListProjectsResponse, error)
- func (r *Repository) Refresh(ctx context.Context) error
- func (r *Repository) RemoveProjectPackage(ctx context.Context, opts *types.RemoveProjectPackageOpts) error
- func (r *Repository) RunProject(ctx context.Context, opts *types.RunProjectOpts) error
- func (r *Repository) UpdateProject(ctx context.Context, opts *types.UpdateProjectOpts) error
Constants ¶
View Source
const DefaultMediaPath = "/media"
Variables ¶
This section is empty.
Functions ¶
func ValidExtensions ¶ added in v0.2.0
func ValidExtensions() []string
Types ¶
type Option ¶
type Option func(*Options)
func WithBlender ¶
func WithConfigurator ¶
func WithConfigurator(configurator types.Configurator) Option
func WithDispatcher ¶
func WithDispatcher(dispatcher types.Dispatcher) Option
func WithLogger ¶
func WithRocketBlendConfigurator ¶
func WithRocketBlendConfigurator(configurator types.RBConfigurator) Option
func WithRocketBlendDriver ¶
func WithRocketBlendRepository ¶
func WithRocketBlendRepository(repository types.RBRepository) Option
func WithValidator ¶
type Options ¶
type Options struct {
Logger types.Logger
Validator types.Validator
RBRepository types.RBRepository
RBDriver types.RBDriver
RBConfigurator types.RBConfigurator
Blender types.Blender
Configurator types.Configurator
Store types.Store
Dispatcher types.Dispatcher
WatcherDebounceDuration time.Duration
}
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func New ¶
func New(opts ...Option) (*Repository, error)
func (*Repository) AddProjectPackage ¶
func (r *Repository) AddProjectPackage(ctx context.Context, opts *types.AddProjectPackageOpts) error
func (*Repository) Close ¶
func (r *Repository) Close() error
func (*Repository) CreateProject ¶
func (r *Repository) CreateProject(ctx context.Context, opts *types.CreateProjectOpts) (*types.CreateProjectResult, error)
func (*Repository) GetProject ¶
func (r *Repository) GetProject(ctx context.Context, opts *types.GetProjectOpts) (*types.GetProjectResponse, error)
func (*Repository) ListProjects ¶
func (r *Repository) ListProjects(ctx context.Context, opts ...listoption.ListOption) (*types.ListProjectsResponse, error)
func (*Repository) RemoveProjectPackage ¶
func (r *Repository) RemoveProjectPackage(ctx context.Context, opts *types.RemoveProjectPackageOpts) error
func (*Repository) RunProject ¶
func (r *Repository) RunProject(ctx context.Context, opts *types.RunProjectOpts) error
func (*Repository) UpdateProject ¶
func (r *Repository) UpdateProject(ctx context.Context, opts *types.UpdateProjectOpts) error
Click to show internal directories.
Click to hide internal directories.