disk

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginBackupDisk = "backup_disk"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client struct

func New

func New(ctx context.Context, cfg *handlerTY.Config) (*Client, error)

disk backup client

func (*Client) Close

func (c *Client) Close() error

Close Func

func (*Client) Name

func (p *Client) Name() string

func (*Client) Post

func (c *Client) Post(parameters map[string]interface{}) error

Post func

func (*Client) Start

func (c *Client) Start() error

Start func

func (*Client) State

func (c *Client) State() *types.State

State func

type Config

type Config struct {
	Disabled             string // used globally
	Type                 string // used globally
	ProviderType         string // used globally
	Prefix               string
	StorageExportType    string
	TargetDirectory      string
	RetentionCount       int
	IncludeSecureShare   bool // include secure directory on the backup
	IncludeInsecureShare bool // include insecure directory on the backup
}

Config of disk backup client

Jump to

Keyboard shortcuts

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