templatesrepo

package
v0.0.0-...-b9690c5 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CTRepository

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

func NewConcreteTemplatesRepository

func NewConcreteTemplatesRepository(
	index bpindex.Index,
	logger boshlog.Logger,
) CTRepository

func (CTRepository) Find

func (tr CTRepository) Find(job bpdep.Job, instance bpdep.Instance) (TemplateRecord, bool, error)

func (CTRepository) Save

func (tr CTRepository) Save(job bpdep.Job, instance bpdep.Instance, record TemplateRecord) error

type TemplateRecord

type TemplateRecord struct {
	BlobID string
	SHA1   string
}

type TemplatesRepository

type TemplatesRepository interface {
	Find(bpdep.Job, bpdep.Instance) (TemplateRecord, bool, error)
	Save(bpdep.Job, bpdep.Instance, TemplateRecord) error
}

TemplatesRepository maintains list of rendered templates as blobs

Jump to

Keyboard shortcuts

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