dmanager

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDestinationDriver

func GetDestinationDriver(destinationName string, driver Destination, serviceName string, taskName string, driverConfig interface{}, driverEnv interface{}) (interfaces.DriverDestinationInterface, error)

func GetNotificationDriver

func GetNotificationDriver(driver Notification, serviceName string, taskName string, driverConfig interface{}) (interfaces.DriverNotificationInterface, error)

func GetSourceDriver

func GetSourceDriver(driver Source, serviceName string, taskName string, driverConfig interface{}, driverEnv interface{}) (interfaces.DriverSourceInterface, error)

func IsAvailableDriverDestination

func IsAvailableDriverDestination(driver Destination) bool

func IsAvailableDriverNotification

func IsAvailableDriverNotification(driver Notification) bool

func IsAvailableDriverSource

func IsAvailableDriverSource(driver Source) bool

Types

type Destination

type Destination string
const (
	DriverDestinationLocal  Destination = "local"
	DriverDestinationRestic Destination = "restic"
)

func GetAvailableDriverDestination

func GetAvailableDriverDestination() []Destination

type Notification

type Notification string
const (
	DriverNotificationConsole  Notification = "console"
	DriverNotificationEmail    Notification = "email"
	DriverNotificationSlack    Notification = "slack"
	DriverNotificationTelegram Notification = "telegram"
)

func GetAvailableDriverNotification

func GetAvailableDriverNotification() []Notification

type Source

type Source string
const (
	DriverSourceLocal   Source = "local"
	DriverSourceMysql   Source = "mysql"
	DriverSourcePg      Source = "pg"
	DriverSourceMongodb Source = "mongodb"
)

func GetAvailableDriverSource

func GetAvailableDriverSource() []Source

Jump to

Keyboard shortcuts

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