Documentation ¶
Overview ¶
Package list holds the main logic for list commands.
Package list ...
Package list holds the main logic for list commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBEngine ¶
type DBEngine struct {
Version string `json:"version"`
}
DBEngine stores information about a database engine.
type DBEngines ¶
type DBEngines struct {
// contains filtered or unexported fields
}
DBEngines implements the main logic for commands.
func NewDatabaseEngines ¶
func NewDatabaseEngines(c DBEnginesConfig, everestClient everestClientConnector, l *zap.SugaredLogger) *DBEngines
NewDatabaseEngines returns a new DBEngines struct.
type DBEnginesConfig ¶
type DBEnginesConfig struct { KubernetesID string `mapstructure:"kubernetes-id"` Everest EverestConfig }
DBEnginesConfig stores configuration for the database engines.
type DBEnginesList ¶
type DBEnginesList map[everestv1alpha1.EngineType]DBEngine
DBEnginesList stores list of database engines.
func (DBEnginesList) String ¶
func (d DBEnginesList) String() string
String returns string result of database engines list.
type EverestConfig ¶
type EverestConfig struct { // Endpoint stores URL to Everest. Endpoint string }
EverestConfig stores config for Everest.
type Versions ¶
type Versions struct {
// contains filtered or unexported fields
}
Versions implements the main logic for commands.
func NewVersions ¶
func NewVersions(c VersionsConfig, everestClient everestClientConnector, l *zap.SugaredLogger) *Versions
NewVersions returns a new Versions struct.
type VersionsConfig ¶
type VersionsConfig struct { KubernetesID string `mapstructure:"kubernetes-id"` Everest EverestConfig // Type represents a database engine type. Type string }
VersionsConfig stores configuration for the versions command.
type VersionsList ¶
type VersionsList map[everestv1alpha1.EngineType]goversion.Collection
VersionsList stores a list of versions per engine type.
func (VersionsList) String ¶
func (v VersionsList) String() string
String returns string result of database engines list.