executor

package
v0.0.0-...-b6b237c Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

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

func CreateExecutor

func CreateExecutor(opts ...ExecutorOption) (*Executor, error)

func (*Executor) ServeForEver

func (e *Executor) ServeForEver() error

func (*Executor) Shutdown

func (e *Executor) Shutdown() error

type ExecutorOption

type ExecutorOption func(*Executor)

func WithAWSS3AccessKey

func WithAWSS3AccessKey(accessKey string) ExecutorOption

func WithAWSS3BucketName

func WithAWSS3BucketName(bucketName string) ExecutorOption

func WithAWSS3Endpoint

func WithAWSS3Endpoint(endpoint string) ExecutorOption

func WithAWSS3InsecureSkipVerify

func WithAWSS3InsecureSkipVerify(skipVerify bool) ExecutorOption

func WithAWSS3Region

func WithAWSS3Region(region string) ExecutorOption

func WithAWSS3SecretAccessKey

func WithAWSS3SecretAccessKey(secretAccessKey string) ExecutorOption

func WithAWSS3Secure

func WithAWSS3Secure(secure bool) ExecutorOption

func WithBackupPath

func WithBackupPath(path string) ExecutorOption

func WithColoniesInsecure

func WithColoniesInsecure(insecure bool) ExecutorOption

func WithColoniesServerHost

func WithColoniesServerHost(host string) ExecutorOption

func WithColoniesServerPort

func WithColoniesServerPort(port int) ExecutorOption

func WithColonyID

func WithColonyID(id string) ExecutorOption

func WithColonyPrvKey

func WithColonyPrvKey(prvkey string) ExecutorOption

func WithDBDatabase

func WithDBDatabase(name string) ExecutorOption

func WithDBHost

func WithDBHost(host string) ExecutorOption

func WithDBPassword

func WithDBPassword(password string) ExecutorOption

func WithDBPort

func WithDBPort(port int) ExecutorOption

func WithDBUser

func WithDBUser(user string) ExecutorOption

func WithExecutorID

func WithExecutorID(id string) ExecutorOption

func WithExecutorPrvKey

func WithExecutorPrvKey(key string) ExecutorOption

func WithFullbackups

func WithFullbackups(count int) ExecutorOption

type Result

type Result struct {
	Filename         string `json:"filename"`
	Bucket           string `json:"bucket"`
	FilePathS3       string `json:"filepath_s3"`
	ExecTimeBackup   int64  `json:"exectime_backup"`
	Size             int64  `json:"size"`
	SizeS3           int64  `json:"size_s3"`
	ExecTimeUploadS3 int64  `json:"exectime_upload_s3"`
}

func (*Result) ToJSON

func (r *Result) ToJSON() (string, error)

Jump to

Keyboard shortcuts

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