Documentation ¶
Overview ¶
Copyright 2022 Red Hat, Inc. All Rights Reserved.
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 ¶
- Variables
- func FilterCollections(Components []string) ([]bson.E, []bson.E)
- func FilterVersions(coll *mongo.Collection, deploymentIdPipeline primitive.A) (message string)
- func FilterVersionsPerComp(coll *mongo.Collection, thePipeline primitive.A) (message string)
- func GenerateTable(title string, rows [][]string, headers []string) string
- func GetUserInfo()
- func GetVersion(dep Deployment) string
- func NewFilter(coll *mongo.Collection, deploymentIdPipeline primitive.A) (int32, float32)
- func PrependStage(gatherVersions primitive.A) primitive.A
- func PrintResults(coll *mongo.Collection, filterComponents primitive.D, ...)
- type Calculations
- type Cephfs
- type CinderBackEnd
- type CinderConf
- type CinderDriversKey
- type Count
- type DBKey
- type DefaultCinder
- type DefaultGlance
- type DefaultManila
- type Deployment
- type GlanceConf
- type KeyManagerkey
- type KeystoneAuth
- type ManilaConf
- type MyDataBase
- type Nova
- type OctaviaWorker
- type OspVer
- type TripleoNFSKey
- type UserInfo
- type Vhistory
Constants ¶
This section is empty.
Variables ¶
View Source
var ComponentStages map[string][]bson.E
View Source
var Data = []struct { OSP string Deployments int32 Percentage float64 PercentageTotal float64 }{}
View Source
var DepInfo map[string]string
View Source
var Deployments []Deployment
View Source
var MyFilter bson.A
View Source
var UniqueDepsLen int
Functions ¶
func FilterVersions ¶
func FilterVersions(coll *mongo.Collection, deploymentIdPipeline primitive.A) (message string)
func FilterVersionsPerComp ¶
func FilterVersionsPerComp(coll *mongo.Collection, thePipeline primitive.A) (message string)
func GetVersion ¶
func GetVersion(dep Deployment) string
func PrintResults ¶
func PrintResults(coll *mongo.Collection, filterComponents primitive.D, opts *options.FindOptions)
Types ¶
type Calculations ¶
var Manila Calculations
type CinderBackEnd ¶
type CinderBackEnd struct {
Driver string `json:"volume_driver,omitempty"`
}
type CinderConf ¶
type CinderConf struct { DatabaseKey DBKey `json:"database,omitempty"` Default DefaultCinder `json:"default,omitempty"` KeyManager KeyManagerkey `json:"key_manager,omitempty"` KeystoneAuthToken KeystoneAuth `json:"keystone_authtoken,omitempty"` NovaKey Nova `json:"nova,omitempty"` TripleoNFS TripleoNFSKey `json:"tripleo_nfs,omitempty"` UploadDate string `json:"up_data_date,omitempty"` Driver []string `json:"up_cinder_volume_drivers,omitempty"` BackendName CinderBackEnd }
type CinderDriversKey ¶
type CinderDriversKey struct {
Drivers []string
}
type DefaultCinder ¶
type DefaultCinder struct { VolumeType string `json:"default_volume_type,omitempty"` EnabledV3api string `json:"enable_v3_api,omitempty"` EnabledBackends string `json:"enabled_backends,omitempty"` OSApiVolumeWorkers string `json:"osapi_volume_workers,omitempty"` StoraAvailZone string `json:"storage_availability_zone,omitempty"` }
type DefaultGlance ¶
type DefaultGlance struct {
GlanceDrivers string `json:"enabled_backends,omitempty"`
}
type DefaultManila ¶
type DefaultManila struct {
Backends string `json:"enabled_share_backends,omitempty"`
}
type Deployment ¶
type Deployment struct { ID string `json:"_id,omitempty"` AccountNumber string `json:"account_number,omitempty"` CinderConf CinderConf `json:"cinder_conf,omitempty"` ManilaConf ManilaConf `json:"manila_conf,omitempty"` DeploymentID string `json:"deployment_id,omitempty"` Versions Vhistory `json:"versions_history,omitempty"` GlanceConf GlanceConf `json:"glance_api_conf,omitempty"` }
type GlanceConf ¶
type GlanceConf struct {
Default DefaultGlance `json:"default,omitempty"`
}
type KeyManagerkey ¶
type KeyManagerkey struct {
Backend string `json:"backend,omitempty"`
}
type KeystoneAuth ¶
type ManilaConf ¶
type ManilaConf struct { Default DefaultManila `json:"default,omitempty"` Cephfs Cephfs `json:"cephfs,omitempty"` }
type MyDataBase ¶
type MyDataBase struct { MyClient *mongo.Client Coll *mongo.Collection }
func (*MyDataBase) CreateClient ¶
func (m *MyDataBase) CreateClient() *MyDataBase
This function creates a client for accessing a MongoDB database.
type OctaviaWorker ¶
type TripleoNFSKey ¶
Click to show internal directories.
Click to hide internal directories.