Versions in this module Expand all Collapse all v2 v2.4.0 Jul 9, 2021 v2.2.0 Feb 9, 2021 Changes in this version + func IsValidConfig(cfg Config) error + func NewNoRoomError(errorMessage string) error + type Config struct + ContainerConfig map[string]string + DockerImage string + KeepUserPasswords bool + PortPool PortPool + UseSudo bool + type NoRoomError struct + func (e *NoRoomError) Error() string + type PortPool struct + From uint + To uint + type Provisioner struct + func New(ctx context.Context, cfg *Config, dbCfg *resources.DB, docker *client.Client, ...) (*Provisioner, error) + func (p *Provisioner) GetDiskState() (*resources.Disk, error) + func (p *Provisioner) GetSessionState(s *resources.Session) (*resources.SessionState, error) + func (p *Provisioner) GetSnapshots() ([]resources.Snapshot, error) + func (p *Provisioner) Init() error + func (p *Provisioner) LastSessionActivity(session *resources.Session, minimumTime time.Time) (*time.Time, error) + func (p *Provisioner) Reload(cfg Config, dbCfg resources.DB) + func (p *Provisioner) ResetSession(session *resources.Session, snapshotID string) error + func (p *Provisioner) StartSession(snapshotID string, user resources.EphemeralUser, extraConfig map[string]string) (*resources.Session, error) + func (p *Provisioner) StopSession(session *resources.Session) error Other modules containing this package gitlab.com/postgres-ai/database-lab