Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { OAuth2 OAuth2Config `json:"oauth2" yaml:"oauth2"` Token TokenConfig `json:"token" yaml:"token"` }
Config contains configuration params for Pulsar authentication.
type OAuth2Config ¶
type OAuth2Config struct { Enabled bool `json:"enabled" yaml:"enabled"` Audience string `json:"audience" yaml:"audience"` IssuerURL string `json:"issuer_url" yaml:"issuer_url"` PrivateKeyFile string `json:"private_key_file" yaml:"private_key_file"` }
OAuth2Config contains configuration params for Pulsar OAuth2 authentication.
func (*OAuth2Config) ToMap ¶ added in v3.62.0
func (c *OAuth2Config) ToMap() map[string]string
ToMap returns OAuth2Config as a map representing OAuth2 client credentails.
func (*OAuth2Config) Validate ¶
func (c *OAuth2Config) Validate() error
Validate checks whether OAuth2Config is valid.
type TokenConfig ¶
type TokenConfig struct { Enabled bool `json:"enabled" yaml:"enabled"` Token string `json:"token" yaml:"token"` }
TokenConfig contains configuration params for Pulsar Token authentication.
func (*TokenConfig) Validate ¶
func (c *TokenConfig) Validate() error
Validate checks whether TokenConfig is valid.
Click to show internal directories.
Click to hide internal directories.