builders

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Source = "src"
	Output = "out"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Version     string
	Environment Environment
	Workflow    []string

	// TODO: Repo Fixer should remove all of these cases for websites and libraries
	Enviroment Environment
}

func (*Config) HandleDepreciatedEnvironment

func (c *Config) HandleDepreciatedEnvironment() (environment Environment)

type Dir

type Dir interface {
	Wasm() Wasm
	Website() Website
	CodeSource(string) string
	TaubyteDir() string
	ConfigFile() string
	DockerDir() DockerDirType
	DockerFile() string
	DefaultOptions(script string, outDir string, environment Environment) []ci.ContainerOption
	SetSourceVolume() ci.ContainerOption
	SetOutVolume(string) ci.ContainerOption
	SetBuildCommand(script string) ci.ContainerOption
	SetEnvironmentVariables() ci.ContainerOption
	String() string
}

type DockerDirType

type DockerDirType interface {
	String() string
	Stat() (fs.FileInfo, error)
	Tar() ([]byte, error)
}

type Environment

type Environment struct {
	Image     string
	Variables map[string]string
}

type Wasm

type Wasm interface {
	WasmCompressed() string
	Zip() string
}

type Website

type Website interface {
	BuildZip() string
	SetWorkDir() ci.ContainerOption
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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