Documentation ¶
Index ¶
- type Application
- func (a *Application) GetAPIVersion() string
- func (a *Application) GetCustomConfig() KV
- func (a *Application) GetMatchedPrimaryPort(name PortName) *MatchedPrimaryPort
- func (a *Application) GetMatchedPrimaryPortLocation(name PortName) *Location
- func (a *Application) GetName() string
- func (a *Application) GetSecondaryPort(name PortName) *SecondaryPort
- func (a *Application) GetSecondaryPorts() map[PortName]SecondaryPort
- type ApplicationSpec
- type Common
- type Database
- type Encryptor
- type Interface
- type KV
- func (kv KV) Get(key string) interface{}
- func (kv KV) GetBool(key string) bool
- func (kv KV) GetDuration(key string) time.Duration
- func (kv KV) GetFloat64(key string) float64
- func (kv KV) GetInt(key string) int
- func (kv KV) GetInt32(key string) int32
- func (kv KV) GetInt64(key string) int64
- func (kv KV) GetString(key string) string
- func (kv KV) GetStringMap(key string) map[string]interface{}
- func (kv KV) GetStringMapString(key string) map[string]string
- func (kv KV) GetStringMapStringSlice(key string) map[string][]string
- func (kv KV) GetStringSlice(key string) []string
- func (kv KV) GetTime(key string) time.Time
- func (kv KV) GetUint(key string) uint
- func (kv KV) GetUint32(key string) uint32
- func (kv KV) GetUint64(key string) uint64
- func (kv KV) LoadTo(out interface{}) error
- type Location
- type Log
- type MatchedPrimaryPort
- type ObjectMeta
- type PortName
- type PreProcessFunc
- type PrimaryPort
- type SecondaryPort
- type TypeMeta
- type Var
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { TypeMeta `json:",inline"` ObjectMeta `json:"metadata,omitempty"` Spec ApplicationSpec `json:"spec,omitempty"` }
func New ¶
func New(configFile string, funcs ...PreProcessFunc) (*Application, error)
func (*Application) GetAPIVersion ¶
func (a *Application) GetAPIVersion() string
func (*Application) GetCustomConfig ¶
func (a *Application) GetCustomConfig() KV
func (*Application) GetMatchedPrimaryPort ¶
func (a *Application) GetMatchedPrimaryPort(name PortName) *MatchedPrimaryPort
func (*Application) GetMatchedPrimaryPortLocation ¶
func (a *Application) GetMatchedPrimaryPortLocation(name PortName) *Location
func (*Application) GetName ¶
func (a *Application) GetName() string
func (*Application) GetSecondaryPort ¶
func (a *Application) GetSecondaryPort(name PortName) *SecondaryPort
func (*Application) GetSecondaryPorts ¶
func (a *Application) GetSecondaryPorts() map[PortName]SecondaryPort
type ApplicationSpec ¶
type ApplicationSpec struct { PrimaryPorts map[PortName]PrimaryPort `json:"primary_ports,omitempty"` SecondaryPorts map[PortName]SecondaryPort `json:"secondary_ports,omitempty"` CustomConfig KV `json:"custom_config,omitempty"` }
type Common ¶
type Database ¶
type Database struct { MaxOpenConnections int `json:"max_open_connections,omitempty"` MaxIdleConnections int `json:"max_idle_connections,omitempty"` ConnectionMaxLifeSeconds int64 `json:"connection_max_life_seconds,omitempty"` ConnectionMaxIdleSeconds int64 `json:"connection_max_idle_seconds,omitempty"` SlowThresholdMilliseconds int64 `json:"slow_threshold_milliseconds,omitempty"` }
type KV ¶
type KV map[string]interface{}
func (KV) GetFloat64 ¶
func (KV) GetStringMap ¶
func (KV) GetStringMapStringSlice ¶
func (KV) GetStringSlice ¶
type MatchedPrimaryPort ¶
type ObjectMeta ¶
type PreProcessFunc ¶
type PrimaryPort ¶
type SecondaryPort ¶
type SecondaryPort struct { Interface Interface `json:"interface,omitempty"` Options KV `json:"options,omitempty"` MatchedPrimaryPort *MatchedPrimaryPort `json:"matched_primary_port,omitempty"` }
Click to show internal directories.
Click to hide internal directories.