boggart

package
v0.0.0-...-4f4e16b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultAssumeRoleDuration int64 = 900

Variables

This section is empty.

Functions

This section is empty.

Types

type Boggart

type Boggart struct {
	// contains filtered or unexported fields
}

func New

func New(config *config.Config) *Boggart

func (*Boggart) AssumeRole

func (b *Boggart) AssumeRole(ctx *Context, req *model.Request) *model.Response

func (*Boggart) Authenticate

func (b *Boggart) Authenticate(ctx *Context, key ssh.PublicKey) bool

func (*Boggart) Authorize

func (b *Boggart) Authorize(ctx *Context, key ssh.PublicKey, req *model.Request) bool

type Context

type Context struct {
	RemoteAddr string
	Permission *config.Permission
	Logger     zerolog.Logger
}

func NewContext

func NewContext(remote net.Addr) *Context

func (*Context) Authenticated

func (ctx *Context) Authenticated(permission *config.Permission) *Context

func (*Context) Authorized

func (ctx *Context) Authorized(permission *config.Permission) *Context

func (*Context) Request

func (ctx *Context) Request(req *model.Request) *Context

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL