Documentation ¶
Overview ¶
Package authenticator handles the management of 'X-USER-TOKEN's, allowing an authorized admin to add, remove, and validate keys for http log collection.
Index ¶
- func Add(token string) error
- func ExportLogvac(exportWriter io.Writer) error
- func ImportLogvac(importReader io.Reader) error
- func Init() error
- func NewBoltDb(config string) (*boltdb, error)
- func NewPgDb(addr string) (*postgresql, error)
- func Remove(token string) error
- func Valid(token string) bool
- type Authenticatable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExportLogvac ¶
ExportLogvac exports auth tokens to a `logvac import`able file
func ImportLogvac ¶
ImportLogvac imports auth tokens from a `logvac export`ed file
Types ¶
type Authenticatable ¶
type Authenticatable interface {
// contains filtered or unexported methods
}
Authenticatable contains methods all authenticators should have
Click to show internal directories.
Click to hide internal directories.