Documentation
¶
Overview ¶
Package adapters holds CLI adapters that connect the icarus CLI to the processors
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter interface {
// Initialize creates a new subcommand for the argparse parser.
Initialize(parser *argparse.Parser) (*argparse.Command, error)
// SetToolbox sets the toolbox that can be used by the processor
SetToolbox(toolbox processors.Toolbox)
// Process processes the incoming calendar and fills the output calendar
Process(input ical.Calendar, output *ical.Calendar) error
}
The Adapter connects the Icarus CLI with a processor
func GetAdapters ¶
func GetAdapters() []Adapter
GetAdapters returns a list of enabled processor adapters
type AddAlarmAdapter ¶
type AddAlarmAdapter struct {
// contains filtered or unexported fields
}
The AddAlarmAdapter adds an alarm definition to all selected events
func (*AddAlarmAdapter) Initialize ¶
func (*AddAlarmAdapter) SetToolbox ¶
func (a *AddAlarmAdapter) SetToolbox(toolbox processors.Toolbox)
type AddDTStampAdapter ¶
type AddDTStampAdapter struct {
// contains filtered or unexported fields
}
The AddDTStampAdapter adds a DTSTAMP field to all selected events
func (*AddDTStampAdapter) Initialize ¶
func (*AddDTStampAdapter) SetToolbox ¶
func (t *AddDTStampAdapter) SetToolbox(toolbox processors.Toolbox)
type AddPropertyAdapter ¶
type AddPropertyAdapter struct {
// contains filtered or unexported fields
}
The AddPropertyAdapter adds an ICS property to each selected event
func (*AddPropertyAdapter) Initialize ¶
func (*AddPropertyAdapter) SetToolbox ¶
func (a *AddPropertyAdapter) SetToolbox(toolbox processors.Toolbox)
type ConvertAllDayAdapter ¶
type ConvertAllDayAdapter struct {
// contains filtered or unexported fields
}
The ConvertAllDayAdapter converts all-day events to timed events or vice versa
func (*ConvertAllDayAdapter) Initialize ¶
func (*ConvertAllDayAdapter) SetToolbox ¶
func (c *ConvertAllDayAdapter) SetToolbox(toolbox processors.Toolbox)
type CopyPropertyAdapter ¶ added in v2.8.0
type CopyPropertyAdapter struct {
// contains filtered or unexported fields
}
The CopyPropertyAdapter adds an ICS property to each selected event
func (*CopyPropertyAdapter) Initialize ¶ added in v2.8.0
func (*CopyPropertyAdapter) SetToolbox ¶ added in v2.8.0
func (a *CopyPropertyAdapter) SetToolbox(toolbox processors.Toolbox)
type DeletePropertyAdapter ¶
type DeletePropertyAdapter struct {
// contains filtered or unexported fields
}
The DeletePropertyAdapter deletes an ICS property from all selected events
func (*DeletePropertyAdapter) Initialize ¶
func (*DeletePropertyAdapter) SetToolbox ¶
func (d *DeletePropertyAdapter) SetToolbox(toolbox processors.Toolbox)
type FilterAdapter ¶
type FilterAdapter struct {
// contains filtered or unexported fields
}
The FilterAdapter filters the calendar for selected events
func (*FilterAdapter) Initialize ¶
func (*FilterAdapter) SetToolbox ¶
func (f *FilterAdapter) SetToolbox(toolbox processors.Toolbox)
type MergeAdapter ¶ added in v2.7.0
type MergeAdapter struct {
// contains filtered or unexported fields
}
The FilterAdapter filters the calendar for selected events
func (*MergeAdapter) Initialize ¶ added in v2.7.0
func (*MergeAdapter) SetToolbox ¶ added in v2.7.0
func (f *MergeAdapter) SetToolbox(toolbox processors.Toolbox)
type PrintAdapter ¶
type PrintAdapter struct {
// contains filtered or unexported fields
}
The PrintAdapter simply outputs the input calendar
func (*PrintAdapter) Initialize ¶
func (*PrintAdapter) SetToolbox ¶
func (f *PrintAdapter) SetToolbox(toolbox processors.Toolbox)