Documentation
¶
Overview ¶
Copyright Jetstack Ltd. See LICENSE for details.
Copyright Jetstack Ltd. See LICENSE for details.
Copyright Jetstack Ltd. See LICENSE for details.
Index ¶
- func TarStreamFromDockerfile(fileBody string) (io.Reader, error)
- func TarStreamFromFile(fileName, fileBody string) (io.Reader, error)
- type App
- type AppContainer
- func (ac *AppContainer) Attach(cmd string, args []string) (returnCode int, err error)
- func (ac *AppContainer) Capture(cmd string, args []string) (stdOut string, stdErr string, returnCode int, err error)
- func (ac *AppContainer) CleanUp() error
- func (ac *AppContainer) CleanUpSilent(log *logrus.Entry)
- func (ac *AppContainer) Execute(cmd string, args []string) (returnCode int, err error)
- func (ac *AppContainer) Prepare() error
- func (ac *AppContainer) SetLog(log *logrus.Entry)
- func (ac *AppContainer) Start() error
- func (ac *AppContainer) UploadToContainer(tarStream io.Reader, destPath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type App struct { DockerfilePath string // contains filtered or unexported fields }
func (*App) Container ¶
func (a *App) Container() *AppContainer
type AppContainer ¶
type AppContainer struct { WorkingDir string Env []string Cmd []string // contains filtered or unexported fields }
func (*AppContainer) Attach ¶
func (ac *AppContainer) Attach(cmd string, args []string) (returnCode int, err error)
func (*AppContainer) CleanUp ¶
func (ac *AppContainer) CleanUp() error
func (*AppContainer) CleanUpSilent ¶
func (ac *AppContainer) CleanUpSilent(log *logrus.Entry)
func (*AppContainer) Execute ¶
func (ac *AppContainer) Execute(cmd string, args []string) (returnCode int, err error)
func (*AppContainer) Prepare ¶
func (ac *AppContainer) Prepare() error
func (*AppContainer) SetLog ¶
func (ac *AppContainer) SetLog(log *logrus.Entry)
func (*AppContainer) Start ¶
func (ac *AppContainer) Start() error
func (*AppContainer) UploadToContainer ¶
func (ac *AppContainer) UploadToContainer(tarStream io.Reader, destPath string) error
Click to show internal directories.
Click to hide internal directories.