external

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package external implements a cluster driver for an external cluster.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	Host              string // "host", "host:port", "/path/to/unix.socket",
	Database          string // database name
	SuperuserUsername string
	SuperuserPassword string
}

func (*Driver) CheckRequirements added in v1.17.0

func (d *Driver) CheckRequirements(ctx context.Context) error

func (*Driver) ClusterStatus

func (d *Driver) ClusterStatus(ctx context.Context, id sqldb.ClusterID) (*sqldb.ClusterStatus, error)

func (*Driver) CreateCluster

func (d *Driver) CreateCluster(ctx context.Context, p *sqldb.CreateParams, log zerolog.Logger) (*sqldb.ClusterStatus, error)

func (*Driver) DestroyCluster

func (d *Driver) DestroyCluster(ctx context.Context, id sqldb.ClusterID) error

func (*Driver) Meta added in v1.17.0

func (d *Driver) Meta() sqldb.DriverMeta

Jump to

Keyboard shortcuts

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