chqauthextension

package module
v1.0.0-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() extension.Factory

Types

type ClientAuth

type ClientAuth struct {
	APIKey      string            `mapstructure:"api_key"`
	CollectorID string            `mapstructure:"collector_id"`
	Insecure    bool              `mapstructure:"insecure"`
	Environment map[string]string `mapstructure:"environment"`
}

func (*ClientAuth) Validate

func (cfg *ClientAuth) Validate() error

type Config

type Config struct {
	ServerAuth *ServerAuth `mapstructure:"server_auth"`
	ClientAuth *ClientAuth `mapstructure:"client_auth"`
}

func (*Config) Validate

func (cfg *Config) Validate() error

type ServerAuth

type ServerAuth struct {
	confighttp.ClientConfig `mapstructure:",squash"`
	CacheTTLValid           time.Duration `mapstructure:"cache_ttl_valid"`
	CacheTTLInvalid         time.Duration `mapstructure:"cache_ttl_invalid"`
}

func (*ServerAuth) Validate

func (cfg *ServerAuth) Validate() error

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL