backup_info

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 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) 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 string `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

}

Jump to

Keyboard shortcuts

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