devops

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

README

lib-devops

devops library

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DevOps

type DevOps interface {
	InstallDatabase(dbClient types.DbClient, dbname ...string) (string, error)
	InstallTables(ctx biz.Context, store embed.FS, force bool, tableNames ...string) error
	ExportTables(ctx biz.Context, storePath string, tableNames ...string) error
}

func PostgresSQL

func PostgresSQL(app string, options ...Option) DevOps

func SQLite3

func SQLite3(app string, options ...Option) DevOps

type Option

type Option func(impl *devOpsImpl)

func WithDangerConfirm

func WithDangerConfirm(needConfirm bool) Option

WithDangerConfirm 危险命令是否需要确认

func WithTableOperator

func WithTableOperator(items ...TableOperator) Option

type TableOperator

type TableOperator interface {
	GetName() string
	Init(ctx biz.Context, fs embed.FS) error
	Export(ctx biz.Context, assetPath string) error
}

func NewTableOperator

func NewTableOperator(name string) TableOperator

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL