local

package
v0.0.0-...-5af6bcd Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "local"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Directory string `yaml:"directory"`
}

func (*Config) RegisterFlags

func (c *Config) RegisterFlags(f *flag.FlagSet)

type LocalStore

type LocalStore struct {
	*services.BasicService
	// contains filtered or unexported fields
}

func New

func New(cfg Config, logger log.Logger) *LocalStore

func (*LocalStore) GetLatestTemplate

func (l *LocalStore) GetLatestTemplate(name string) *template.AppTemplate

func (*LocalStore) GetTemplate

func (l *LocalStore) GetTemplate(name, version string) *template.AppTemplate

func (*LocalStore) ListAppTemplates

func (l *LocalStore) ListAppTemplates()

func (*LocalStore) Load

func (l *LocalStore) Load() error

func (*LocalStore) LoadTemplate

func (l *LocalStore) LoadTemplate(path string) error

func (*LocalStore) SearchTemplates

func (l *LocalStore) SearchTemplates(name string) []*template.AppTemplate

func (*LocalStore) SyncTemplates

func (l *LocalStore) SyncTemplates()

func (*LocalStore) UnloadTemplate

func (l *LocalStore) UnloadTemplate(path string)

Jump to

Keyboard shortcuts

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