apiconfig

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(configFile string) (*ateconfigpb.APIConfig, error)

LoadConfig reads and strictly parses an APIConfig from a file (.pb, .textproto, or .textpb).

func ParseTextProto

func ParseTextProto(configBytes []byte) (*ateconfigpb.APIConfig, error)

ParseTextProto strictly parses prototext bytes into an APIConfig and validates its settings.

func ValidateAuthenticationConfig

func ValidateAuthenticationConfig(cfg *AuthenticationConfig) error

ValidateAuthenticationConfig validates fields that do not require I/O.

Types

type AuthenticationConfig

type AuthenticationConfig struct {
	JWTProviders []JWTProviderConfig `json:"jwtProviders"`
}

AuthenticationConfig configures JWT authentication for ateapi.

func LoadAuthenticationConfig

func LoadAuthenticationConfig(path string) (*AuthenticationConfig, error)

LoadAuthenticationConfig strictly parses and validates a YAML or JSON file.

func ParseAuthenticationConfig

func ParseAuthenticationConfig(b []byte) (*AuthenticationConfig, error)

ParseAuthenticationConfig strictly parses and validates authentication configuration YAML or JSON bytes.

type JWTProviderConfig

type JWTProviderConfig struct {
	Name                     string   `json:"name"`
	Issuer                   string   `json:"issuer"`
	Audiences                []string `json:"audiences"`
	CertificateAuthorityFile string   `json:"certificateAuthorityFile,omitempty"`
	DiscoveryTokenFile       string   `json:"discoveryTokenFile,omitempty"`
}

JWTProviderConfig configures one trusted OIDC issuer.

Jump to

Keyboard shortcuts

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