proc

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateAlertConfig added in v0.0.4

func ValidateAlertConfig()

Types

type InstallClient

type InstallClient struct {
}

func NewInstallClient

func NewInstallClient() InstallClient

func (InstallClient) Run

func (c InstallClient) Run(params InstallParams) error

type InstallParams

type InstallParams struct {
	ConfigPath string
	IsUser     bool
}

type SendAlertParam added in v0.0.7

type SendAlertParam struct {
	Config        domain.ConfigAlert
	Logs          domain.Logs
	IsError       bool
	ContainerName string
}

type StartBackupClient

type StartBackupClient struct {
	Config domain.Config
	Params StartBackupParams
}

func NewStartBackupClient

func NewStartBackupClient(params StartBackupParams) StartBackupClient

func (StartBackupClient) LoadConfig

func (c StartBackupClient) LoadConfig(path string) (*domain.Config, error)

func (StartBackupClient) MoveFile

func (c StartBackupClient) MoveFile(details domain.RunDetails, config domain.ConfigDest) error

func (StartBackupClient) ProcessDockerContainers

func (c StartBackupClient) ProcessDockerContainers(container domain.ContainerDocker) error

func (StartBackupClient) RunDaemon added in v0.0.4

func (c StartBackupClient) RunDaemon() error

func (StartBackupClient) RunProcess

func (c StartBackupClient) RunProcess() error

func (StartBackupClient) RunSingle added in v0.0.3

func (c StartBackupClient) RunSingle() error

This runs the tool once and closes down once its finished.

func (StartBackupClient) SendAlert

func (c StartBackupClient) SendAlert(params SendAlertParam)

func (*StartBackupClient) SetConfig

func (c *StartBackupClient) SetConfig(config domain.Config)

type StartBackupParams

type StartBackupParams struct {
	ConfigPath string
	Daemon     bool
}

Jump to

Keyboard shortcuts

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