Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
DebugLabelValue string `envconfig:"optional"`
Log struct {
Level string `envconfig:"default=info"`
NoJson bool `envconfig:"default=false"`
}
ShutdownTimeout time.Duration `envconfig:"default=1s"`
EnableHttp2 bool `envconfig:"default=false"`
Metrics struct {
BindAddress string `envconfig:"default=:8080"`
Secure bool `envconfig:"default=false"`
}
Webhooks struct {
Enabled bool `envconfig:"default=false"`
CertDir string `envconfig:"default=certs,optional"`
}
Probes struct {
BindAddress string `envconfig:"default=:8081"`
}
LeaderElection struct {
Enabled bool `envconfig:"default=false"`
}
Subroutines struct {
Workspace struct {
Enabled bool `envconfig:"default=true"`
}
AccountInfo struct {
Enabled bool `envconfig:"default=true"`
}
FGA struct {
Enabled bool `envconfig:"default=true"`
RootNamespace string `envconfig:"default=openmfp-root"`
GrpcAddr string `envconfig:"default=localhost:8081"`
ObjectType string `envconfig:"default=account"`
ParentRelation string `envconfig:"default=parent"`
CreatorRelation string `envconfig:"default=owner"`
}
}
MaxConcurrentReconciles int `envconfig:"default=10"`
Kcp struct {
VirtualWorkspaceUrl string `envconfig:"optional"`
ProviderWorkspace string `envconfig:"optional,default=root"`
}
FGA struct {
StoreId string `envconfig:"default=1"`
}
}
Config struct to hold the app config
func NewFromEnv ¶
NewFromEnv creates a Config from environment values
Click to show internal directories.
Click to hide internal directories.