Documentation
¶
Index ¶
- func ValidateEvaluateHook(event hook.Event) error
- func ValidateIngestEvent(event hook.Event) error
- type Core
- func (c *Core) CloseSession(ctx context.Context, sessionID string) error
- func (c *Core) EnsureSessionForEvent(ctx context.Context, event hook.Event) (hook.Event, error)
- func (c *Core) EvaluateHook(ctx context.Context, event hook.Event) (hook.Result, error)
- func (c *Core) IngestEvent(ctx context.Context, event hook.Event) (hook.Result, error)
- func (c *Core) OpenSession(ctx context.Context, session Session) (Session, error)
- func (c *Core) ProcessHook(ctx context.Context, event hook.Event) (hook.Result, error)
- type HookRuntime
- type Session
- type SessionRuntime
- type SessionSource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateEvaluateHook ¶
func ValidateIngestEvent ¶
Types ¶
type Core ¶
type Core struct {
// contains filtered or unexported fields
}
func New ¶
func New(runtime HookRuntime) (*Core, error)
func (*Core) CloseSession ¶
func (*Core) EnsureSessionForEvent ¶
func (*Core) EvaluateHook ¶
func (*Core) IngestEvent ¶
func (*Core) OpenSession ¶
type HookRuntime ¶
type Session ¶
type Session struct {
ID string
Agent string
CWD string
Source SessionSource
ExternalID string
}
type SessionRuntime ¶
type SessionSource ¶
type SessionSource string
const ( SessionSourceWrapperOwned SessionSource = "wrapper_owned" SessionSourceDaemonObserved SessionSource = "daemon_observed" )
Click to show internal directories.
Click to hide internal directories.