manifest

package
v0.0.0-...-a68f7b9 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DependancyType

type DependancyType int
const (
	GIT DependancyType = 0
	URL DependancyType = 1
)

type Dependencies

type Dependencies struct {
	GitDependencies []GitDependancy `mapstructure:"git"`
	UrlDependencies []UrlDependancy `mapstructure:"url"`
}

type Dependency

type Dependency interface {
	GetName() string
	Download(folderPath string) error
}

type GitDependancy

type GitDependancy struct {
	Name        string     `yaml:"name"`
	Path        string     `yaml:"path"`
	VersionType GitVersion `yaml:"version_type"`
	Version     string     `yaml:"version"`
}

func (*GitDependancy) Download

func (g *GitDependancy) Download(folderPath string) (err error)

func (GitDependancy) ToReferenceName

func (g GitDependancy) ToReferenceName() plumbing.ReferenceName

type GitVersion

type GitVersion string

func (GitVersion) Set

func (g GitVersion) Set(s string) error

func (GitVersion) String

func (g GitVersion) String() string

func (GitVersion) Type

func (g GitVersion) Type() string

type Manifest

type Manifest struct {
	Name         string       `yaml:"name"`
	Version      string       `yaml:"version"`
	Dependencies Dependencies `mapstructure:"dependencies"`
}

type UrlDependancy

type UrlDependancy struct {
	Name    string `yaml:"name"`
	Path    string `yaml:"path"`
	Version string `yaml:"version"`
}

func (*UrlDependancy) Download

func (u *UrlDependancy) Download(folderPath string) (err error)

Jump to

Keyboard shortcuts

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