pkg

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CoreImg       = "ghcr.io/funlessdev/core:latest"
	WorkerImg     = "ghcr.io/funlessdev/worker:latest"
	LocalLogsPath = "funless-logs"

	DefaultTemplateRepository = "https://github.com/funlessdev/fl-templates.git"
	ConfigDir                 = ".fl"
	ConfigFileName            = "config"
	ConfigKeys                = "api_host,api_token,admin_token,secret_key_base"
)

Variables

View Source
var SupportedLanguages = map[string]Language{
	"js": {
		Name:             "Javascript",
		BuilderImage:     "ghcr.io/funlessdev/fl-js-builder:latest",
		Extensions:       []string{".js"},
		MustContainFiles: []string{"package.json"},
	},
	"rust": {
		Name:             "Rust",
		BuilderImage:     "ghcr.io/funlessdev/fl-rust-builder:latest",
		Extensions:       []string{".rs"},
		MustContainFiles: []string{"Cargo.toml"},
	},
}

Functions

func Copy added in v0.3.0

func Copy(src string, dest string) error

func ExtractError added in v0.4.0

func ExtractError(err error) error

Types

type FLContextKey added in v0.4.0

type FLContextKey string

type FLError added in v0.4.0

type FLError struct {
	Errors struct {
		Detail string `json:"detail"`
	} `json:"errors"`
}

type IvkResult added in v0.4.0

type IvkResult struct {
	Result string
}

type Language added in v0.3.0

type Language struct {
	Name             string
	BuilderImage     string
	Extensions       []string
	MustContainFiles []string
}

type ModuleNameList added in v0.4.0

type ModuleNameList struct {
	Names []string
}

type SingleModule added in v0.4.0

type SingleModule struct {
	Name      string
	Functions []string
}

type UserNameToken added in v0.4.0

type UserNameToken struct {
	Name  string
	Token string
}

type UserNamesList added in v0.4.0

type UserNamesList struct {
	Names []string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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