database

package
v0.0.0-...-ec5d02d Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateID

func GenerateID(prefix string) string

Types

type PostgresProvisioner

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

func NewPostgresProvisioner

func NewPostgresProvisioner(dockerClient *docker.Client, registry *RegistryManager) *PostgresProvisioner

func (*PostgresProvisioner) Provision

func (p *PostgresProvisioner) Provision(name string, password string, vpc string) (*models.Database, error)

type RegistryManager

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

func NewRegistryManager

func NewRegistryManager() (*RegistryManager, error)

func (*RegistryManager) Add

func (r *RegistryManager) Add(db models.Database) error

func (*RegistryManager) Get

func (r *RegistryManager) Get(name string) (*models.Database, error)

func (*RegistryManager) GetByID

func (r *RegistryManager) GetByID(id string) (*models.Database, error)

func (*RegistryManager) Initialize

func (r *RegistryManager) Initialize() error

func (*RegistryManager) List

func (r *RegistryManager) List() ([]models.Database, error)

func (*RegistryManager) Read

func (r *RegistryManager) Read() (*models.Registry, error)

func (*RegistryManager) Remove

func (r *RegistryManager) Remove(name string) error

func (*RegistryManager) Update

func (r *RegistryManager) Update(db models.Database) error

func (*RegistryManager) Write

func (r *RegistryManager) Write(registry *models.Registry) error

type VPCRegistryManager

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

func NewVPCRegistryManager

func NewVPCRegistryManager() (*VPCRegistryManager, error)

func (*VPCRegistryManager) Add

func (r *VPCRegistryManager) Add(vpc models.VPC) error

func (*VPCRegistryManager) AddDatabaseToVPC

func (r *VPCRegistryManager) AddDatabaseToVPC(vpcName string, dbID string) error

func (*VPCRegistryManager) Delete

func (r *VPCRegistryManager) Delete(name string) error

func (*VPCRegistryManager) Exists

func (r *VPCRegistryManager) Exists(name string) (bool, error)

func (*VPCRegistryManager) Get

func (r *VPCRegistryManager) Get(name string) (*models.VPC, error)

func (*VPCRegistryManager) Initialize

func (r *VPCRegistryManager) Initialize() error

func (*VPCRegistryManager) List

func (r *VPCRegistryManager) List() ([]models.VPC, error)

func (*VPCRegistryManager) RemoveDatabaseFromVPC

func (r *VPCRegistryManager) RemoveDatabaseFromVPC(vpcName string, dbID string) error

func (*VPCRegistryManager) Update

func (r *VPCRegistryManager) Update(vpc models.VPC) error

type ValkeyProvisioner

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

func NewValkeyProvisioner

func NewValkeyProvisioner(dockerClient *docker.Client, registry *RegistryManager) *ValkeyProvisioner

func (*ValkeyProvisioner) Provision

func (v *ValkeyProvisioner) Provision(name string, password string, vpc string) (*models.Database, error)

Jump to

Keyboard shortcuts

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