Documentation ¶
Index ¶
- Constants
- func ImageExists(ctx context.Context) (ok bool, err error)
- func PullImage(ctx context.Context) error
- type Driver
- func (d *Driver) CanDestroyCluster(ctx context.Context, id sqldb.ClusterID) error
- func (d *Driver) CheckRequirements(ctx context.Context) error
- func (d *Driver) ClusterStatus(ctx context.Context, id sqldb.ClusterID) (*sqldb.ClusterStatus, error)
- func (d *Driver) CreateCluster(ctx context.Context, p *sqldb.CreateParams, log zerolog.Logger) (status *sqldb.ClusterStatus, err error)
- func (d *Driver) DestroyCluster(ctx context.Context, id sqldb.ClusterID) error
- func (d *Driver) DestroyNamespaceData(ctx context.Context, ns *namespace.Namespace) error
- func (d *Driver) Meta() sqldb.DriverMeta
Constants ¶
View Source
const ( DefaultSuperuserUsername = "postgres" DefaultSuperuserPassword = "postgres" DefaultRootDatabase = "postgres" )
View Source
const Image = "encoredotdev/postgres:15"
Variables ¶
This section is empty.
Functions ¶
func ImageExists ¶
ImageExists reports whether the docker image exists.
Types ¶
type Driver ¶
type Driver struct{}
func (*Driver) CanDestroyCluster ¶ added in v1.23.0
func (*Driver) CheckRequirements ¶ added in v1.17.0
func (*Driver) ClusterStatus ¶
func (*Driver) CreateCluster ¶
func (d *Driver) CreateCluster(ctx context.Context, p *sqldb.CreateParams, log zerolog.Logger) (status *sqldb.ClusterStatus, err error)
func (*Driver) DestroyCluster ¶
func (*Driver) DestroyNamespaceData ¶ added in v1.23.3
func (*Driver) Meta ¶ added in v1.17.0
func (d *Driver) Meta() sqldb.DriverMeta
Click to show internal directories.
Click to hide internal directories.