client

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: 7 Imported by: 0

Documentation

Overview

Package client ...

Package client provides helpers to communicate with Everest API

Package client ...

Package client ...

Package client ...

Package client ...

Index

Constants

This section is empty.

Variables

View Source
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

func NewEverest(everestClient *client.Client) *Everest

NewEverest returns new Everest.

func NewEverestFromURL

func NewEverestFromURL(url string) (*Everest, error)

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

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

func (e *Everest) ListKubernetesClusters(ctx context.Context) ([]client.KubernetesCluster, error)

ListKubernetesClusters lists all Kubernetes clusters.

func (*Everest) ListMonitoringInstances added in v0.2.0

func (e *Everest) ListMonitoringInstances(ctx context.Context) ([]client.MonitoringInstance, error)

ListMonitoringInstances lists monitoring instances.

func (*Everest) RegisterKubernetesCluster

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.

Jump to

Keyboard shortcuts

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