update

package
v1.1.1-0...-acba925 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Master

type Master struct {
	Name        string `json:"name" yaml:"name"`
	URL         string `json:"url" yaml:"url"`
	Description string `json:"description" yaml:"description"`
}

Master is the master struct

func (*Master) Load

func (m *Master) Load(path string) error

Load loads from a json or yaml file, depending on the file suffix.

func (*Master) Save

func (m *Master) Save(path string) error

Save saves to json or yaml file, depending on the file suffix.

type Template

type Template struct {
	Name        string `json:"name" yaml:"name"`
	URL         string `json:"url" yaml:"url"`
	Description string `json:"description" yaml:"description"`
	Master      Master
}

Template is a template creator

func (*Template) Load

func (g *Template) Load(path string) error

Load loads from a json or yaml file

func (*Template) Save

func (g *Template) Save(path string) error

Save saves to json or yaml file.

type Update

type Update struct {
	ConfigFile  *config.File
	DB          *sql.DB
	Log         *log.Logger
	MetadataDir string
}

Update build metadata

func (*Update) Build

func (m *Update) Build() error

Build metadata. Conf defaults to globals.Config if Conf is nil.

Jump to

Keyboard shortcuts

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