Documentation
¶
Index ¶
- Constants
- Variables
- func Add(ctx context.Context, store runtimetypes.Store, path string) ([]string, error)
- func PublishChanged(ctx context.Context, pub Publisher, roots []string) error
- func ReadGrants(ctx context.Context, store runtimetypes.Store) []string
- func Remove(ctx context.Context, store runtimetypes.Store, path string) ([]string, error)
- type Publisher
- type RootsChangedEvent
Constants ¶
View Source
const ConfigKey = "workspace-roots"
View Source
const RootsChangedSubject = "workspace.events.roots_changed"
Variables ¶
View Source
var ErrInvalidGrant = errors.New("invalid workspace-root grant")
Functions ¶
func ReadGrants ¶
func ReadGrants(ctx context.Context, store runtimetypes.Store) []string
Types ¶
type RootsChangedEvent ¶
type RootsChangedEvent struct {
Roots []string `json:"roots"`
}
Click to show internal directories.
Click to hide internal directories.