api

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiServer

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

func NewApiServer

func NewApiServer(server *server.MessagesServer) *ApiServer

func (*ApiServer) BackupsMetadata

func (*ApiServer) GetClients

func (a *ApiServer) GetClients(m *pbapi.Empty, stream pbapi.Api_GetClientsServer) error

func (*ApiServer) LastBackupMetadata

func (a *ApiServer) LastBackupMetadata(ctx context.Context, e *pbapi.LastBackupMetadataParams) (*pb.BackupMetadata, error)

LastBackupMetadata returns the last backup metadata so it can be stored in the local filesystem as JSON

func (*ApiServer) RunBackup

func (a *ApiServer) RunBackup(ctx context.Context, opts *pbapi.RunBackupParams) (*pbapi.Error, error)

StartBackup starts a backup by calling server's StartBackup gRPC method This call waits until the backup finish

func (*ApiServer) RunRestore

Jump to

Keyboard shortcuts

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