backup_info

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 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) GetGuestsNotInBackupNotBackedUp

func (c *Client) GetGuestsNotInBackupNotBackedUp(ctx context.Context) ([]GetGuestsNotInBackupNotBackedUpResponse, error)

GetGuestsNotInBackupNotBackedUp Shows all guests which are not covered by any backup job.

func (*Client) Index

func (c *Client) Index(ctx context.Context) ([]IndexResponse, error)

Index Index for backup info related endpoints

type GetGuestsNotInBackupNotBackedUpResponse

type GetGuestsNotInBackupNotBackedUpResponse struct {
	Type Type `url:"type" json:"type"` // Type of the guest.
	Vmid int  `url:"vmid" json:"vmid"` // VMID of the guest.

	// The following parameters are optional
	Name *string `url:"name,omitempty" json:"name,omitempty"` // Name of the guest
}

type HTTPClient

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

type IndexResponse

type IndexResponse struct {
	Subdir string `url:"subdir" json:"subdir"` // API sub-directory endpoint

}

type Type added in v0.0.15

type Type string
const (
	Type_QEMU Type = "qemu"
	Type_LXC  Type = "lxc"
)

func PtrType added in v0.0.15

func PtrType(i Type) *Type

Jump to

Keyboard shortcuts

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