vzdump

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(c HTTPClient) *Client

func (*Client) Create

func (c *Client) Create(ctx context.Context, req *CreateRequest) (*CreateResponse, error)

Create Create backup.

func (*Client) Defaults

func (c *Client) Defaults(ctx context.Context, req *DefaultsRequest) (*DefaultsResponse, error)

Defaults Get the currently configured vzdump defaults.

func (*Client) Extractconfig

func (c *Client) Extractconfig(ctx context.Context, req *ExtractconfigRequest) (*ExtractconfigResponse, error)

Extractconfig Extract configuration from vzdump backup archive.

type CreateRequest

type CreateRequest map[string]interface{}

type CreateResponse

type CreateResponse string

type DefaultsRequest

type DefaultsRequest struct {
	Node string `url:"node",json:"node"` // The cluster node name.

	// The following parameters are optional
	Storage *string `url:"storage,omitempty",json:"storage,omitempty"` // The storage identifier.
}

type DefaultsResponse

type DefaultsResponse map[string]interface{}

type ExtractconfigRequest

type ExtractconfigRequest struct {
	Node   string `url:"node",json:"node"`     // The cluster node name.
	Volume string `url:"volume",json:"volume"` // Volume identifier

}

type ExtractconfigResponse

type ExtractconfigResponse string

type HTTPClient

type HTTPClient interface {
	Do(context.Context, string, string, interface{}, interface{}) error
}

Jump to

Keyboard shortcuts

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