Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct { // Type of the adapter (client) to use for the source calendar Type string `yaml:"type"` // ID of the calendar in which the adapter will work. Calendar string `yaml:"calendar"` // CustomMap is an adapter-specific map to configure it. Config CustomMap `yaml:"config"` // OAuth values for the adapter OAuth OAuth `yaml:"oAuth"` }
type AdapterConfig ¶
type AdapterConfig struct {
// contains filtered or unexported fields
}
func NewAdapterConfig ¶
func NewAdapterConfig(config Adapter) AdapterConfig
func (AdapterConfig) Adapter ¶
func (cfg AdapterConfig) Adapter() Adapter
type AuthStorage ¶
type CustomMap ¶
type CustomMap map[string]interface{}
CustomMap is meant to provide custom parameters to different adapters/transformers.
type File ¶
type File struct { Path string Auth AuthStorage Source Source `yaml:"source"` Sink Sink `yaml:"sink"` Filters []Filter `yaml:"filters,omitempty"` Transformations []Transformer `yaml:"transformations,omitempty"` Sync Sync `yaml:"sync"` UpdateConcurrency int `yaml:"updateConcurrency,omitempty"` }
func NewFromFile ¶
type Transformer ¶
type Transformer struct { // Name of the transformer to run Name string `yaml:"name"` // Any kind of parameter which can be passed to a transformer. Config CustomMap `yaml:"config"` }
Transformer configures the name
Click to show internal directories.
Click to hide internal directories.