sctxt

package
v0.0.0-...-3a65d20 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsContextEventAvaliable

func IsContextEventAvaliable(event EventType) bool

Types

type BackupOutput

type BackupOutput struct {
	FilesNew            uint   `json:"files_new"`
	FilesChanged        uint   `json:"files_changed"`
	FilesUnmodified     uint   `json:"files_unmodified"`
	DirsNew             uint   `json:"dirs_new"`
	DirsChanged         uint   `json:"dirs_changed"`
	DirsUnmodified      uint   `json:"dirs_unmodified"`
	TotalFilesProcessed uint   `json:"total_files_processed"`
	TotalBytesProcessed uint64 `json:"total_bytes_processed"`
	SnapshotID          string `json:"snapshot_id"`
}

type EventType

type EventType string // @name EventType
const (
	EvOperationStart EventType = "OPERATION_START"
	EvOperationStop  EventType = "OPERATION_STOP"
	EvOperationError EventType = "OPERATION_ERROR"

	EvSourceStart EventType = "SOURCE_START"
	EvSourceStop  EventType = "SOURCE_STOP"
	EvSourceError EventType = "SOURCE_ERROR"

	EvDestinationStart EventType = "DESTINATION_START"
	EvDestinationStop  EventType = "DESTINATION_STOP"
	EvDestinationError EventType = "DESTINATION_ERROR"
)

type OperationType

type OperationType string // @name OperationType
const (
	OpTypeBackup    OperationType = "BACKUP"
	OpTypePrune     OperationType = "PRUNE"
	OpTypeRestore   OperationType = "RESTORE"
	OpTypeSnapshots OperationType = "SNAPSHOTS"
	OpTypeStats     OperationType = "STATS"
)

type TriggerType

type TriggerType string // @name TriggerType
const (
	TSchedule TriggerType = "SCHEDULE"
	TApi      TriggerType = "API"
	TManual   TriggerType = "MANUAL"
)

Jump to

Keyboard shortcuts

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