list

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

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.

func (*DBEngines) Run

func (d *DBEngines) Run(ctx context.Context) (DBEnginesList, error)

Run runs the database engines list command.

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.

func (*Versions) Run

func (v *Versions) Run(ctx context.Context) (VersionsList, error)

Run runs the versions list command.

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

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.

Jump to

Keyboard shortcuts

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