repomanager

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	GetRepos() []*Repository
	Exists(repo *Repository) bool
	AddRepo(repo *Repository) error
	RemoveRepo(repo *Repository) error
	UpdateAll() error
}

func NewManager

func NewManager(opts *ManagerOpts) Manager

Creates a new repository Manager

type ManagerOpts

type ManagerOpts struct {
	CacheDir string
	PropName string
	Config   *viper.Viper
}

func (*ManagerOpts) Validate

func (o *ManagerOpts) Validate() error

type Repository

type Repository struct {
	// The repo name
	Name string

	// The URL of the repo
	URL string
}

Jump to

Keyboard shortcuts

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