bkyc

package
v0.1.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TinyGo hash points to tinygo/0.34.0
	TinyGo               = "tinygo/tinygo@sha256:79c73c4246a1079e648d6e8425bae4654f26d2baed24c96537a8893b41c04d26"
	TinyGoGID            = 1000
	TinyGoUID            = 1000
	BkycPrefix           = "bkyc-tinygo"
	FixedSourceDateEpoch = "1234567890"
)

Variables

This section is empty.

Functions

func CompileGo

func CompileGo(
	ctx context.Context,
	r ContainerRunner,
	inPath string,
	outPath string,
	reproducible bool,
) error

func Exists

func Exists(path string) bool

func FindCacheRoot

func FindCacheRoot() (string, error)

func FindGoProjectRoot

func FindGoProjectRoot(path string) (string, error)

func NewFastGoContainerCfg

func NewFastGoContainerCfg(
	cacheDir string,
	goDir string,
	inDir string,
	inFile string,
	outDir string,
	outFile string,
) container.Config

func NewGoCompilerCfg

func NewGoCompilerCfg(
	inPath string,
	outPath string,
	reproducible bool,
) (container.Config, error)

func NewReproducibleGoContainerCfg

func NewReproducibleGoContainerCfg(
	inDir string,
	inFile string,
	outDir string,
	outFile string,
) container.Config

func NormalizeInput

func NormalizeInput(inPath string) (string, string, error)

func NormalizeOutput

func NormalizeOutput(outPath string) (string, string, error)

func RelToRoot

func RelToRoot(root string, in string) (string, error)

func Split

func Split(path string) (string, string, error)

Types

type ContainerRunner

type ContainerRunner interface {
	Run(context.Context, container.Config) (container.Output, error)
}

Jump to

Keyboard shortcuts

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