conf

package
v0.0.0-...-d1c0bb1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2016 License: Apache-2.0 Imports: 7 Imported by: 11

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

View Source
const (
	ProviderConfDir   = "providers.d"
	ProviderBinaryDir = "providers"
)

Variables

This section is empty.

Functions

func LoadAppConfiguration

func LoadAppConfiguration(configFilePath string, configFile string)

Types

type AppDBConfig

type AppDBConfig struct {
	Hostname string `json:"hostname"`
	Port     int    `json:"port"`
	Database string `json:"database"`
	User     string `json:"user"`
	Password string `json:"password"`
}

type AuthConfig

type AuthConfig struct {
	ProviderName string
	ConfigFile   string
}

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 NodeManagerConfig struct {
	ManagerName    string `json:"managername"`
	ConfigFilePath string `json:"configfilepath"`
}

type ProviderConfig

type ProviderConfig struct {
	Name           string  `json:"name"`
	ProviderBinary string  `json:"binary"`
	CompatVersion  float64 `json:"compatible_version"`
}

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 ProvisionerConfig struct {
	ProvisionerName string `json:"provisionername"`
	ConfigFilePath  string `json:"configfilepath"`
	RedhatStorage   bool   `json:"redhatstorage"`
	RedhatUseCdn    bool   `json:"redhatusecdn"`
}

type Route

type Route struct {
	Name       string `json:"name"`
	Method     string `json:"method"`
	Pattern    string `json:"pattern"`
	PluginFunc string `json:"pluginFunc"`
	Version    int    `json:"version"`
}

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 SkyringConfig struct {
	Host              string `json:"host"`
	HttpPort          int    `json:"httpPort"`
	SSLEnabled        bool   `json:"sslEnabled"`
	SslPort           int    `json:"sslPort"`
	SslCert           string `json:"sslCert"`
	SslKey            string `json:"sslKey"`
	SupportedVersions []int  `json:"supportedversions"`
}

type SkyringLogging

type SkyringLogging struct {
	LogToStderr bool          `json:"logToStderr"`
	Filename    string        `json:"filename"`
	Level       logging.Level `json:"level"`
}

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"`
}

Jump to

Keyboard shortcuts

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