Documentation
¶
Index ¶
- Variables
- func InitGlobalConfig(opts ...Option) error
- type AuthnType
- type AuthnTypeSelector
- type Defaulter
- type IP
- type KnownValueTypes
- type NetCIDR
- type OneOf
- type Option
- type Sink
- type TLScaFiles
- type TLScertFile
- type TLSclientVerification
- type TLSclientVerifyStrategy
- type TLSprivKeyFile
- type TLSverifysServerName
- type Value
- type ValueOpt
- type ValueT
- func (v ValueT[T]) MustValue(ctx context.Context, opts ...ValueOpt[T]) T
- func (v ValueT[T]) OptDefaulter(f func() (T, error)) ValueOpt[T]
- func (v ValueT[T]) OptSink(f func(T) error) ValueOpt[T]
- func (v ValueT[T]) String() string
- func (v ValueT[T]) Value(_ context.Context, opts ...ValueOpt[T]) (ret T, err error)
- type WithAcceptEnvironment
- type WithDefValue
- type WithSource
- type WithSourceFile
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //ErrTypeCastNotSupported type cast is not supported ErrTypeCastNotSupported = errors.New("type cast not supported") //ErrNotFound value is not found ErrNotFound = errors.New("value not found") )
Functions ¶
func InitGlobalConfig ¶
InitGlobalConfig init global config
Types ¶
type AuthnTypeSelector ¶ added in v1.15.0
AuthnTypeSelector is a authentication type selector
type KnownValueTypes ¶
type KnownValueTypes interface {
time.Time |
NetCIDR |
~[]NetCIDR |
IP |
~[]IP |
~int | ~uint |
~int64 | ~uint64 |
~int32 | ~uint32 |
~int16 | ~uint16 |
~int8 | ~uint8 |
~float32 | ~float64 |
~string | ~bool |
~[]string
}
KnownValueTypes ...
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option config init option
type TLScaFiles ¶ added in v1.15.0
TLScaFiles CA PEM encoded list ["file1.pem", "cert.pem",...]
type TLScertFile ¶ added in v1.15.0
TLScertFile cert PEM encoded file
type TLSclientVerification ¶ added in v1.15.0
type TLSclientVerification string
TLSclientVerification verification client on TLS handshake
const ( // TLSclientSkipVerify - client is nonsecured TLSclientSkipVerify TLSclientVerification = "skip" // TLSclentCertsRequied - server requires the client must have any cert(s) TLSclentCertsRequied TLSclientVerification = "certs-required" // TLSclientMustVerify TLSclientMustVerify TLSclientVerification = "verify" )
func (TLSclientVerification) Eq ¶ added in v1.15.0
func (o TLSclientVerification) Eq(other TLSclientVerification) bool
Eq config.OneOf
func (TLSclientVerification) Variants ¶ added in v1.15.0
func (TLSclientVerification) Variants() []TLSclientVerification
Variants impl config.OneOf
type TLSclientVerifyStrategy ¶ added in v1.15.0
type TLSclientVerifyStrategy = ValueT[TLSclientVerification]
TLSclientVerifyStrategy - client conn verification strategy
type TLSprivKeyFile ¶ added in v1.15.0
TLSprivKeyFile private PEM encoded file
type TLSverifysServerName ¶ added in v1.15.0
TLSverifysServerName server name to verify on TLS handshake
type Value ¶
type Value[T any] interface { String() string MustValue(ctx context.Context, opts ...ValueOpt[T]) T Value(ctx context.Context, opts ...ValueOpt[T]) (T, error) }
Value config value interface
type ValueOpt ¶
type ValueOpt[T any] interface { // contains filtered or unexported methods }
ValueOpt ...
type ValueT ¶
ValueT typed value accessor
func (ValueT[T]) OptDefaulter ¶
OptDefaulter ...
type WithAcceptEnvironment ¶
WithAcceptEnvironment option
type WithDefValue ¶
type WithDefValue struct {
Option
Key interface{}
Val interface{}
}
WithDefValue option
Click to show internal directories.
Click to hide internal directories.