importer

package
v0.0.0-...-39dd9a3 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Directory

func Directory(ctx context.Context, target *cassette.Control, base string, allowCodebase bool) error

func ImportFile

func ImportFile(ctx context.Context, target *cassette.Control, base string, asset string, allowCodebase bool) (bool, string, error)

func MimetypeFromExtension

func MimetypeFromExtension(ext string) string

Types

type ErrCodebaseNotAllowed

type ErrCodebaseNotAllowed struct {
	Base  string
	Asset string
}

func (ErrCodebaseNotAllowed) Error

func (e ErrCodebaseNotAllowed) Error() string

type UserCodeError

type UserCodeError struct {
	Asset string
	// contains filtered or unexported fields
}

func (UserCodeError) Error

func (e UserCodeError) Error() string

func (UserCodeError) Unwrap

func (e UserCodeError) Unwrap() error

Jump to

Keyboard shortcuts

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