 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
- func Compress(r io.Reader, w io.Writer) error
- func WithBundler(bundler EszipBundler) withOption
- func WithMaxJobs(maxJobs uint) withOption
- type EdgeRuntimeAPI
- type EszipBundler
- type FunctionDeployMetadata
- type ImportMap
- func (m *ImportMap) IsReference() bool
- func (m *ImportMap) Load(imPath string, fsys fs.FS, opts ...func(string, io.Reader) error) error
- func (m *ImportMap) LoadAsDeno(imPath string, fsys fs.FS, opts ...func(string, io.Reader) error) error
- func (m *ImportMap) Parse(data []byte) error
- func (m *ImportMap) Resolve(imPath string, fsys fs.FS) error
- func (importMap *ImportMap) WalkImportPaths(srcPath string, readFile func(curr string, w io.Writer) error) error
 
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
    var (
	BundleFlags = []string{
		"--decorator", "tc39",
	}
)
    
      View Source
      
  
var ErrNoDeploy = errors.New("All Functions are up to date.")
    Functions ¶
func WithBundler ¶
func WithBundler(bundler EszipBundler) withOption
func WithMaxJobs ¶
func WithMaxJobs(maxJobs uint) withOption
Types ¶
type EdgeRuntimeAPI ¶
type EdgeRuntimeAPI struct {
	// contains filtered or unexported fields
}
    func NewEdgeRuntimeAPI ¶
func NewEdgeRuntimeAPI(project string, client api.ClientWithResponses, opts ...withOption) EdgeRuntimeAPI
func (*EdgeRuntimeAPI) Deploy ¶
func (s *EdgeRuntimeAPI) Deploy(ctx context.Context, functionConfig config.FunctionConfig, fsys fs.FS) error
func (*EdgeRuntimeAPI) UpsertFunctions ¶
func (s *EdgeRuntimeAPI) UpsertFunctions(ctx context.Context, functionConfig config.FunctionConfig, filter ...func(string) bool) error
type EszipBundler ¶
type EszipBundler interface {
	Bundle(ctx context.Context, slug, entrypoint, importMap string, staticFiles []string, output io.Writer) (FunctionDeployMetadata, error)
}
    func NewNativeBundler ¶
func NewNativeBundler(tempDir string, fsys fs.FS) EszipBundler
type FunctionDeployMetadata ¶
type FunctionDeployMetadata struct {
	EntrypointPath string    `json:"entrypoint_path"`
	ImportMapPath  *string   `json:"import_map_path,omitempty"`
	Name           *string   `json:"name,omitempty"`
	StaticPatterns *[]string `json:"static_patterns,omitempty"`
	VerifyJwt      *bool     `json:"verify_jwt,omitempty"`
	SHA256         string    `json:"sha256,omitempty"`
}
    func NewMetadata ¶
func NewMetadata(slug, entrypoint, importMap string, staticFiles []string) FunctionDeployMetadata
 Click to show internal directories. 
   Click to hide internal directories.