update

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Client      *client.Client     `validate:"required"`
	ConfigFile  *config.File       `validate:"required"`
	Err         errs.HandlerIface  `validate:"required"`
	ORM         *gorm.DB           `validate:"required"`
	Log         logger.OutputIface `validate:"required"`
	MetadataDir string             `validate:"required"`
}

Options constructor options

type Repo

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

Repo is the repo struct

func (*Repo) Load

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

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

func (*Repo) Save

func (m *Repo) 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"`
	Versions    []string `json:"versions" yaml:"versions"`
	Repo        Repo
}

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 {
	// contains filtered or unexported fields
}

Update build metadata

func New

func New(opts *Options) *Update

New constructor

func (*Update) Build

func (m *Update) Build() error

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

type UpdateIface

type UpdateIface interface {
	// Build metadata. Conf defaults to globals.Config if Conf is nil.
	Build() error
}

UpdateIface ...

Jump to

Keyboard shortcuts

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