Documentation ¶
Index ¶
- Constants
- func Fetch(ctx context.Context, ref pk.Ref) (any, error)
- func FetchBlob(ctx context.Context, ref pk.Ref) blob.Blob
- func Register(s pk.Scheme, f Fetcher)
- func RegisterFS(s pk.Scheme, fsys fs.FS)
- func RegisterFile(cacheStorage blob.Storage)
- func RegisterHTTP()
- func RegisterHTTPS()
- func RegisterTemplate(s pk.Scheme, src fs.FS)
- func RegisterTemplateFS(fsys fs.FS) error
- type FSNode
- type FetchFunc
- type Fetcher
- type TransformFunc
Constants ¶
View Source
const ( HTTPScheme = "http" HTTPSScheme = "https" )
View Source
const FileScheme = "file"
Variables ¶
This section is empty.
Functions ¶
func RegisterFile ¶
func RegisterHTTP ¶
func RegisterHTTP()
func RegisterHTTPS ¶
func RegisterHTTPS()
func RegisterTemplateFS ¶
Types ¶
type Fetcher ¶
func TransformFetcher ¶
func TransformFetcher(fn TransformFunc) Fetcher
Click to show internal directories.
Click to hide internal directories.