Documentation ¶
Overview ¶
Package resources defines models used for provisioning.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct { CloneName string DockerImage string Pool Pool Host string Port uint DB *DB NetworkID string ContainerConf map[string]string // contains filtered or unexported fields }
AppConfig currently stores Postgres configuration (other application in the future too).
func (*AppConfig) SetExtraConf ¶
SetExtraConf sets a map with an extra configuration.
type EphemeralUser ¶
type EphemeralUser struct { // TODO(anatoly): Were private fields. How to keep them private? Name string Password string Restricted bool AvailableDB string }
EphemeralUser describes an ephemeral database user defined by Database Lab users.
type Pool ¶
type Pool struct { Name string Mode string DSA time.Time MountDir string CloneSubDir string DataSubDir string SocketSubDir string ObserverSubDir string }
Pool describes a storage pool.
func (Pool) ObserverDir ¶ added in v2.4.0
ObserverDir returns a path to the observer directory of the storage pool.
func (Pool) SocketCloneDir ¶
SocketCloneDir returns a path to the socket clone directory.
type Session ¶
type Session struct { ID string Pool string // Database. Port uint User string SocketHost string EphemeralUser EphemeralUser ExtraConfig map[string]string }
Session defines clone provision information and connection info.
type SessionState ¶
type SessionState struct {
CloneDiffSize uint64
}
SessionState defines current state of a Session.
Click to show internal directories.
Click to hide internal directories.