config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppInfo

type AppInfo struct {
	Name                 string
	Port                 int32
	Image                string
	Namespace            string
	InterceptorConfig    Interceptor
	ExternalScalerConfig ExternalScaler
}

func (AppInfo) ExternalScalerDeploymentName

func (a AppInfo) ExternalScalerDeploymentName() string

func (AppInfo) ExternalScalerServiceName

func (a AppInfo) ExternalScalerServiceName() string

func (AppInfo) InterceptorAdminServiceName

func (a AppInfo) InterceptorAdminServiceName() string

func (AppInfo) InterceptorDeploymentName

func (a AppInfo) InterceptorDeploymentName() string

func (AppInfo) InterceptorProxyServiceName

func (a AppInfo) InterceptorProxyServiceName() string

func (AppInfo) ScaledObjectName

func (a AppInfo) ScaledObjectName() string

type ExternalScaler

type ExternalScaler struct {
	Image string
	Port  int32
}

ExternalScaler holds static configuration info for the external scaler

func NewExternalScalerFromEnv

func NewExternalScalerFromEnv() (*ExternalScaler, error)

NewExternalScalerFromEnv gets external scaler configuration values from environment variables and/or sensible defaults if values were missing. and returns the interceptor struct to match. Returns an error if required values were missing.

type Interceptor

type Interceptor struct {
	Image     string
	ProxyPort int32
	AdminPort int32
}

Interceptor holds static configuration info for the interceptor

func NewInterceptorFromEnv

func NewInterceptorFromEnv() (*Interceptor, error)

NewInterceptorFromEnv gets interceptor configuration values from environment variables and/or sensible defaults if values were missing. and returns the interceptor struct to match. Returns an error if required values were missing.

Jump to

Keyboard shortcuts

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