repo

package
v0.0.0-...-1abf366 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCreateTmpFile = errors.New("unable to create tmp file")
	ErrWriteTmpFile  = errors.New("unable write to tmp file")
)

Functions

func MakeDefaultRepoName

func MakeDefaultRepoName(u string) string

Types

type RepoJSON

type RepoJSON struct {
	Repo []struct {
		Branch string `json:"branch"`
		URL    string `json:"url"`
		Name   string `json:"name"`
	} `json:"repo"`
}

type RepoList

type RepoList struct {
	// contains filtered or unexported fields
}

func (*RepoList) AddRepository

func (l *RepoList) AddRepository(repo *Repository)

func (*RepoList) GetAll

func (l *RepoList) GetAll() []*Repository

func (*RepoList) Intersect

func (l *RepoList) Intersect() (map[string][]*Repository, error)

func (*RepoList) Load

func (l *RepoList) Load() error

func (*RepoList) LoadFromFile

func (l *RepoList) LoadFromFile(filename string) error

type ReportWriter

type ReportWriter struct {
	Repolist *RepoList
}

func (*ReportWriter) BuildGraphviz

func (r *ReportWriter) BuildGraphviz(in map[string][]*Repository, filename, format string) error

func (*ReportWriter) BuildText

func (r *ReportWriter) BuildText(in map[string][]*Repository) string

type Repository

type Repository struct {
	URL    string
	Branch string
	Deps   []string
	Key    string
	Name   string
	// contains filtered or unexported fields
}

func NewRepository

func NewRepository(url, branch, name string) *Repository

func (*Repository) GetModuleURL

func (r *Repository) GetModuleURL() (string, error)

func (*Repository) Intersect

func (r *Repository) Intersect(l []*Repository) ([]*Repository, error)

func (*Repository) Load

func (r *Repository) Load() error

Jump to

Keyboard shortcuts

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