Documentation
¶
Overview ¶
Package workspacepg stores independent workspace configurations and durable Environment filesystem ownership. Execution writes use Core's existing lease.
Index ¶
- type Execution
- func (e *Execution) BeginDelete(ctx context.Context, ref workspacefs.Reference) error
- func (e *Execution) Bind(ctx context.Context, tenant, environment, configuration string, ...) (workspaces.Record, error)
- func (e *Execution) MarkDeleted(ctx context.Context, ref workspacefs.Reference) error
- func (e *Execution) MarkReady(ctx context.Context, ref workspacefs.Reference, ...) error
- func (e *Execution) SelectConfiguration(ctx context.Context, config workspacefs.ConfigurationRecord, ...) error
- type Store
- func (s *Store) ActiveConfiguration(ctx context.Context) (workspacefs.ConfigurationRecord, error)
- func (s *Store) Configuration(ctx context.Context, id string) (workspacefs.ConfigurationRecord, error)
- func (s *Store) DeletionCandidates(ctx context.Context, after string) ([]workspaces.Record, error)
- func (s *Store) Get(ctx context.Context, tenant, environment string) (workspaces.Record, error)
- func (s *Store) Selection(ctx context.Context) (workspaces.Selection, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Execution ¶
type Execution struct {
// contains filtered or unexported fields
}
func NewExecution ¶
func (*Execution) BeginDelete ¶
func (*Execution) MarkDeleted ¶
func (*Execution) MarkReady ¶
func (e *Execution) MarkReady(ctx context.Context, ref workspacefs.Reference, attachment workspacefs.Attachment) error
func (*Execution) SelectConfiguration ¶
func (e *Execution) SelectConfiguration(ctx context.Context, config workspacefs.ConfigurationRecord, tenantCapacityMiB uint32) error
SelectConfiguration atomically changes the selection and tenant capacity policy without changing any configuration's definition or any existing Environment's binding. The admission row lock fences concurrent Bind calls.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) ActiveConfiguration ¶
func (s *Store) ActiveConfiguration(ctx context.Context) (workspacefs.ConfigurationRecord, error)
func (*Store) Configuration ¶
func (s *Store) Configuration(ctx context.Context, id string) (workspacefs.ConfigurationRecord, error)