Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
Database represents a the PostgreSQL database.
type Sandbox ¶
type Sandbox struct {
// contains filtered or unexported fields
}
Sandbox is the implementation of the sandbox.
func (*Sandbox) Database ¶
Database creates a new user and database in the PostgreSQL server of the sandbox and returns an object that can be used to interact with it.
type SandboxBuilder ¶
type SandboxBuilder struct { }
SandboxBuilder is an object that contains the data and the logic needed to build a sandbox environment. Do not create instances of this type directly, use the NewSandbox function instead.
func NewSandbox ¶
func NewSandbox() *SandboxBuilder
NewSandbox creates a new builder that knows how to create a sandbox. The sandbox will be created when eventually calling the Build method. The builder can be used multiple times to create multiple sandboxes.
func (*SandboxBuilder) Build ¶
func (b *SandboxBuilder) Build() (s *Sandbox, err error)
Build uses the information stored inside the builder to create a new sandbox.