Documentation
¶
Index ¶
- Constants
- type Authenticator
- func (a *Authenticator) AddPermission(domain string) (err error)
- func (a *Authenticator) Close() (err error)
- func (a *Authenticator) Load(config Config) error
- func (a *Authenticator) RemovePermission(domain string) (err error)
- func (a *Authenticator) Save() (Config, error)
- func (a *Authenticator) Shutdown(ctx context.Context) error
- func (a *Authenticator) VerifyPermissions(cred auth.Credentials, domain string) (err error)
- type Config
Constants ¶
View Source
const NoAuth = auth.Type("noauth")
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator struct {
// contains filtered or unexported fields
}
func LoadFromDecoder ¶ added in v0.1.46
func LoadFromDecoder(dec auth.Decoder) (a *Authenticator, err error)
func LoadFromFile ¶ added in v0.1.46
func LoadFromFile(path string) (a *Authenticator, err error)
func LoadFromStream ¶ added in v0.1.46
func LoadFromStream(r io.Reader) (a *Authenticator, err error)
func New ¶ added in v0.1.46
func New(config Config) (a *Authenticator, err error)
func (*Authenticator) AddPermission ¶ added in v0.1.46
func (a *Authenticator) AddPermission(domain string) (err error)
func (*Authenticator) Close ¶
func (a *Authenticator) Close() (err error)
func (*Authenticator) Load ¶
func (a *Authenticator) Load(config Config) error
func (*Authenticator) RemovePermission ¶ added in v0.1.46
func (a *Authenticator) RemovePermission(domain string) (err error)
func (*Authenticator) Save ¶ added in v0.1.46
func (a *Authenticator) Save() (Config, error)
func (*Authenticator) Shutdown ¶ added in v0.1.46
func (a *Authenticator) Shutdown(ctx context.Context) error
func (*Authenticator) VerifyPermissions ¶
func (a *Authenticator) VerifyPermissions(cred auth.Credentials, domain string) (err error)
Click to show internal directories.
Click to hide internal directories.