data

package
v0.0.0-...-8c2001a Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DataDir embed.FS

Functions

func NewEmbed

func NewEmbed(opts *repox.BuilderOptions) (repox.Repository, error)

Types

type AssetAdapter

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

func (AssetAdapter) Open

func (a AssetAdapter) Open(name string) (fs.File, error)

type DataBox

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

func DefaultNew

func DefaultNew() *DataBox

func (*DataBox) AssetAdapter

func (d *DataBox) AssetAdapter(folder string) fs.FS

func (*DataBox) GetAsset

func (d *DataBox) GetAsset(folder, name string) ([]byte, error)

func (*DataBox) GetIfaceFile

func (d *DataBox) GetIfaceFile(name string) ([]byte, error)

func (*DataBox) GetSchema

func (d *DataBox) GetSchema(name string) ([]byte, error)

func (*DataBox) GetTemplate

func (d *DataBox) GetTemplate(name string) ([]byte, error)

type EmbedRepo

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

func (*EmbedRepo) Get

func (er *EmbedRepo) Get(tenantid, slug string) (*repox.BPrint, error)

func (*EmbedRepo) GetZip

func (er *EmbedRepo) GetZip(tenantid, slug, version string) (io.ReadCloser, error)

func (*EmbedRepo) Name

func (lr *EmbedRepo) Name() string

func (*EmbedRepo) Query

func (er *EmbedRepo) Query(tenantId string, opts *repox.RepoQuery) ([]repox.BPrint, error)

type Options

type Options struct {
	OverlayDataFolder        string
	OverlayBuildAssetsFolder string
	FS                       fs.FS
}

Jump to

Keyboard shortcuts

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