workflows

package
v0.0.0-...-3e40f46 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2017 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConfig

func DefaultConfig() ejrnl.Config

DefaultConfig returns the default configuration file.

func EditEntry

func EditEntry(driver ejrnl.Driver, id, tempDir string) error

EditEntry decrypts the specified entry and then opens the user's editor and saves the edits

func Format

func Format(entry ejrnl.Entry) string

format formats the specified entry in the expected format

func Import

func Import(path string, driver ejrnl.Driver) error

Import imports the specified file. It must be in the user format

func Init

func Init(driver ejrnl.Driver) error

Init inits the specified driver

func ListEntries

func ListEntries(driver ejrnl.Driver, count int) error

ListEntries outputs the date and id of the most recent count of entries. If count <= 0, it outputs all of the entries

func Listing

func Listing(driver ejrnl.Driver) (map[time.Time]string, []time.Time, error)

Listing gets a listing of all of the entries and sorts the listing's index by reverse chronological order

func MakeSalt

func MakeSalt(b int) string

func NewEntry

func NewEntry(driver ejrnl.Driver, tempDir string) error

NewEntry creates a new entry in the expected format and then opens the user's editor for them to edit the entry.

func Print

func Print(driver ejrnl.Driver, count int) error

func Read

func Read(raw []byte) (ejrnl.Entry, error)

read reads the expected format and returns the parsed value.

func Rekey

func Rekey(oldDriver, newDriver ejrnl.Driver, journalDir, tempDir string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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