Documentation
¶
Index ¶
- type Config
- type FlowConfig
- type NICoConfig
- type RunInEnvironment
- type TemporalConfig
- func (tc *TemporalConfig) GetTemporalCACertFilePath() (string, string)
- func (tc *TemporalConfig) GetTemporalCACertFullPath() string
- func (tc *TemporalConfig) GetTemporalCertOTPFullPath() string
- func (tc *TemporalConfig) GetTemporalClientCertFilePath() ([]string, string)
- func (tc *TemporalConfig) GetTemporalClientCertFullPath() string
- func (tc *TemporalConfig) GetTemporalClientKeyFullPath() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Temporal TemporalConfig
NICo NICoConfig
Flow FlowConfig
IsMasterPod bool `json:"isMasterPod"`
EnableDebug bool `json:"enableDebug"`
DevMode bool `json:"devMode"`
EnableTLS bool `json:"enableTLS"`
DisableBootstrap bool `json:"disableBootstrap"`
BootstrapSecret string `json:"bootstrapSecret"` // Path to the bootstrap secret file
WatcherInterval time.Duration `json:"watcherInterval"`
PodNamespace string `json:"podNamespace"`
TemporalSecret string `json:"temporalSecret"`
MetricsPort string `json:"metricsPort"`
SiteVersion string `json:"siteVersion"`
CloudVersion string `json:"cloudVersion"`
RunningIn RunInEnvironment
UtMode bool
}
Config for Site Agent
type FlowConfig ¶
type FlowConfig struct {
Enabled bool `json:"flowEnabled"`
Address string `json:"flowAddress"`
Secure client.FlowClientSecureOptions `json:"flowSecureOptions"`
SkipServerAuth bool `json:"flowSkipServerAuth"`
ServerCAPath string `json:"flowCertPath"`
ClientCertPath string `json:"flowClientCertPath"`
ClientKeyPath string `json:"flowClientKeyPath"`
}
FlowConfig holds configurations for connecting to Flow server
type NICoConfig ¶
type NICoConfig struct {
Address string `json:"nicoAddress"`
Secure client.SecureOptions `json:"nicoSecureOptions"`
SkipServerAuth bool `json:"nicoSkipServerAuth"`
ServerCAPath string `json:"nicoCertPath"`
ClientCertPath string `json:"nicoClientCertPath"`
ClientKeyPath string `json:"nicoClientKeyPath"`
}
NICoConfig holds configurations for connecting to NICo server
type RunInEnvironment ¶
type RunInEnvironment int
RunInEnvironment provides a strongly-typed indicator for the environment in which the app is running.
const ( // RunningInUnknown - Running In Unknown Env RunningInUnknown RunInEnvironment = iota // RunningInDocker - Running In Docker RunningInDocker // RunningInK8s - Running In K8s RunningInK8s )
type TemporalConfig ¶
type TemporalConfig struct {
Host string `json:"host"`
Port string `json:"port"`
ClusterID string `json:"clusterID"`
TemporalServer string `json:"temporalServer"`
TemporalPublishNamespace string `json:"temporalPublishNamespace"`
TemporalSubscribeNamespace string `json:"temporalSubscribeNamespace"`
TemporalPublishQueue string `json:"temporalPublishQueue"`
TemporalSubscribeQueue string `json:"temporalSubscribeQueue"`
TemporalInventorySchedule string `json:"temporalInventorySchedule"`
TemporalCertPath string `json:"temporalCertPath"`
}
TemporalConfig holds configurations for connecting to Temporal server
func (*TemporalConfig) GetTemporalCACertFilePath ¶
func (tc *TemporalConfig) GetTemporalCACertFilePath() (string, string)
GetTemporalCACertFilePath - Get Temporal CA Cert File n Path
func (*TemporalConfig) GetTemporalCACertFullPath ¶
func (tc *TemporalConfig) GetTemporalCACertFullPath() string
GetTemporalCACertFullPath - Get Temporal CA Cert Full Path
func (*TemporalConfig) GetTemporalCertOTPFullPath ¶
func (tc *TemporalConfig) GetTemporalCertOTPFullPath() string
GetTemporalCertOTPFullPath - Get Temporal Cert OTP path
func (*TemporalConfig) GetTemporalClientCertFilePath ¶
func (tc *TemporalConfig) GetTemporalClientCertFilePath() ([]string, string)
GetTemporalClientCertFilePath - Get Temporal client Cert File n Path
func (*TemporalConfig) GetTemporalClientCertFullPath ¶
func (tc *TemporalConfig) GetTemporalClientCertFullPath() string
GetTemporalClientCertFullPath - Get Temporal client Cert Full Path
func (*TemporalConfig) GetTemporalClientKeyFullPath ¶
func (tc *TemporalConfig) GetTemporalClientKeyFullPath() string
GetTemporalClientKeyFullPath - Get Temporal client Key Full Path