database

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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