zig

package
v0.35.2 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ImageVersion is the golang version extracted from the Dockerfile
	ImageVersion = "3.22"

	// DockerfileChecksum is the checksum of the Dockerfile content
	DockerfileChecksum = "10bbb6908b54b8300a3a05d74002b321eeb52ead87c52102bdc9fd2e5d9e1db6"
)

Default Dockerfile (Dockerfile.zig)

View Source
const (
	BaseImage     = "alpine:latest"
	CacheLocation = "/root/.cache/zig"
)

Variables

View Source
var DockerfileContent = `` /* 462-byte string literal not displayed */

DockerfileContent contains the embedded Dockerfile content

Functions

func CacheFolder

func CacheFolder() string

func GetDockerfileMetadata

func GetDockerfileMetadata(variantType string) (version, checksum, content string)

GetDockerfileMetadata returns the metadata for the specified variant type. Pass empty string "" for default variant.

func Images

func Images(build container.Build) []string

func Matches

func Matches(build container.Build) bool

Matches implements the Build interface - runs when buildtype is Zig

func New

func New() build.BuildStepv2

func NewProd

func NewProd() build.BuildStepv2

func ZigImage

func ZigImage(build container.Build) string

Types

type BuildScript

type BuildScript struct {
	Folder      string
	CacheDir    string
	Optimize    string
	Target      string
	Verbose     bool
	HasBuildZon bool
}

func NewBuildScript

func NewBuildScript(folder string, optimize string, target string, verbose bool, cacheDir string) *BuildScript

func (*BuildScript) Script

func (bs *BuildScript) Script() string

func (*BuildScript) String

func (bs *BuildScript) String() string

type ZigContainer

type ZigContainer struct {
	Platform types.Platform
	*container.Container
	App      string
	File     string
	Folder   string
	Image    string
	ImageTag string
	Secret   map[string]string
	Optimize string
	Target   string
}

func (*ZigContainer) Address

func (c *ZigContainer) Address() *network.Address

func (*ZigContainer) Build

func (c *ZigContainer) Build() (string, error)

func (*ZigContainer) BuildScript

func (c *ZigContainer) BuildScript() *BuildScript

func (*ZigContainer) BuildZigImage

func (c *ZigContainer) BuildZigImage() error

func (*ZigContainer) Prod

func (c *ZigContainer) Prod() error

func (*ZigContainer) Pull

func (c *ZigContainer) Pull() error

func (*ZigContainer) Run

func (c *ZigContainer) Run() error

Jump to

Keyboard shortcuts

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