database

package
v1.3.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package database TODO

Index

Constants

View Source
const (
	// DBClusterKind defines kind for DB cluster.
	DBClusterKind = "DatabaseCluster"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DBClusterClient

type DBClusterClient struct {
	// contains filtered or unexported fields
}

DBClusterClient contains a rest client.

func NewForConfig

func NewForConfig(c *rest.Config) (*DBClusterClient, error)

NewForConfig creates a new database cluster client based on config.

func (*DBClusterClient) DBClusters

func (c *DBClusterClient) DBClusters(namespace string) DBClusterInterface

DBClusters returns a db cluster client.

type DBClusterClientInterface

type DBClusterClientInterface interface {
	DBClusters(namespace string) DBClusterInterface
}

DBClusterClientInterface supports getting a database cluster client.

type DBClusterInterface

type DBClusterInterface interface {
	List(ctx context.Context, opts metav1.ListOptions) (*everestv1alpha1.DatabaseClusterList, error)
	Get(ctx context.Context, name string, options metav1.GetOptions) (*everestv1alpha1.DatabaseCluster, error)
	Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
}

DBClusterInterface supports list, get and watch methods.

Jump to

Keyboard shortcuts

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