internal

package
v1.0.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDumpFilenameFromPatternAndDate

func CreateDumpFilenameFromPatternAndDate(pattern string, date time.Time) string

func CreateGzipFile

func CreateGzipFile(sourceFilePath string, targetFilePath string) (err error)

func FindAllCommandOptionsFromString

func FindAllCommandOptionsFromString(optionsString string) []string

func RemoveSomeValuesFromSliceByRegExp

func RemoveSomeValuesFromSliceByRegExp(slice []string, regexp *regexp.Regexp) []string

Types

type Aws

type Aws struct {
	// contains filtered or unexported fields
}

func NewAws

func NewAws(config AwsConfig) (aws Aws, err error)

func (*Aws) NewS3

func (aws *Aws) NewS3(bucketName string) S3

type AwsConfig

type AwsConfig struct {
	AccessKeyId     string
	SecretAccessKey string
	Region          string
}

type Mysql

type Mysql struct {
	// contains filtered or unexported fields
}

func NewMysql

func NewMysql(
	host string,
	port uint16,
	user string,
	password string,
	database string,
	mysqldumpExecutable string,
	mysqldumpOptions []string,
) Mysql

func (Mysql) Dump

func (m Mysql) Dump(outPutFile *os.File) (err error)

type Postgres

type Postgres struct {
	// contains filtered or unexported fields
}

func NewPostgres

func NewPostgres(
	host string,
	port uint16,
	user string,
	password string,
	database string,
	pgDumpExecutable string,
	pdDumpOptions []string,
) Postgres

func (Postgres) Dump

func (pg Postgres) Dump(outPutFile *os.File) (err error)

type S3

type S3 struct {
	// contains filtered or unexported fields
}

func (*S3) PutObject

func (s3 *S3) PutObject(objectKey string, file *os.File) (err error)

Jump to

Keyboard shortcuts

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