Documentation
¶
Index ¶
- func NewAuthenticatorFromConfig(config *HTTPClientAuthConfig, ...) (authscheme.HTTPClientAuthenticator, error)
- type HTTPClientAuthConfig
- func (j HTTPClientAuthConfig) Equal(target HTTPClientAuthConfig) bool
- func (j HTTPClientAuthConfig) IsZero() bool
- func (j HTTPClientAuthConfig) MarshalJSON() ([]byte, error)
- func (j *HTTPClientAuthConfig) UnmarshalJSON(b []byte) error
- func (j *HTTPClientAuthConfig) UnmarshalYAML(value *yaml.Node) error
- func (j *HTTPClientAuthConfig) Validate(strict bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthenticatorFromConfig ¶
func NewAuthenticatorFromConfig( config *HTTPClientAuthConfig, options *authscheme.HTTPClientAuthenticatorOptions, ) (authscheme.HTTPClientAuthenticator, error)
NewAuthenticatorFromConfig creates an authenticator from the configuration.
Types ¶
type HTTPClientAuthConfig ¶
type HTTPClientAuthConfig struct {
authscheme.HTTPClientAuthenticatorConfig `yaml:",inline"`
}
HTTPClientAuthConfig contains authentication configurations. The schema follows OpenAPI 3 specification with extensions.
func (HTTPClientAuthConfig) Equal ¶
func (j HTTPClientAuthConfig) Equal(target HTTPClientAuthConfig) bool
Equal checks if the target value is equal.
func (HTTPClientAuthConfig) IsZero ¶
func (j HTTPClientAuthConfig) IsZero() bool
IsZero if the current instance is empty.
func (HTTPClientAuthConfig) MarshalJSON ¶
func (j HTTPClientAuthConfig) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*HTTPClientAuthConfig) UnmarshalJSON ¶
func (j *HTTPClientAuthConfig) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*HTTPClientAuthConfig) UnmarshalYAML ¶
func (j *HTTPClientAuthConfig) UnmarshalYAML(value *yaml.Node) error
UnmarshalYAML implements yaml.Unmarshaler.
func (*HTTPClientAuthConfig) Validate ¶
func (j *HTTPClientAuthConfig) Validate(strict bool) error
Validate if the current instance is valid.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package authscheme defines types and interfaces for security schemes.
|
Package authscheme defines types and interfaces for security schemes. |
|
Package basicauth implements authentication interfaces for the basic security scheme.
|
Package basicauth implements authentication interfaces for the basic security scheme. |
|
Package httpauth implements authentication interfaces for the http security scheme.
|
Package httpauth implements authentication interfaces for the http security scheme. |
|
Package oauth2scheme implements authentication interfaces for OAuth2 security scheme.
|
Package oauth2scheme implements authentication interfaces for OAuth2 security scheme. |