Documentation ¶
Index ¶
- Constants
- func CacheFolder() string
- func ComputeChecksum(data []byte) string
- func NewProd() build.Build
- func PythonImage() string
- func Script(bs *BuildScript) string
- type BuildScript
- type Image
- type PythonBuild
- type PythonContainer
- func (c *PythonContainer) Address() *network.Address
- func (c *PythonContainer) Build() (string, error)
- func (c *PythonContainer) BuildPythonImage() error
- func (c *PythonContainer) BuildScript() string
- func (c *PythonContainer) Images() []string
- func (c *PythonContainer) IsAsync() bool
- func (c *PythonContainer) Name() string
- func (c *PythonContainer) Prod() error
- func (c *PythonContainer) Pull() error
- func (c *PythonContainer) Run() error
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 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 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
Click to show internal directories.
Click to hide internal directories.