cache

package
v0.0.0-...-7aa05ff Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Templates

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

func NewInMemoryTemplatesCache

func NewInMemoryTemplatesCache() Templates

func (Templates) GetTemplate

func (t Templates) GetTemplate(repo, path, version, sourceType string) (*models.Template, bool)

func (Templates) GetTemplateInitialValues

func (t Templates) GetTemplateInitialValues(repo, path, version, sourceType string) (map[string]interface{}, bool)

func (Templates) ReturnCache

func (t Templates) ReturnCache() *ristretto.Cache

func (Templates) SetTemplate

func (t Templates) SetTemplate(repo, path, version, sourceType string, template *models.Template)

func (Templates) SetTemplateInitialValues

func (t Templates) SetTemplateInitialValues(repo, path, version, sourceType string, values map[string]interface{})

Jump to

Keyboard shortcuts

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