Documentation
¶
Index ¶
- Constants
- func ChangeEvent(path string, grants []Grant) (agent.Event, error)
- func IsTemporaryAccess(access Access) bool
- func NewRestored(workspace *work.Space, pathAccess *shell.PathAccess, recordedGrants []Grant) (*Grants, RestoreResult)
- func Notice(event agent.Event) (string, bool)
- func Summary(event agent.Event) (string, bool)
- func WithGrantOf(event agent.Event, path string, grants []Grant) agent.Event
- type Access
- type Grant
- type Grants
- type RestoreFailure
- type RestoreResult
Constants ¶
View Source
const ( ReadAccess = shell.ReadAccess ExecAccess = shell.ExecAccess WriteAccess = shell.WriteAccess )
View Source
const Change agent.Kind = "path_grant_change"
View Source
const (
GrantUsage = "{r|rw} <path>..."
)
Variables ¶
This section is empty.
Functions ¶
func IsTemporaryAccess ¶ added in v0.12.0
func NewRestored ¶
func NewRestored( workspace *work.Space, pathAccess *shell.PathAccess, recordedGrants []Grant, ) (*Grants, RestoreResult)
Types ¶
type Grants ¶
type Grants struct {
// contains filtered or unexported fields
}
func (*Grants) GetCurrent ¶
type RestoreFailure ¶
type RestoreResult ¶
type RestoreResult struct {
Failures []RestoreFailure
}
Click to show internal directories.
Click to hide internal directories.