conftypes

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Temporal         TemporalConfig
	CoreGrpc         CoreGrpcConfig
	FlowGrpc         FlowGrpcConfig
	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

func NewConfType

func NewConfType() *Config

NewConfType - new config

func (*Config) String

func (c *Config) String() string

String - json string

type CoreGrpcConfig added in v1.6.0

type CoreGrpcConfig struct {
	Address        string               `json:"coreGrpcAddress"`
	Secure         client.SecureOptions `json:"coreGrpcSecureOptions"`
	SkipServerAuth bool                 `json:"coreGrpcSkipServerAuth"`
	ServerCAPath   string               `json:"coreGrpcCertPath"`
	ClientCertPath string               `json:"coreGrpcClientCertPath"`
	ClientKeyPath  string               `json:"coreGrpcClientKeyPath"`
}

CoreGrpcConfig holds configurations for connecting to CoreGrpc server

type FlowGrpcConfig added in v1.6.0

type FlowGrpcConfig struct {
	Enabled        bool                               `json:"flowGrpcEnabled"`
	Address        string                             `json:"flowGrpcAddress"`
	Secure         client.FlowGrpcClientSecureOptions `json:"flowGrpcSecureOptions"`
	SkipServerAuth bool                               `json:"flowGrpcSkipServerAuth"`
	ServerCAPath   string                             `json:"flowGrpcCertPath"`
	ClientCertPath string                             `json:"flowGrpcClientCertPath"`
	ClientKeyPath  string                             `json:"flowGrpcClientKeyPath"`
}

FlowGrpcConfig holds configurations for connecting to Flow gRPC 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

Jump to

Keyboard shortcuts

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