data

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: ISC Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateEntry

func CreateEntry(commandRan string, data []byte, exitCode int, startTime time.Time)

func CreateSession

func CreateSession(sessionName string)

func DeleteEntries

func DeleteEntries(sessionName string)

func DeleteEntry

func DeleteEntry(entry *Entry)

func DeleteSession

func DeleteSession(sessionName string)

func GetSessionEntryPaths

func GetSessionEntryPaths(sessionName string) []string

func GetSessionLastModifiedTime

func GetSessionLastModifiedTime(sessionName string) time.Time

func GetSessions

func GetSessions() []string

func OpenEntryData

func OpenEntryData(entry *Entry, editor string)

func SessionExists

func SessionExists(sessionName string) bool

func UpdateActiveSession

func UpdateActiveSession(sessionName string)

Types

type Entry

type Entry struct {
	Command      string `yaml: "command"`
	TimeStamp    string `yaml: "timestamp"`
	ExitCode     int    `yaml: "exitcode"`
	DataFileName string `yaml: "datafilename"`
}

func GetEntries

func GetEntries() []*Entry

func GetEntry

func GetEntry(entryPath string) *Entry

Jump to

Keyboard shortcuts

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