Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicOption ¶
type BasicOption struct { TTL int `json:"ttl" mapstructure:"ttl"` Users BasicUsers `json:"users" mapstructure:"users"` }
func NewBasicOption ¶
func NewBasicOption() *BasicOption
func (*BasicOption) AddFlags ¶
func (o *BasicOption) AddFlags(fs *pflag.FlagSet)
func (*BasicOption) Enabled ¶
func (o *BasicOption) Enabled() bool
func (*BasicOption) Validate ¶
func (o *BasicOption) Validate() error
type BasicUser ¶
type BasicUser struct { ID string `json:"ID" mapstructure:"ID"` Name string `json:"name" mapstructure:"name"` Password string `json:"password" mapstructure:"password"` Groups []string `json:"groups" mapstructure:"groups"` Extensions map[string][]string `json:"extensions" mapstructure:"extensions"` }
type BasicUsers ¶
type BasicUsers []BasicUser
func (*BasicUsers) Set ¶
func (u *BasicUsers) Set(value string) error
func (*BasicUsers) String ¶
func (u *BasicUsers) String() string
func (*BasicUsers) Type ¶
func (u *BasicUsers) Type() string
type JWTOption ¶
type JWTOption struct { ID string `json:"id" mapstructure:"id"` Secret string `json:"secret" mapstructure:"secret"` Algorithm string `json:"algorithm" mapstructure:"algorithm"` }
func NewJWTOption ¶
func NewJWTOption() *JWTOption
type Options ¶
type Options struct { Basic *BasicOption `json:"basic,omitempty" mapstructure:"basic"` JWT *JWTOption `json:"jwt,omitempty" mapstructure:"jwt"` }
Options stands for auth options.
Click to show internal directories.
Click to hide internal directories.