cfg

package
v0.0.0-...-09f0ea0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Package     Package   `yaml:"package"`
	Contents    []Content `yaml:"contents,flow"`
	Preinstall  []string  `yaml:"preinstall"`
	Postinstall []string  `yaml:"postinstall"`
}

func LoadConfig

func LoadConfig(cfgfile string) (*Config, error)

func (*Config) SaveManifest

func (cfg *Config) SaveManifest(manifestfile string)

type Content

type Content struct {
	From string `yaml:"from"`
	To   string `yaml:"to"`
}

type Package

type Package struct {
	Name     string    `yaml:"name"`
	ID       uuid.UUID `yaml:"id"`
	Version  string    `yaml:"version"`
	Hostname string    `yaml:"hostname"`
	Created  time.Time `yaml:"created"`
}

Jump to

Keyboard shortcuts

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