types

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Jobs      map[string]Job
	Uploaders map[string]Uploader
}

type ConfigJobUpload

type ConfigJobUpload struct {
	To       Uploader
	Filename string
	Config   any
}

type Job

type Job struct {
	Id     string
	Cron   string
	Preset Preset
	Upload ConfigJobUpload
}

type Preset

type Preset interface {
	Validate() error
	Run(file string) error
}

type Uploader

type Uploader interface {
	Config() any
	Upload(filepath string, filename string, conf any) error
	Validate() error
	ValidateConfig(conf any) error
}

Jump to

Keyboard shortcuts

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