Documentation ¶
Overview ¶
Package client ...
Package client provides helpers to communicate with Everest API ¶
Package client ...
Package client ...
Package client ...
Package client ...
Index ¶
- Variables
- type Everest
- func (e *Everest) CreateBackupStorage(ctx context.Context, body client.CreateBackupStorageJSONRequestBody) (*client.BackupStorage, error)
- func (e *Everest) CreateDBCluster(ctx context.Context, kubernetesID string, ...) (*client.DatabaseCluster, error)
- func (e *Everest) CreateMonitoringInstance(ctx context.Context, body client.CreateMonitoringInstanceJSONRequestBody) (*client.MonitoringInstance, error)
- func (e *Everest) DeleteDBCluster(ctx context.Context, kubernetesID string, name string) (*client.IoK8sApimachineryPkgApisMetaV1StatusV2, error)
- func (e *Everest) GetMonitoringInstance(ctx context.Context, name string) (*client.MonitoringInstance, error)
- func (e *Everest) ListDatabaseEngines(ctx context.Context, kubernetesID string) (*client.DatabaseEngineList, error)
- func (e *Everest) ListKubernetesClusters(ctx context.Context) ([]client.KubernetesCluster, error)
- func (e *Everest) ListMonitoringInstances(ctx context.Context) ([]client.MonitoringInstance, error)
- func (e *Everest) RegisterKubernetesCluster(ctx context.Context, body client.RegisterKubernetesClusterJSONRequestBody) (*client.KubernetesCluster, error)
- func (e *Everest) SetKubernetesClusterMonitoring(ctx context.Context, kubernetesID string, ...) error
- func (e *Everest) UnregisterKubernetesCluster(ctx context.Context, kubernetesID string, ...) error
Constants ¶
This section is empty.
Variables ¶
var ErrEverest = errors.New("")
ErrEverest is an error coming from Everest where Everest provided an error message.
Functions ¶
This section is empty.
Types ¶
type Everest ¶
type Everest struct {
// contains filtered or unexported fields
}
Everest is a connector to the Everest API.
func NewEverest ¶
NewEverest returns new Everest.
func NewEverestFromURL ¶
NewEverestFromURL returns a new Everest from a provided URL.
func (*Everest) CreateBackupStorage ¶
func (e *Everest) CreateBackupStorage( ctx context.Context, body client.CreateBackupStorageJSONRequestBody, ) (*client.BackupStorage, error)
CreateBackupStorage creates a new backup storage.
func (*Everest) CreateDBCluster ¶
func (e *Everest) CreateDBCluster( ctx context.Context, kubernetesID string, body client.CreateDatabaseClusterJSONRequestBody, ) (*client.DatabaseCluster, error)
CreateDBCluster creates a new database cluster.
func (*Everest) CreateMonitoringInstance ¶ added in v0.2.0
func (e *Everest) CreateMonitoringInstance( ctx context.Context, body client.CreateMonitoringInstanceJSONRequestBody, ) (*client.MonitoringInstance, error)
CreateMonitoringInstance creates a new monitoring instance.
func (*Everest) DeleteDBCluster ¶
func (e *Everest) DeleteDBCluster( ctx context.Context, kubernetesID string, name string, ) (*client.IoK8sApimachineryPkgApisMetaV1StatusV2, error)
DeleteDBCluster deletes a database cluster.
func (*Everest) GetMonitoringInstance ¶ added in v0.2.0
func (e *Everest) GetMonitoringInstance(ctx context.Context, name string) (*client.MonitoringInstance, error)
GetMonitoringInstance retrieves a monitoring instance by its name.
func (*Everest) ListDatabaseEngines ¶
func (e *Everest) ListDatabaseEngines(ctx context.Context, kubernetesID string) (*client.DatabaseEngineList, error)
ListDatabaseEngines lists database engines.
func (*Everest) ListKubernetesClusters ¶
ListKubernetesClusters lists all Kubernetes clusters.
func (*Everest) ListMonitoringInstances ¶ added in v0.2.0
ListMonitoringInstances lists monitoring instances.
func (*Everest) RegisterKubernetesCluster ¶
func (e *Everest) RegisterKubernetesCluster( ctx context.Context, body client.RegisterKubernetesClusterJSONRequestBody, ) (*client.KubernetesCluster, error)
RegisterKubernetesCluster registers a new Kubernetes cluster.
func (*Everest) SetKubernetesClusterMonitoring ¶ added in v0.2.0
func (e *Everest) SetKubernetesClusterMonitoring( ctx context.Context, kubernetesID string, body client.SetKubernetesClusterMonitoringJSONRequestBody, ) error
SetKubernetesClusterMonitoring configures Kubernetes cluster monitoring.
func (*Everest) UnregisterKubernetesCluster ¶
func (e *Everest) UnregisterKubernetesCluster( ctx context.Context, kubernetesID string, body client.UnregisterKubernetesClusterJSONRequestBody, ) error
UnregisterKubernetesCluster unregisters a Kubernetes cluster.