repos

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cache *cache = NewDefaultCache()
View Source
var Registry = NewDefaultRegistry()

Functions

func EnsureRepoID

func EnsureRepoID(name string) string

func GetOrInstallTemplateFromRepoID added in v0.29.1

func GetOrInstallTemplateFromRepoID(repoID string) (string, error)

InstallTemplateFromFQN tries to install a template from a fully qualified name (e.g. name@version)

func IsRepoID

func IsRepoID(name string) bool

func MakeRepoID

func MakeRepoID(name, version string) string

func NameFromRepoID

func NameFromRepoID(name string) string

func New

func New(cacheDir string) *cache

NewTemplateCache creates a new template cache

func NewDefaultCache

func NewDefaultCache() *cache

NewDefault creates a new template cache with default configuration

func NewDefaultRegistry

func NewDefaultRegistry() *registry

func NewRegistry

func NewRegistry(registryDir, registryURL string) *registry

func SplitRepoID

func SplitRepoID(name string) (string, string)

SplitRepoID splits a qualified name into name and version

func VersionFromRepoID

func VersionFromRepoID(name string) string

Types

type TemplateRegistry

type TemplateRegistry struct {
	Name        string          `json:"name"`
	Description string          `json:"description"`
	Entries     []*git.RepoInfo `json:"entries"`
}

Jump to

Keyboard shortcuts

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