Documentation
¶
Index ¶
- Variables
- type Agent
- type AgentSource
- type Auth
- func (a *Auth) Agent() Agent
- func (a *Auth) Authenticated() bool
- func (a *Auth) Authority() Authority
- func (a *Auth) Payloads() *Payloads
- func (a *Auth) Principal() Principal
- func (a *Auth) String() string
- func (a *Auth) WithAgent(agent Agent) *Auth
- func (a *Auth) WithAuthority(authority Authority) *Auth
- func (a *Auth) WithPayloads(payloads *Payloads) *Auth
- type AuthResult
- type Authority
- type AuthoritySource
- type Expiration
- type ExpirationSource
- type HumanReadablePayloads
- type Passphrase
- type PassphraseSource
- type Payload
- type Payloads
- type Principal
- type PrincipalSource
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAuthorityDuplicated = errors.New("authority duplicated")
View Source
var ErrEmptyAuthority = errors.New("empty authority")
View Source
var ErrEmptyPrincipal = errors.New("empty principal")
View Source
var ErrNotFound = errors.New("not found")
View Source
var PayloadRoles = "roles"
View Source
var PayloadSignSecret = "signsecret"
Functions ¶
This section is empty.
Types ¶
type AgentSource ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
func (*Auth) Authenticated ¶
func (*Auth) WithAuthority ¶
func (*Auth) WithPayloads ¶
type AuthResult ¶
type AuthResult interface {
Auth() *Auth
}
type AuthoritySource ¶
type Expiration ¶
var ExpirationNever *Expiration = nil
func (*Expiration) ExpirationData ¶
func (e *Expiration) ExpirationData() (*Expiration, error)
func (*Expiration) Expired ¶
func (e *Expiration) Expired() bool
type ExpirationSource ¶
type ExpirationSource interface {
ExpirationData() (*Expiration, error)
}
type HumanReadablePayloads ¶
func (HumanReadablePayloads) Payloads ¶
func (p HumanReadablePayloads) Payloads() *Payloads
type Passphrase ¶
type Passphrase string
func (Passphrase) PassphraseData ¶
func (p Passphrase) PassphraseData() (Passphrase, error)
type PassphraseSource ¶
type PassphraseSource interface {
PassphraseData() (Passphrase, error)
}
type Payloads ¶
type Payloads []*Payload
func NewPayloads ¶
func NewPayloads() *Payloads
func (*Payloads) HumanReadabe ¶
func (p *Payloads) HumanReadabe() HumanReadablePayloads
func (*Payloads) LoadString ¶
type PrincipalSource ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.