Documentation ¶
Overview ¶
Package container provides utilities for interacting with containers.
Index ¶
- type BuilderFactory
- func (f *BuilderFactory) AddFileToBuilder(srcPath, destPath, chown string) error
- func (f *BuilderFactory) ExecuteCmdInBuilder(command []string) (string, error)
- func (f *BuilderFactory) PushBuilderImage(imageName string) error
- func (f *BuilderFactory) ReadFileFromBuilder(filePath string) ([]byte, error)
- func (f *BuilderFactory) SetEnvVar(name, value string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuilderFactory ¶ added in v0.3.0
type BuilderFactory struct {
// contains filtered or unexported fields
}
BuilderFactory is responsible for creating new instances of buildah.Builder
func NewBuilderFactory ¶ added in v0.3.0
func NewBuilderFactory(imageName string) (*BuilderFactory, error)
NewBuilderFactory creates a new instance of BuilderFactory.
func (*BuilderFactory) AddFileToBuilder ¶ added in v0.3.0
func (f *BuilderFactory) AddFileToBuilder(srcPath, destPath, chown string) error
AddFileToBuilder adds a file from the source path to the destination path in the image, with the specified ownership.
func (*BuilderFactory) ExecuteCmdInBuilder ¶ added in v0.3.0
func (f *BuilderFactory) ExecuteCmdInBuilder(command []string) (string, error)
ExecuteCmdInBuilder runs the provided command in the context of the given builder. It returns the command's output or any error encountered.
func (*BuilderFactory) PushBuilderImage ¶ added in v0.3.0
func (f *BuilderFactory) PushBuilderImage(imageName string) error
PushBuilderImage pushes the image from the given builder to a registry. The image is identified by the provided name.
func (*BuilderFactory) ReadFileFromBuilder ¶ added in v0.3.0
func (f *BuilderFactory) ReadFileFromBuilder(filePath string) ([]byte, error)
ReadFileFromBuilder reads a file from the given builder's mount point. It returns the file's content or any error encountered.
func (*BuilderFactory) SetEnvVar ¶ added in v0.3.0
func (f *BuilderFactory) SetEnvVar(name, value string) error
SetEnvVar sets the value of an environment variable in the builder.