Documentation
¶
Index ¶
- func CallCommand(args []string, flags []string) (bytes.Buffer, bytes.Buffer, bool)
- func CheckForCommandErrors(stdout, stderr bytes.Buffer, exited bool) (bytes.Buffer, bool)
- func ParseStdoutAsJSON(stdout bytes.Buffer) (interface{}, error)
- func ParseStdoutAsMessage(stdout bytes.Buffer, message *APIMessage) error
- func ParseStdoutAsMigrations(stdout bytes.Buffer, data *APIMigrations) error
- func StatefulExecutionStrategy(args, flags []string) (interface{}, error)
- func StatelessExecutionStrategy(args, flags []string) (interface{}, error)
- type APIError
- type APIMessage
- type APIMigrations
- type Controller
- type Migration
- type MigrationsController
- func (controller *MigrationsController) Applied(ctx *gin.Context)
- func (controller *MigrationsController) List(ctx *gin.Context)
- func (controller *MigrationsController) Migrate(ctx *gin.Context)
- func (controller *MigrationsController) Pending(ctx *gin.Context)
- func (controller *MigrationsController) Rollback(ctx *gin.Context)
- type RequestBody
- type StaticController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallCommand ¶
func CheckForCommandErrors ¶
func ParseStdoutAsJSON ¶
func ParseStdoutAsMessage ¶
func ParseStdoutAsMessage(stdout bytes.Buffer, message *APIMessage) error
func ParseStdoutAsMigrations ¶
func ParseStdoutAsMigrations(stdout bytes.Buffer, data *APIMigrations) error
Types ¶
type APIMessage ¶
type APIMessage struct {
Message string `json:"message"`
}
type APIMigrations ¶
type Controller ¶
type MigrationsController ¶
type MigrationsController struct {
Controller
}
func (*MigrationsController) Applied ¶
func (controller *MigrationsController) Applied(ctx *gin.Context)
func (*MigrationsController) List ¶
func (controller *MigrationsController) List(ctx *gin.Context)
func (*MigrationsController) Migrate ¶
func (controller *MigrationsController) Migrate(ctx *gin.Context)
func (*MigrationsController) Pending ¶
func (controller *MigrationsController) Pending(ctx *gin.Context)
func (*MigrationsController) Rollback ¶
func (controller *MigrationsController) Rollback(ctx *gin.Context)
type RequestBody ¶
type RequestBody struct {
Migration string `json:"migration"`
}
type StaticController ¶
type StaticController struct {
Controller
}
func (StaticController) Documentation ¶
func (StaticController) Documentation(ctx *gin.Context)
func (*StaticController) Health ¶
func (controller *StaticController) Health(ctx *gin.Context)
func (StaticController) Ping ¶
func (StaticController) Ping(ctx *gin.Context)
Click to show internal directories.
Click to hide internal directories.