Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertsProvider ¶
type AlertsProvider interface {
GetAlertsChannel() (channel <-chan interface{})
}
AlertsProvider alert data provider interface.
type CertificateProvider ¶
type CertificateProvider interface {
GetCertificate(certType string) (certURL, ketURL string, err error)
}
CertificateProvider interface to get certificate.
type InstanceLauncher ¶
type InstanceLauncher interface { RunInstances(instances []aostypes.InstanceInfo, forceRestart bool) error RuntimeStatusChannel() <-chan launcher.RuntimeStatus OverrideEnvVars(envVarsInfo []cloudprotocol.EnvVarsInstanceInfo) ([]cloudprotocol.EnvVarsInstanceStatus, error) CloudConnection(connected bool) error }
InstanceLauncher service instances launcher interface.
type LayersProcessor ¶
LayersProcessor process desired layer list.
type LogsProvider ¶
type LogsProvider interface { GetInstanceLog(request cloudprotocol.RequestLog) error GetInstanceCrashLog(request cloudprotocol.RequestLog) error GetSystemLog(request cloudprotocol.RequestLog) GetLogsDataChannel() (channel <-chan cloudprotocol.PushLog) }
LogsProvider logs data provider interface.
type MonitoringDataProvider ¶
type MonitoringDataProvider interface { GetAverageMonitoring() (aostypes.NodeMonitoring, error) GetNodeMonitoringChannel() <-chan aostypes.NodeMonitoring }
MonitoringDataProvider monitoring data provider interface.
type NetworkProvider ¶
type NetworkProvider interface {
UpdateNetworks(networkParameters []aostypes.NetworkParameters) error
}
NetworkProvider network provider interface.
type NodeConfigProcessor ¶
type NodeConfigProcessor interface { GetNodeConfigStatus() (version string, err error) CheckNodeConfig(configJSON, version string) error UpdateNodeConfig(configJSON, version string) error }
NodeConfigProcessor node configuration handler.
type NodeInfoProvider ¶
type NodeInfoProvider interface {
GetCurrentNodeInfo() (cloudprotocol.NodeInfo, error)
}
NodeInfoProvider interface to get node information.
type SMClient ¶
SMClient SM client instance.
func New ¶
func New(config *config.Config, nodeInfoProvider NodeInfoProvider, certificateProvider CertificateProvider, servicesProcessor ServicesProcessor, layersProcessor LayersProcessor, launcher InstanceLauncher, nodeConfigProcessor NodeConfigProcessor, alertsProvider AlertsProvider, monitoringProvider MonitoringDataProvider, logsProvider LogsProvider, networkManager NetworkProvider, cryptcoxontext *cryptutils.CryptoContext, insecure bool, ) (*SMClient, error)
New creates SM client fo communication with CM.
type ServicesProcessor ¶
type ServicesProcessor interface {
ProcessDesiredServices(services []aostypes.ServiceInfo) error
}
ServicesProcessor process desired services list.
Click to show internal directories.
Click to hide internal directories.