Documentation
¶
Overview ¶
Package localprojects manages projects inside an operator-selected creation root. HTTP callers supply project identities, never filesystem locations.
Index ¶
- Variables
- func ReadArchivedFromRoot(root *os.Root) (bool, error)
- type Archive
- type ArchiveResult
- type Create
- type Project
- type Registry
- func (r *Registry) CanCreate() bool
- func (r *Registry) Create(ctx context.Context, request Create, authorize ...func() error) (Project, error)
- func (r *Registry) List() ([]Project, error)
- func (r *Registry) Paths() map[string]string
- func (r *Registry) SetArchived(ctx context.Context, request Archive, authorize ...func() error) (ArchiveResult, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrConflict = errors.New("local project operation conflicts with an existing project or operation")
View Source
var ErrInvalid = errors.New("invalid local project request")
View Source
var ErrRootRequired = errors.New("start the agent with --projects-root and --allow-writes to create local projects")
Functions ¶
func ReadArchivedFromRoot ¶ added in v0.137.0
ReadArchivedFromRoot reads only the opened project's parent lifecycle flag. It conveys no owner inventory or read/write authority. Supported absence uses the same active default as readState; malformed/unreadable state is an error.
Types ¶
type ArchiveResult ¶
type Project ¶
type Project struct {
datatug.ProjectSummary
Archived bool `json:"archived"`
}
func (Project) MarshalJSON ¶
func (*Project) UnmarshalJSON ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func Open ¶
Open loads only exact configured projects and immediate child projects of the operator-approved root. It does not modify user-wide CLI configuration.
func (*Registry) SetArchived ¶
Click to show internal directories.
Click to hide internal directories.