olympus

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLog

func NewLog(uri string) eventlog.Eventlog

NewLog creates log reader from remote olympus log

Types

type Log

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

Log represents event log fetched from remote olympus server

func (*Log) Append

func (o *Log) Append(event eventlog.Event) (string, error)

Append appends Event to event log and returns its ID.

func (*Log) Clear

func (o *Log) Clear(id string) error

Clear is a method for clearing entire state of event log

func (*Log) Read

func (o *Log) Read() ([]eventlog.Event, error)

Read reads all events in event log.

func (*Log) ReadFrom

func (o *Log) ReadFrom(id string) ([]eventlog.Event, error)

ReadFrom reads all events from the log starting at event with specified id (excluded). If id is not found behaves like Read().

func (*Log) ReadSingle

func (o *Log) ReadSingle(module, version string) (eventlog.Event, error)

ReadSingle gets the module metadata about the given module/version. If something went wrong doing the get operation, returns a non-nil error.

Jump to

Keyboard shortcuts

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