images

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: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Taubyte Organization Name on DockerHub
	TaubyteOrganization = "taubyte"

	// Default Image Name Format
	ImageNameFormat = "%s/%s:%s"
)
View Source
const (
	RustRepository           = "rust-wasi"
	GoRepository             = "go-wasi"
	AssemblyScriptRepository = "assembly-script-wasi"

	TestExampleVersion = "test-examples"
)

Repository Names For Taubyte Organization

View Source
const (
	RustTarBallFile           = "rs.tar"
	GoTarBallFile             = "go.tar"
	AssemblyScriptTarBallFile = "as.tar"
)

Container Image Tarballs

View Source
const (
	TarBallBuildDir = "_builds"
	ProductionDir   = "production"
	TestExamplesDir = "test_examples"
)
View Source
const (
	UserEnvVar  envVar = "TAUBYTE_DOCKER_USER"
	TokenEnvVar envVar = "TAUBYTE_DOCKER_TOKEN"
)

Docker Credential Variables

Variables

View Source
var (
	RustImageEnvVar                  = imageEnvVar{(envVar("TAUBYTE_RUST_IMAGE"))}
	GoImageEnvVar        imageEnvVar = imageEnvVar{(envVar("TAUBYTE_GO_IMAGE"))}
	AssemblyScriptEnvVar imageEnvVar = imageEnvVar{(envVar("TAUBYTE_AS_IMAGE"))}
)

Image Environment Variables

Functions

func AssemblyScriptImage

func AssemblyScriptImage(version string) string

func GoImage

func GoImage(version string) string

func RustImage

func RustImage(version string) string

Types

type LanguageConfig

type LanguageConfig struct {
	// contains filtered or unexported fields
}

func Config

func Config(language wasm.SupportedLanguage) (lang LanguageConfig, err error)

func (LanguageConfig) Image

func (l LanguageConfig) Image(version string) string

func (LanguageConfig) Language

func (l LanguageConfig) Language() wasm.SupportedLanguage

func (LanguageConfig) TarBallPath

func (l LanguageConfig) TarBallPath(wd string) string

func (LanguageConfig) TestExamples

func (l LanguageConfig) TestExamples() TestExampleLanguageConfig

type TestExampleLanguageConfig

type TestExampleLanguageConfig LanguageConfig

func (TestExampleLanguageConfig) Image

func (TestExampleLanguageConfig) Language

func (TestExampleLanguageConfig) TarBallPath

func (t TestExampleLanguageConfig) TarBallPath(wd string) string

type VersionedLang

type VersionedLang struct {
	Language LanguageConfig
	Version  string
}

Jump to

Keyboard shortcuts

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