clickhousestatic

package
v0.52.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(specJSON []byte, _ database.DB, logger *zap.Logger) (provisioner.Provisioner, error)

Types

type Provisioner

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

Provisioner provisions Clickhouse resources using a static, multi-tenant Clickhouse service. It creates a new (virtual) database and user with access restricted to that database for each resource.

func (*Provisioner) AwaitReady

func (p *Provisioner) AwaitReady(ctx context.Context, r *provisioner.Resource) error

func (*Provisioner) Check

func (p *Provisioner) Check(ctx context.Context) error

func (*Provisioner) CheckResource

func (*Provisioner) Close

func (p *Provisioner) Close() error

func (*Provisioner) Deprovision

func (p *Provisioner) Deprovision(ctx context.Context, r *provisioner.Resource) error

func (*Provisioner) Provision

func (*Provisioner) Type

func (p *Provisioner) Type() string

type Spec

type Spec struct {
	// DSN with admin permissions for a Clickhouse service.
	// This will be used to create a new (virtual) database and access-restricted user for each provisioned resource.
	DSN string `json:"dsn"`
}

Jump to

Keyboard shortcuts

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