Documentation ¶
Index ¶
- Constants
- func BindCommandlineArguments()
- func ConfigureCommandLineLogging()
- func ConfigureLogging()
- func ContextWithDefaultTimeout() (*armadacontext.Context, context.CancelFunc)
- func LoadConfig(config interface{}, defaultPath string, overrideConfigs []string) *viper.Viper
- func ServeHttp(port uint16, mux http.Handler) (shutdown func())
- func ServeHttps(port uint16, mux http.Handler, certFile, keyFile string) (shutdown func())
- func ServeMetrics(port uint16) (shutdown func())
- func ServeMetricsFor(port uint16, gatherer prometheus.Gatherer) (shutdown func())
- func UnmarshalKey(v *viper.Viper, key string, item interface{}) error
- type LoginCredentials
Constants ¶
View Source
const PodNamePrefix string = "armada-"
Variables ¶
This section is empty.
Functions ¶
func BindCommandlineArguments ¶
func BindCommandlineArguments()
func ConfigureCommandLineLogging ¶
func ConfigureCommandLineLogging()
TODO Move logging-related code out of common into a new package internal/logging
func ConfigureLogging ¶
func ConfigureLogging()
func ContextWithDefaultTimeout ¶
func ContextWithDefaultTimeout() (*armadacontext.Context, context.CancelFunc)
func LoadConfig ¶
TODO Move code relating to config out of common into a new package internal/serverconfig
func ServeHttp ¶
ServeHttp starts an HTTP server listening on the given port. TODO: Make block until a context passed in is cancelled.
func ServeHttps ¶ added in v0.3.93
func ServeMetrics ¶
func ServeMetrics(port uint16) (shutdown func())
func ServeMetricsFor ¶
func ServeMetricsFor(port uint16, gatherer prometheus.Gatherer) (shutdown func())
Types ¶
type LoginCredentials ¶
func (*LoginCredentials) GetRequestMetadata ¶
func (*LoginCredentials) RequireTransportSecurity ¶
func (c *LoginCredentials) RequireTransportSecurity() bool
Directories ¶
Path | Synopsis |
---|---|
Package armadaerrors contains generic errors that should be returned by code handling gRPC requests.
|
Package armadaerrors contains generic errors that should be returned by code handling gRPC requests. |
grpcpool
Package grpcpool provides a pool of grpc clients
|
Package grpcpool provides a pool of grpc clients |
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.