Documentation ¶
Index ¶
- func GetTLSDefaultConfig(configManager ConfigManager) (*tls.Config, error)
- func NewConfigManager(envSvc common.EnvService, slot agentcommon.AgentSlot) (*configManager, error)
- func NewConfigManagerPollTaskExecutor(cm *configManager) *pollTaskExecutor
- func NewEchoTask(buildID string, ...) *echoTask
- type AgentEndpointConfiguration
- type ConfigDir
- type ConfigFile
- type ConfigManager
- type ImmutableConfigObjectsDir
- type LeafConfigDir
- type RootConfigDir
- type WellKnownConfigFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTLSDefaultConfig ¶
func GetTLSDefaultConfig(configManager ConfigManager) (*tls.Config, error)
func NewConfigManager ¶
func NewConfigManager(envSvc common.EnvService, slot agentcommon.AgentSlot) (*configManager, error)
func NewConfigManagerPollTaskExecutor ¶
func NewConfigManagerPollTaskExecutor(cm *configManager) *pollTaskExecutor
func NewEchoTask ¶
func NewEchoTask(buildID string, newEcho func(config *AgentEndpointConfiguration) (*echo.Echo, error), cm ConfigManager, endpoint string, mode agentcommon.AgentSlot) *echoTask
Types ¶
type ConfigFile ¶
type ConfigFile string
func (ConfigFile) Exists ¶
func (f ConfigFile) Exists() (bool, error)
func (ConfigFile) LinkToAbsolutePath ¶
func (f ConfigFile) LinkToAbsolutePath(targetAbsPath string) error
func (ConfigFile) ReadJSON ¶
func (f ConfigFile) ReadJSON(v any) error
func (ConfigFile) WriteJSON ¶
func (f ConfigFile) WriteJSON(v any) error
type ConfigManager ¶
type ConfigManager interface { Client() agentclient.ClientWithResponsesInterface ConfigDir() RootConfigDir EnvConfig() *agentcommon.AgentEnv ConfigUpdate() <-chan *AgentEndpointConfiguration CryptoProvider() cryptoprovider.CryptoProvider }
type ImmutableConfigObjectsDir ¶
type ImmutableConfigObjectsDir struct {
ConfigDir
}
type LeafConfigDir ¶
type LeafConfigDir struct {
ConfigDir
}
func (LeafConfigDir) ConfigFile ¶
func (dir LeafConfigDir) ConfigFile(name WellKnownConfigFile) ConfigFile
type RootConfigDir ¶
type RootConfigDir struct {
ConfigDir
}
func (RootConfigDir) Active ¶
func (dir RootConfigDir) Active(name agentmodels.AgentConfigName) LeafConfigDir
func (RootConfigDir) Certs ¶
func (dir RootConfigDir) Certs() ImmutableConfigObjectsDir
func (RootConfigDir) JWKs ¶
func (dir RootConfigDir) JWKs() ImmutableConfigObjectsDir
func (RootConfigDir) Versioned ¶
func (dir RootConfigDir) Versioned(name agentmodels.AgentConfigName, version string) LeafConfigDir
type WellKnownConfigFile ¶
type WellKnownConfigFile string
Click to show internal directories.
Click to hide internal directories.