Documentation
¶
Overview ¶
Package projects owns project workflows independently of any client connection. Its registry is the same SQLite database used by every workspace API and SDK.
Index ¶
- type Auth
- type RemoveRequest
- type Request
- type RunGuard
- type Service
- func (s *Service) ActiveCount() int
- func (s *Service) Cancel(id string) (registry.ProjectOperation, error)
- func (s *Service) Changes() <-chan struct{}
- func (s *Service) Close()
- func (s *Service) Get(id string) (registry.ProjectOperation, error)
- func (s *Service) List(activeOnly bool) ([]registry.ProjectOperation, error)
- func (s *Service) Remove(id string, expected *int64) error
- func (s *Service) RemoveFiles(projectID string, req RemoveRequest) (registry.ProjectOperation, error)
- func (s *Service) Retry(id string, auth Auth) (registry.ProjectOperation, error)
- func (s *Service) Save(id string, data []byte, expected *int64) error
- func (s *Service) Start(req Request) (registry.ProjectOperation, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
Auth is write-only, held in memory for an attempt. It is never part of a snapshot, operation record, command argument, or the repository's origin URL.
type RemoveRequest ¶
type RemoveRequest struct {
OperationID string `json:"operationId"`
ExpectedRevision int64 `json:"expectedRevision"`
}
RemoveRequest is explicit because ordinary registry deletion retains files. The path comes from the confirmed project record, never an arbitrary request path.
type Request ¶
type Request struct {
registry.ProjectSpec
Auth Auth `json:"auth,omitempty"`
}
type RunGuard ¶
RunGuard is implemented by the existing supervisor, including legacy chats that have not yet acquired registry membership.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) ActiveCount ¶
Includes final persistence/cleanup, not just an operation's last status label.
func (*Service) RemoveFiles ¶
func (s *Service) RemoveFiles(projectID string, req RemoveRequest) (registry.ProjectOperation, error)