templatecache

package
v0.0.0-...-4f2f30f Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliasCache

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

func NewAliasCache

func NewAliasCache() *AliasCache

func (*AliasCache) Get

func (c *AliasCache) Get(alias string) (templateID string, found bool)

type TemplateCache

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

func NewTemplateCache

func NewTemplateCache(db *db.DB) *TemplateCache

func (*TemplateCache) Get

func (c *TemplateCache) Get(ctx context.Context, aliasOrEnvID string, teamID uuid.UUID, public bool) (env *api.Template, build *models.EnvBuild, apiErr *api.APIError)

func (*TemplateCache) Invalidate

func (c *TemplateCache) Invalidate(templateID string)

Invalidate invalidates the cache for the given templateID

type TemplateInfo

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

Jump to

Keyboard shortcuts

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