metadata

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	Name         string
	Config       *config.MetadataPlugin
	Cachefile    string
	PrevMetadata interface{}
}

Generator generates metadata

func (*Generator) Clear

func (g *Generator) Clear() error

Clear destroys the metadata cache

func (*Generator) Fetch

func (g *Generator) Fetch() (interface{}, error)

Fetch invokes the command and returns the result

func (*Generator) Interval

func (g *Generator) Interval() time.Duration

Interval calculates the time interval of command execution

func (*Generator) IsChanged

func (g *Generator) IsChanged(metadata interface{}) bool

IsChanged returns whether the metadata has been changed or not

func (*Generator) LoadFromFile

func (g *Generator) LoadFromFile()

LoadFromFile loads the previous metadata from file

func (*Generator) Save

func (g *Generator) Save(metadata interface{}) error

Save stores the metadata locally

Jump to

Keyboard shortcuts

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