application

package
v0.0.0-...-59b3758 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: AGPL-3.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OperationCancelChannel     = "operation.cancel"
	DebugLogChannel            = "debug.log"
	ApplicationArgumentChannel = "application.argument"

	StoreInsertChannel = events.StoreInsertChannel
)
View Source
const (
	Domain = "development"

	StartupMetric = "application.startup"

	PackageCountMetric = "package.count"

	ProjectCountMetric = "project.count"
	ProjectRunMetric   = "project.action.run"
	// ProjectExploreMetric = "project.action.explore"
	ProjectUpdateMetric = "project.action.update"

	StoreInsertMetric = "store.insert"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AddPackageOpts

type AddPackageOpts struct {
	Reference string `json:"reference"`
}

type AddProjectPackageOpts

type AddProjectPackageOpts struct {
	ID        uuid.UUID           `json:"id"`
	Reference reference.Reference `json:"reference"`
}

type AggregateMetricsOpts

type AggregateMetricsOpts types.FilterMetricsOpts

type AggregateMetricsResult

type AggregateMetricsResult struct {
	Aggregate *types.Aggregate
}

type Application

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

func New

func New(opts ApplicationOpts) (*Application, error)

func (*Application) Execute

func (a *Application) Execute() error

type ApplicationOpts

type ApplicationOpts struct {
	Assets  fs.FS
	Version string
	Args    []string
}

type CancelOperationOpts

type CancelOperationOpts struct {
	ID uuid.UUID `json:"id"`
}

type CreateProjectOpts

type CreateProjectOpts struct {
	Name string `json:"name"`
}

type CreateProjectResult

type CreateProjectResult struct {
	OperationID uuid.UUID `json:"operationID"`
}

type DeleteProjectOpts

type DeleteProjectOpts struct {
	ID uuid.UUID `json:"id"`
}

type Details

type Details struct {
	Version               string `json:"version"`
	Platform              string `json:"platform"`
	InstallationPath      string `json:"installationPath"`
	PackagePath           string `json:"packagePath"`
	ApplicationConfigPath string `json:"applicationConfigPath"`
	RocketBlendConfigPath string `json:"rocketblendConfigPath"`
}

type Driver

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

func NewDriver

func NewDriver(opts ...Option) (*Driver, error)

func (*Driver) AddPackage

func (d *Driver) AddPackage(opts AddPackageOpts) error

func (*Driver) AddProjectPackage

func (d *Driver) AddProjectPackage(opts AddProjectPackageOpts) error

func (*Driver) AggregateMetrics

func (d *Driver) AggregateMetrics(opts AggregateMetricsOpts) (*AggregateMetricsResult, error)

func (*Driver) CancelOperation

func (d *Driver) CancelOperation(opts CancelOperationOpts) error

func (*Driver) CreateProject

func (d *Driver) CreateProject(opts CreateProjectOpts) (*CreateProjectResult, error)

func (*Driver) DeleteProject

func (d *Driver) DeleteProject(opts DeleteProjectOpts) error

func (*Driver) GetDetails

func (d *Driver) GetDetails() (*Details, error)

func (*Driver) GetOperation

func (d *Driver) GetOperation(opts GetOperationOpts) (*GetOperationResult, error)

func (*Driver) GetPackage

func (d *Driver) GetPackage(opts GetPackageOpts) (*GetPackageResult, error)

func (*Driver) GetPreferences

func (d *Driver) GetPreferences() (*Preferences, error)

func (*Driver) GetProject

func (d *Driver) GetProject(opts GetPackageOpts) (*GetProjectResult, error)

func (*Driver) InstallPackage

func (d *Driver) InstallPackage(opts InstallPackageOpts) (*InstallPackageResult, error)

func (*Driver) ListMetrics

func (d *Driver) ListMetrics(opts ListMetricsOpts) (*ListMetricsResult, error)

func (*Driver) ListOperations

func (d *Driver) ListOperations() (*ListOperationsResult, error)

func (*Driver) ListPackages

func (d *Driver) ListPackages(opts ListPackagesOpts) (*ListPackagesResult, error)

func (*Driver) ListProjects

func (d *Driver) ListProjects(opts ListProjectsOpts) (*ListProjectsResult, error)

func (*Driver) LongRunningOperation

func (d *Driver) LongRunningOperation() (uuid.UUID, error)

func (*Driver) LongRunningRequestWithCancellation

func (d *Driver) LongRunningRequestWithCancellation(cid uuid.UUID) error

func (*Driver) OpenDirectoryDialog

func (d *Driver) OpenDirectoryDialog(opts OpenDialogOptions) (string, error)

func (*Driver) OpenExplorer

func (d *Driver) OpenExplorer(opts OpenExplorerOptions) error

func (*Driver) OpenFileDialog

func (d *Driver) OpenFileDialog(opts OpenDialogOptions) (string, error)

func (*Driver) Quit

func (d *Driver) Quit()

Quit quits the application

func (*Driver) RefreshPackages

func (d *Driver) RefreshPackages() error

func (*Driver) RemoveProjectPackage

func (d *Driver) RemoveProjectPackage(opts RemoveProjectPackageOpts) error

func (*Driver) RenderProject

func (d *Driver) RenderProject(opts RenderProjectOpts) error

func (*Driver) RunProject

func (d *Driver) RunProject(opts RunProjectOpts) error

func (*Driver) UninstallPackage

func (d *Driver) UninstallPackage(opts UninstallPackageOpts) error

func (*Driver) UpdatePreferences

func (d *Driver) UpdatePreferences(opts UpdatePreferencesOpts) error

func (*Driver) UpdateProject

func (d *Driver) UpdateProject(opts UpdateProjectOpts) error

UpdateProject updates a project

type Feature

type Feature struct {
	Addon     bool `json:"addon"`
	Developer bool `json:"developer"`
}

type FileFilter

type FileFilter struct {
	// Filter information EG: "Image Files (*.jpg, *.png)"
	DisplayName string `json:"displayName"`

	// semicolon separated list of extensions, EG: "*.jpg;*.png"
	Pattern string `json:"pattern"`
}

type GetOperationOpts

type GetOperationOpts struct {
	ID uuid.UUID `json:"id"`
}

type GetOperationResult

type GetOperationResult struct {
	Operation *types.Operation `json:"operation"`
}

type GetPackageOpts

type GetPackageOpts struct {
	ID uuid.UUID `json:"id"`
}

type GetPackageResult

type GetPackageResult struct {
	Package *types.Package `json:"package,omitempty"`
}

type GetProjectOpts

type GetProjectOpts struct {
	ID uuid.UUID `json:"id"`
}

type GetProjectResult

type GetProjectResult struct {
	Project *types.Project `json:"project"`
}

type InstallPackageOpts

type InstallPackageOpts struct {
	ID uuid.UUID `json:"id"`
}

type InstallPackageResult

type InstallPackageResult struct {
	OperationID uuid.UUID `json:"operationID"`
}

type LaunchEvent

type LaunchEvent struct {
	Args []string `json:"args"`
}

type ListMetricsOpts

type ListMetricsOpts types.FilterMetricsOpts

type ListMetricsResult

type ListMetricsResult struct {
	Metrics []*types.Metric
}

type ListOperationsOpts

type ListOperationsOpts struct {
}

type ListOperationsResult

type ListOperationsResult struct {
	Operations []*types.Operation `json:"operations"`
}

type ListPackagesOpts

type ListPackagesOpts struct {
	Query string             `json:"query"`
	Type  enums.PackageType  `json:"type"`
	State enums.PackageState `json:"state"`
}

type ListPackagesResult

type ListPackagesResult struct {
	Packages []*types.Package `json:"packages,omitempty"`
}

type ListProjectsOpts

type ListProjectsOpts struct {
	Query string `json:"query"`
}

type ListProjectsResult

type ListProjectsResult struct {
	Projects []*types.Project `json:"projects"`
}

type OpenDialogOptions

type OpenDialogOptions struct {
	DefaultDirectory string       `json:"defaultDirectory,omitempty" `
	DefaultFilename  string       `json:"defaultFilename,omitempty"`
	Title            string       `json:"title,omitempty"`
	Filters          []FileFilter `json:"filters,omitempty"`
}

type OpenExplorerOptions

type OpenExplorerOptions struct {
	Path string `json:"path"`
}

type Option

type Option func(*Options)

func WithArgs

func WithArgs(args ...string) Option

func WithContainer

func WithContainer(container types.Container) Option

func WithPlatform

func WithPlatform(platform rbruntime.Platform) Option

func WithVersion

func WithVersion(version string) Option

func WithWriter

func WithWriter(writer buffer.BufferManager) Option

type Options

type Options struct {
	Container types.Container

	Writer   buffer.BufferManager // TODO: Improve this
	Platform rbruntime.Platform
	Version  string
	Args     []string
}

type Preferences

type Preferences struct {
	WatchPath string  `json:"watchPath"`
	Feature   Feature `json:"feature"`
}

type RemoveProjectPackageOpts

type RemoveProjectPackageOpts struct {
	ID        uuid.UUID           `json:"id"`
	Reference reference.Reference `json:"reference"`
}

type RenderProjectOpts

type RenderProjectOpts struct {
	ID uuid.UUID `json:"id"`
}

type RunProjectOpts

type RunProjectOpts struct {
	ID uuid.UUID `json:"id"`
}

type UninstallPackageOpts

type UninstallPackageOpts struct {
	ID uuid.UUID `json:"id"`
}

type UpdatePreferencesOpts

type UpdatePreferencesOpts Preferences

type UpdateProjectOpts

type UpdateProjectOpts struct {
	ID   uuid.UUID `json:"id"`
	Name *string   `json:"name,omitempty"`
}

Jump to

Keyboard shortcuts

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