Documentation ¶
Index ¶
- Constants
- func PrettyPrintActions(actions map[time.Time][]Action)
- func Sync(source Source, sinks []Sink, start, end time.Time, dryRun bool) error
- type Action
- type CSVSink
- type ClockifySource
- type Entry
- type EntryType
- type FileSource
- type JiraSink
- type Operation
- type OrgSource
- type PersonioSink
- func (s *PersonioSink) FetchEntries(start, end time.Time) ([]Entry, error)
- func (s *PersonioSink) IsApplicable(e Entry) bool
- func (s *PersonioSink) Name() string
- func (s *PersonioSink) ProcessActions(actions []Action, localEntries []Entry) error
- func (s PersonioSink) ValidIdentifier(identifier string) bool
- type Sink
- type Source
- type StubSink
Constants ¶
View Source
const ( Add = Operation(iota) Remove )
View Source
const DateTimeFormat = "2006-01-02 15:04"
View Source
const OrgDateTimeFormat = "2006-01-02 Mon 15:04"
View Source
const TimeFormat = "15:04"
Variables ¶
This section is empty.
Functions ¶
func PrettyPrintActions ¶
Types ¶
type CSVSink ¶
type CSVSink struct {
// contains filtered or unexported fields
}
func NewCSVSink ¶
func (*CSVSink) FetchEntries ¶
func (*CSVSink) IsApplicable ¶
func (*CSVSink) ProcessActions ¶
func (CSVSink) ValidIdentifier ¶
type ClockifySource ¶
type ClockifySource struct {
// contains filtered or unexported fields
}
func NewClockifySource ¶
func NewClockifySource(configProvider *cli.ConfigProvider) *ClockifySource
func (*ClockifySource) FetchEntries ¶
func (s *ClockifySource) FetchEntries(start, end time.Time) ([]Entry, error)
func (*ClockifySource) Name ¶
func (s *ClockifySource) Name() string
func (ClockifySource) ValidIdentifier ¶
func (s ClockifySource) ValidIdentifier(identifier string) bool
type FileSource ¶
type FileSource struct {
// contains filtered or unexported fields
}
func NewFileSource ¶
func NewFileSource(path string) *FileSource
func (*FileSource) FetchEntries ¶
func (s *FileSource) FetchEntries(start, end time.Time) ([]Entry, error)
func (*FileSource) Name ¶
func (s *FileSource) Name() string
func (*FileSource) ValidIdentifier ¶
func (s *FileSource) ValidIdentifier(identifier string) bool
type JiraSink ¶
type JiraSink struct {
// contains filtered or unexported fields
}
func NewJiraSink ¶
func NewJiraSink(rawHost string, configProvider *cli.ConfigProvider) (*JiraSink, error)
func (*JiraSink) FetchEntries ¶
func (*JiraSink) IsApplicable ¶
func (*JiraSink) ProcessActions ¶
func (JiraSink) ValidIdentifier ¶
type OrgSource ¶
type OrgSource struct {
// contains filtered or unexported fields
}
func NewOrgSource ¶
func (*OrgSource) FetchEntries ¶
func (OrgSource) ValidIdentifier ¶
type PersonioSink ¶
type PersonioSink struct {
// contains filtered or unexported fields
}
func NewPersonioSink ¶
func NewPersonioSink(rawHost string, configProvider *cli.ConfigProvider) (*PersonioSink, error)
func (*PersonioSink) FetchEntries ¶
func (s *PersonioSink) FetchEntries(start, end time.Time) ([]Entry, error)
func (*PersonioSink) IsApplicable ¶
func (s *PersonioSink) IsApplicable(e Entry) bool
func (*PersonioSink) Name ¶
func (s *PersonioSink) Name() string
func (*PersonioSink) ProcessActions ¶
func (s *PersonioSink) ProcessActions(actions []Action, localEntries []Entry) error
func (PersonioSink) ValidIdentifier ¶
func (s PersonioSink) ValidIdentifier(identifier string) bool
type StubSink ¶
type StubSink struct{}
func (*StubSink) FetchEntries ¶
func (*StubSink) IsApplicable ¶
func (*StubSink) ProcessActions ¶
func (StubSink) ValidIdentifier ¶
Click to show internal directories.
Click to hide internal directories.