Documentation ¶
Index ¶
- func GetDestinationNameList(serviceName string, taskName string) []string
- func GetLoadedAt() time.Time
- func GetLocation() *time.Location
- func GetServiceNameList() []string
- func GetTaskNameList(serviceName string) []string
- func Load(pathname string) error
- func SetCliConfig(config *CliConfig)
- func WatchConfigChanges(ctx context.Context, cancel func())
- func Yaml() string
- type API
- type CliConfig
- type Config
- type Definitions
- type DriverDestinationConfig
- type DriverNotificationConfig
- type DriverSourceConfig
- type Extends
- type FileInfo
- type FileLists
- type OperationMode
- type Schedule
- type Secrets
- type Service
- type Task
- type TaskConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDestinationNameList ¶
func GetLoadedAt ¶
func GetLocation ¶
func GetServiceNameList ¶
func GetServiceNameList() []string
func GetTaskNameList ¶
func SetCliConfig ¶
func SetCliConfig(config *CliConfig)
func WatchConfigChanges ¶
Types ¶
type Config ¶
type Config struct { TimeZone string `yaml:"timezone,omitempty"` Services map[string]Service `yaml:"services"` Tags []string `yaml:"tags,omitempty"` Secrets Secrets `yaml:"secrets,omitempty"` Extends Extends `yaml:"extends,omitempty"` Definitions Definitions `yaml:"definitions,omitempty"` API API `yaml:"api,omitempty"` // contains filtered or unexported fields }
type Definitions ¶
type Definitions struct { Destinations map[string]DriverDestinationConfig `yaml:"destinations,omitempty"` Notifications map[string]DriverNotificationConfig `yaml:"notifications,omitempty"` }
type DriverDestinationConfig ¶
type DriverDestinationConfig struct { Extends string `yaml:"extends,omitempty"` Driver dmanager.Destination `yaml:"driver,omitempty"` Config interface{} `yaml:"config,omitempty"` Env map[string]string `yaml:"env,omitempty"` }
type DriverNotificationConfig ¶
type DriverNotificationConfig struct { Driver dmanager.Notification `yaml:"driver,omitempty"` Config map[string]string `yaml:"config,omitempty"` Events []sctxt.EventType `yaml:"events,omitempty"` }
func (*DriverNotificationConfig) IsAvailableEvent ¶
func (notification *DriverNotificationConfig) IsAvailableEvent(event sctxt.EventType) bool
type DriverSourceConfig ¶
type OperationMode ¶
type OperationMode string
const ( OperationModeCopy OperationMode = "copy" OperationModePreferPipe OperationMode = "prefer-pipe" OperationModePipe OperationMode = "pipe" )
type Task ¶
type Task struct { OperationMode OperationMode `yaml:"operationMode,omitempty"` Source DriverSourceConfig `yaml:"source,omitempty"` Destinations map[string]DriverDestinationConfig `yaml:"destinations,omitempty"` Notifications []string `yaml:"notifications,omitempty"` Schedule Schedule `yaml:"schedule,omitempty"` Tags []string `yaml:"tags,omitempty"` }
type TaskConfig ¶
type TaskConfig struct { Schedule Schedule Source DriverSourceConfig OperationMode OperationMode Destinations map[string]DriverDestinationConfig Notifications map[string]DriverNotificationConfig Tags []string }
func GetConfigForTask ¶
func GetConfigForTask(serviceName string, taskName string) (TaskConfig, error)
Click to show internal directories.
Click to hide internal directories.