Documentation
¶
Overview ¶
Package workspace holds workspace resolution contracts and views (design §2, §9, §16).
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrResolverNotConfigured = errors.New("lipsdk/workspace: workspace resolver not configured")
ErrResolverNotConfigured means workspace resolution is not bound for this execution snapshot.
Functions ¶
This section is empty.
Types ¶
type DisabledResolver ¶
type DisabledResolver struct{}
DisabledResolver returns ErrResolverNotConfigured until core workspace plumbing exists.
func (DisabledResolver) Resolve ¶
func (DisabledResolver) Resolve(context.Context) (WorkspaceView, error)
type Resolver ¶
type Resolver interface {
Resolve(ctx context.Context) (WorkspaceView, error)
}
Resolver supplies the resolved workspace snapshot for the active request (design §9).
type WorkspaceView ¶
type WorkspaceView struct {
// ID is an optional opaque workspace identifier when the resolver can provide one.
ID string `yaml:"id,omitempty"`
ProjectRoot string
DirtyTree bool
Markers []string
Labels map[string]string
}
WorkspaceView is a read-only workspace snapshot for safety and path policy plugins (design §2).
Click to show internal directories.
Click to hide internal directories.