exporters

package
v0.0.0-...-50646a8 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2025 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorUnrecognizedExporter

type ErrorUnrecognizedExporter struct {
	// contains filtered or unexported fields
}

func (ErrorUnrecognizedExporter) Error

func (euf ErrorUnrecognizedExporter) Error() string

type Exporter

type Exporter interface {
	Export(ctx context.Context, account string, calendarName string, calendarData *ical.Calendar) error
	Report()
	WithArgument(ctx context.Context, argument string) (Exporter, error)
}

type Exporters

type Exporters []Exporter

func Selected

func Selected(ctx context.Context, selected []string) (Exporters, error)

func (Exporters) Apply

func (e Exporters) Apply(
	ctx context.Context,
	account string,
	calendarName string,
	calendarData *ical.Calendar,
) error

func (Exporters) Report

func (e Exporters) Report()

type FileSystemExporter

type FileSystemExporter struct {
	// contains filtered or unexported fields
}

func (*FileSystemExporter) Export

func (fse *FileSystemExporter) Export(
	ctx context.Context,
	account string,
	calendarName string,
	calendarData *ical.Calendar,
) error

func (*FileSystemExporter) Report

func (*FileSystemExporter) Report()

func (FileSystemExporter) WithArgument

func (FileSystemExporter) WithArgument(_ context.Context, argument string) (Exporter, error)

type HTTPExporter

type HTTPExporter struct {
	// contains filtered or unexported fields
}

func (*HTTPExporter) Export

func (he *HTTPExporter) Export(
	ctx context.Context,
	account string,
	calendarName string,
	calendarData *ical.Calendar,
) error

func (*HTTPExporter) Report

func (he *HTTPExporter) Report()

func (HTTPExporter) WithArgument

func (HTTPExporter) WithArgument(ctx context.Context, argument string) (Exporter, error)

Jump to

Keyboard shortcuts

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