Documentation
¶
Overview ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- func LoadAppConfiguration(configFilePath string, configFile string)
- type AppDBConfig
- type AuthConfig
- type MonitoringDBconfig
- type NodeManagerConfig
- type ProviderConfig
- type ProviderInfo
- type ProvisionerConfig
- type Route
- type ScheduleConfig
- type SkyringCollection
- type SkyringConfig
- type SkyringLogging
- type SystemCapabilities
- type SystemSummaryConfig
Constants ¶
const ( ProviderConfDir = "providers.d" ProviderBinaryDir = "providers" )
Variables ¶
This section is empty.
Functions ¶
func LoadAppConfiguration ¶
Types ¶
type AppDBConfig ¶
type AuthConfig ¶
type MonitoringDBconfig ¶
type MonitoringDBconfig struct { Hostname string `json:"hostname"` Port int `json:"port"` DataPushPort int `json:"dataPushPort"` CollectionName string `json:"collection_name"` User string `json:"user"` Password string `json:"password"` ManagerName string `json:"managername"` ConfigFilePath string `json:"configfilepath"` }
type NodeManagerConfig ¶
type ProviderConfig ¶
type ProviderInfo ¶
type ProviderInfo struct { Provider ProviderConfig `json:"provider"` Routes []Route `json:"routes"` Provisioner ProvisionerConfig `json:"provisioner"` ProviderOptions map[string]interface{} `json:"provideroptions"` }
func LoadProviderConfig ¶
func LoadProviderConfig(providerConfigDir string) []ProviderInfo
type ProvisionerConfig ¶
type ScheduleConfig ¶
type ScheduleConfig struct {
ClustersSyncInterval int `json:"clustersSyncInterval"`
}
type SkyringCollection ¶
type SkyringCollection struct { Config SkyringConfig `json:"config"` Logging SkyringLogging `json:"logging"` NodeManagementConfig NodeManagerConfig `json:"nodemanagementconfig"` DBConfig AppDBConfig `json:"dbconfig"` TimeSeriesDBConfig MonitoringDBconfig `json:"timeseriesdbconfig"` Authentication AuthConfig `json:"authentication"` SummaryConfig SystemSummaryConfig `json:"summary"` Provisioners map[string]ProvisionerConfig `json:"provisioners"` SysCapabilities SystemCapabilities `json:"systemcapabilities"` ScheduleConfig ScheduleConfig `json:"schedule"` }
var (
SystemConfig SkyringCollection
)
type SkyringConfig ¶
type SkyringLogging ¶
type SystemCapabilities ¶
type SystemCapabilities struct { ProductName string `bson:"productname",json:"productname"` ProductVersion string `bson:"productversion",json:"productversion"` StorageProviderDetails map[string]string `bson:"providerversion",json:"providerversion"` DbSoftware string `bson:"dbsoftware",json:"dbsoftware"` DbSoftwareVersion string `bson:"dbsoftwareversion",json:"dbsoftwareversion"` MonitoringSoftware string `bson:"monitoringsoftware",json:"monitoringsoftware"` MonitoringSoftwareVer string `bson:"monitoringsoftwarever",json:"monitoringsoftwarever"` }
type SystemSummaryConfig ¶
type SystemSummaryConfig struct {
NetSummaryInterval int `json:"netSummaryInterval"`
}