metadata

package
v0.0.48 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package metadata provides agent metadata structs and info.

Index

Constants

View Source
const (
	AgentMetadataFileName = "metadata.json"
)

Variables

This section is empty.

Functions

func Store

func Store(path string, meta *Metadata) error

Types

type Metadata

type Metadata struct {
	IsInvalid bool `json:"is_invalid" yaml:"is_invalid"`
	NGT       *NGT `json:"ngt,omitempty" yaml:"ngt"`
}

func Load

func Load(path string) (*Metadata, error)

type NGT

type NGT struct {
	IndexCount uint64 `json:"index_count" yaml:"index_count"`
}

Jump to

Keyboard shortcuts

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