types

package
v0.0.0-...-d39253e Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Package

type Package struct {
	Source     string `yaml:"source"`
	TargetName string `yaml:"targetName"`
	Summary    string `yaml:"summary"`

	// This holds the major versions of the package (v0, v1, v2, ..), the fine versions are retrieved
	// with FileReader.Versions(majorVersion).
	Versions []string

	FileReader VersionedFileReader `yaml:"-"`
}

type VersionedFileReader

type VersionedFileReader interface {
	MajorVersions() []string
	Versions(major string) []string

	ReadFile(path, version string) (string, error)
}

Jump to

Keyboard shortcuts

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