package
Version:
v0.0.0-...-dde1a55
Opens a new window with list of versions in this module.
Published: Jan 15, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
Jobs []Job `yaml:"jobs"`
}
type Decryption struct {
Password string `yaml:"password"`
}
type Expect struct {
Code int `yaml:"code" default:"200"`
Body string `yaml:"body"`
}
type File struct {
Path string `yaml:"path"`
Permissions Permissions `yaml:"permissions"`
}
type HTTPResource struct {
URL string `yaml:"url"`
Method string `yaml:"method"`
Expect Expect `yaml:"expect"`
Timeout time.Duration `yaml:"timeout"`
MaxAttempts int `yaml:"max_attempts" default:"3"`
Body string `yaml:"body"`
}
type Job struct {
Name string `yaml:"name"`
Schedule Schedule `yaml:"schedule"`
Resource Resource `yaml:"resource"`
File File `yaml:"file"`
Trigger Trigger `yaml:"trigger"`
}
type Permissions struct {
Mode string `yaml:"mode" default:"0644"`
Owner string `yaml:"owner" default:"root"`
Group string `yaml:"group" default:"root"`
}
type S3Resource struct {
Endpoint string `yaml:"endpoint"`
AccessKeyID string `yaml:"access_key_id"`
SecretAccessKey string `yaml:"secret_access_key"`
Bucket string `yaml:"bucket"`
Region string `yaml:"region"`
SSL bool `yaml:"ssl" default:"true"`
Object string `yaml:"object"`
}
type Schedule struct {
Expression string `yaml:"expression"`
Timezone string `yaml:"timezone" default:"Local"`
Jitter int `yaml:"jitter" default:"5"`
}
type Trigger struct {
Command []string `yaml:"command"`
User string `yaml:"user" default:"root"`
Group string `yaml:"group" default:"root"`
CWD string `yaml:"cwd"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.