Documentation
¶
Index ¶
- func CacheFolder() (string, error)
- func ComputeChecksum(data []byte) string
- func NewProd(build container.Build) build.Build
- 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) BuildImage(ctx context.Context) (string, error)
- func (c *PythonContainer) BuildPythonImage() error
- func (c *PythonContainer) BuildScript() string
- func (c *PythonContainer) Execute(ctx context.Context) error
- func (c *PythonContainer) Images() []string
- func (c *PythonContainer) Prod() error
- func (c *PythonContainer) Pull() error
- func (c *PythonContainer) PythonImage() (string, error)
- func (c *PythonContainer) Run() error
- func (c *PythonContainer) Validate(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CacheFolder ¶
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 {
*language.BaseLanguageBuilder
Platform types.Platform
App string
File string
Folder string
Image string
ImageTag string
}
PythonContainer implements the LanguageBuilder interface for Python builds
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) BuildImage ¶ added in v0.20.0
func (c *PythonContainer) BuildImage(ctx context.Context) (string, error)
BuildImage implements the LanguageBuilder interface
func (*PythonContainer) BuildPythonImage ¶
func (c *PythonContainer) BuildPythonImage() error
func (*PythonContainer) BuildScript ¶
func (c *PythonContainer) BuildScript() string
func (*PythonContainer) Execute ¶ added in v0.20.0
func (c *PythonContainer) Execute(ctx context.Context) error
Execute implements the BuildStep interface
func (*PythonContainer) Images ¶
func (c *PythonContainer) Images() []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, error)
func (*PythonContainer) Run ¶
func (c *PythonContainer) Run() error
Click to show internal directories.
Click to hide internal directories.