state

package
v1.27.2 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackupFailure

func BackupFailure(service util.Service, filename string)

func BackupInit

func BackupInit(service util.Service)

func BackupQueue

func BackupQueue(service util.Service)

func BackupStart

func BackupStart(service util.Service, filename string)

func BackupSuccess

func BackupSuccess(service util.Service, filename string)

func RestoreFailure

func RestoreFailure(service util.Service, filename string)

func RestoreInit

func RestoreInit(service util.Service)

func RestoreQueue

func RestoreQueue(service util.Service)

func RestoreStart

func RestoreStart(service util.Service, filename string)

func RestoreSuccess

func RestoreSuccess(service util.Service, filename string)

Types

type State

type State struct {
	Service   util.Service  `json:",omitempty"`
	Operation string        `json:",omitempty"`
	Status    string        `json:",omitempty"`
	Filename  string        `json:",omitempty"`
	At        time.Time     `json:",omitempty"`
	Duration  time.Duration `json:",omitempty"`
}

swagger:response state

type StateTracker

type StateTracker struct {
	*sync.RWMutex
	// contains filtered or unexported fields
}

func Tracker

func Tracker() *StateTracker

func (*StateTracker) Delete

func (st *StateTracker) Delete(service util.Service)

func (*StateTracker) Get added in v1.5.0

func (st *StateTracker) Get(service util.Service) (State, bool)

func (*StateTracker) List added in v1.5.0

func (st *StateTracker) List() []State

func (*StateTracker) Set

func (st *StateTracker) Set(service util.Service, state State)

type States added in v1.5.0

type States []State

swagger:response states

Jump to

Keyboard shortcuts

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