backupapi

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIV1 = "/v1"

	HTTPQueryVersionKey = "etcdVersion"
)

Variables

This section is empty.

Functions

func NewBackupURL

func NewBackupURL(scheme, host, version string) *url.URL

NewBackupURL creates a URL struct for retrieving an existing backup.

Types

type BackupStatus

type BackupStatus struct {
	// Size is the size of the backup.
	Size int64 `json:"size"`

	// Version is the version of the backup cluster.
	Version string `json:"version"`

	// TimeTookInSecond is the total time took to create the backup.
	TimeTookInSecond int `json:"timeTookInSecond"`
}

type ServiceStatus

type ServiceStatus struct {
	// RecentBackup is status of the most recent backup created by
	// the backup service
	RecentBackup *BackupStatus `json:"recentBackup,omitempty"`

	// Backups is the totoal number of existing backups
	Backups int `json:"backups"`
}

Jump to

Keyboard shortcuts

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