Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultTLSGenDir = os.ExpandEnv("$HOME/.config/topaz/certs") CertificateSets = []string{"grpc", "gateway"} )
View Source
var ServiceTypeMap = func() map[string]ServiceType { serviceMap := make(map[string]ServiceType) for i := authorizer; i < exporter; i++ { serviceMap[i.String()] = i } return serviceMap }
Functions ¶
Types ¶
type AuthnConfig ¶
type AuthnConfig struct {
APIKeys map[string]string `json:"api_keys"`
Options CallOptions `json:"options"`
}
type CallOptions ¶
type CallOptions struct {
Default Options `json:"default"`
Overrides []OptionOverrides `json:"overrides"`
}
func (*CallOptions) ForPath ¶
func (co *CallOptions) ForPath(path string) *Options
type CommandMode ¶
type CommandMode int
CommandMode -- enum type.
const ( CommandModeUnknown CommandMode = 0 + iota CommandModeRun CommandModeBuild )
CommandMode -- enum constants.
type Common ¶
type Common struct {
Logging logger.Config `json:"logging"`
Command struct {
Mode CommandMode
} `json:"-"`
Services map[string]*builder.API `json:"api"`
JWT struct {
// Specifies the duration in which exp (Expiry) and nbf (Not Before)
// claims may differ by. This value should be positive.
AcceptableTimeSkewSeconds int `json:"acceptable_time_skew_seconds"`
} `json:"jwt"`
// Directory configuration
Edge directory.Config `json:"directory"`
// Authorizer directory resolver configuration
DirectoryResolver client.Config `json:"remote_directory"`
// Default OPA configuration
OPA runtime.Config `json:"opa"`
}
Config holds the configuration for the app.
type Config ¶
type Config struct {
Common `json:",squash"` // nolint:staticcheck // squash is used by mapstructure
Auth AuthnConfig `json:"auth"`
DecisionLogger file.Config `json:"decision_logger"`
}
type LoggerConfig ¶
type LoggerConfig Config
LoggerConfig is a basic Config copy that gets loaded before everything else, so we can log during resolving configuration.
type OptionOverrides ¶
type ServiceType ¶ added in v0.25.0
type ServiceType int
func (ServiceType) String ¶ added in v0.25.0
func (s ServiceType) String() string
Click to show internal directories.
Click to hide internal directories.