database

package
v0.0.0-...-02b76df Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	User, Host, Sslmode string
	Timeout, Port       int
	// contains filtered or unexported fields
}

Database contains the configuration for the postgres db

func New

func New(ctx *pulumi.Context, image *docker.RemoteImage) (Database, error)

New spins up a postgres db docker image

func (*Database) Create

func (d *Database) Create(name string) error

Create creates a database with a spcific name

func (*Database) Ready

func (d *Database) Ready() error

Ready performs a health check on the db

Jump to

Keyboard shortcuts

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