python

package
v0.30.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BaseImage     = "python:3.13-slim-bookworm"
	CacheLocation = "/root/.cache/pip"
)

Variables

This section is empty.

Functions

func CacheFolder

func CacheFolder() string

func ComputeChecksum

func ComputeChecksum(data []byte) string

TODO: provide a shorter checksum

func NewProd

func NewProd(build container.Build) build.Build

func Script

func Script(bs *BuildScript) string

Types

type BuildScript

type BuildScript struct {
	Verbose bool
}

func NewBuildScript

func NewBuildScript(verbose bool) *BuildScript

type Image

type Image string

type PythonBuild

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

func (PythonBuild) Images

func (g PythonBuild) Images() []string

func (PythonBuild) IsAsync added in v0.2.1

func (g PythonBuild) IsAsync() bool

func (PythonBuild) Matches added in v0.30.1

func (g PythonBuild) Matches(build container.Build) bool

Matches implements the Build interface - Python builds only run for python projects

func (PythonBuild) Name

func (g PythonBuild) Name() string

func (PythonBuild) Run

func (g PythonBuild) Run() error

type PythonContainer

type PythonContainer struct {
	Platform types.Platform
	*container.Container
	App      string
	File     string
	Folder   string
	Image    string
	ImageTag string
}

func New

func New(build container.Build) *PythonContainer

func (*PythonContainer) Address

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

func (*PythonContainer) Build

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

func (*PythonContainer) BuildPythonImage

func (c *PythonContainer) BuildPythonImage() error

func (*PythonContainer) BuildScript

func (c *PythonContainer) BuildScript() string

func (*PythonContainer) Images

func (c *PythonContainer) Images() []string

func (*PythonContainer) IsAsync added in v0.2.1

func (c *PythonContainer) IsAsync() bool

func (*PythonContainer) Matches added in v0.30.1

func (c *PythonContainer) Matches(build container.Build) bool

Matches implements the Build interface - Python only runs for python builds

func (*PythonContainer) Name

func (c *PythonContainer) Name() string

func (*PythonContainer) Prod

func (c *PythonContainer) Prod() error

func (*PythonContainer) Pull

func (c *PythonContainer) Pull() error

func (*PythonContainer) PythonImage added in v0.11.0

func (c *PythonContainer) PythonImage() string

func (*PythonContainer) Run

func (c *PythonContainer) Run() error

Jump to

Keyboard shortcuts

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