metadata

package
v0.3.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2020 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	Timestamp time.Time `yaml:"timestamp"`
	Upgraded  bool      `yaml:"upgraded"`
}

Metadata represents the node metadata.

func NewMetadata

func NewMetadata(sequence runtime.Sequence) *Metadata

NewMetadata initializes and returns the metadata.

func Open

func Open() (m *Metadata, err error)

Open attempts to read the metadata.

func (*Metadata) Bytes

func (m *Metadata) Bytes() ([]byte, error)

Bytes returns to byte slice representation of the metadata.

func (*Metadata) Path

func (m *Metadata) Path() string

Path returns the path to the metadata.

func (*Metadata) Save

func (m *Metadata) Save() (err error)

Save attempts to save the metadata.

Jump to

Keyboard shortcuts

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