python

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BaseImage     = "python:3.11-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.Build

func PythonImage

func PythonImage() string

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) Name

func (g PythonBuild) Name() string

func (PythonBuild) Run

func (g PythonBuild) Run() error

type PythonContainer

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

func New

func New() *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) Name

func (c *PythonContainer) Name() string

func (*PythonContainer) Prod

func (c *PythonContainer) Prod() error

func (*PythonContainer) Pull

func (c *PythonContainer) Pull() error

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