Documentation
¶
Overview ¶
Package httpconsole is lockhttp's console backend for lockkit: the method the gate calls (policy.get) and the policy read from the console account's config file. lockkit's console holds the terminal, the policy review and the audit log. The gate asks lockhub, never the console, about held requests: the console serves no approvals.
Index ¶
- func Sanitizer() *sanitize.Sanitizer
- type Backend
- func (b *Backend) Checks(context.Context, console.Session) []console.Finding
- func (b *Backend) Connect(context.Context, console.Credentials) (console.Session, error)
- func (b *Backend) LoadPolicy() (console.Policy, error)
- func (b *Backend) Methods() map[string]console.Handler
- func (b *Backend) Status(console.Session) any
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Backend implements console.Backend.
func (*Backend) Connect ¶
Connect implements console.Backend: the console guards no backend connection of its own (the gate sends the requests), so there is nothing to log in to.
func (*Backend) LoadPolicy ¶
LoadPolicy implements console.Backend: the profile from the config file.
Click to show internal directories.
Click to hide internal directories.