Documentation
¶
Index ¶
- type Config
- type Context
- type DB
- type Module
- func (m *Module) Commands(c *typbuildtool.Context) []*cli.Command
- func (m *Module) Configure() *typcore.Configuration
- func (m *Module) Destroy() []*typdep.Invocation
- func (m *Module) DockerCompose(version typdocker.Version) *typdocker.ComposeObject
- func (m *Module) Prepare() []*typdep.Invocation
- func (m *Module) Provide() []*typdep.Constructor
- func (m *Module) WithConfigName(configName string) *Module
- func (m *Module) WithDBName(dbname string) *Module
- func (m *Module) WithDockerImage(dockerImage string) *Module
- func (m *Module) WithDockerName(dockerName string) *Module
- func (m *Module) WithHost(host string) *Module
- func (m *Module) WithMigrationSource(migrationSource string) *Module
- func (m *Module) WithPassword(password string) *Module
- func (m *Module) WithPort(port int) *Module
- func (m *Module) WithSeedSource(seedSource string) *Module
- func (m *Module) WithUser(user string) *Module
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
DBName string `required:"true"`
User string `required:"true" default:"postgres"`
Password string `required:"true" default:"pgpass"`
Host string `default:"localhost"`
Port int `default:"5432"`
}
Config is postgres configuration
type Context ¶ added in v0.8.23
type Context struct {
*typbuildtool.Context
*Module
Cli *cli.Context
}
Context of postgress
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
Module of postgres
func (*Module) Commands ¶ added in v0.8.23
func (m *Module) Commands(c *typbuildtool.Context) []*cli.Command
Commands of module
func (*Module) Configure ¶ added in v0.8.9
func (m *Module) Configure() *typcore.Configuration
Configure the module
func (*Module) Destroy ¶ added in v0.8.9
func (m *Module) Destroy() []*typdep.Invocation
Destroy dependencies
func (*Module) DockerCompose ¶ added in v0.8.9
func (m *Module) DockerCompose(version typdocker.Version) *typdocker.ComposeObject
DockerCompose template
func (*Module) Prepare ¶ added in v0.8.9
func (m *Module) Prepare() []*typdep.Invocation
Prepare the module
func (*Module) Provide ¶ added in v0.8.9
func (m *Module) Provide() []*typdep.Constructor
Provide the dependencies
func (*Module) WithConfigName ¶ added in v0.8.23
WithConfigName return module with new configName
func (*Module) WithDBName ¶ added in v0.8.15
WithDBName return module with new database name
func (*Module) WithDockerImage ¶ added in v0.8.18
WithDockerImage return module with new docker image
func (*Module) WithDockerName ¶ added in v0.8.17
WithDockerName to return module with new docker name
func (*Module) WithMigrationSource ¶ added in v0.8.18
WithMigrationSource return module with new migration source
func (*Module) WithPassword ¶ added in v0.8.17
WithPassword return module with new password
func (*Module) WithSeedSource ¶ added in v0.8.18
WithSeedSource return module with new seed source
Click to show internal directories.
Click to hide internal directories.