Documentation ¶
Index ¶
- Constants
- Variables
- func CopyDir(src string, dst string) error
- func CopyFile(src string, dst string) error
- func CopyFileToDir(src string, dstDir string) error
- func DoesLocalImageNeedUpdate(repository string, tag string) (bool, error)
- func GetLocalImageDigest(repository string, tag string) (string, error)
- func GetRemoteImageDigest(repository string, tag string) (string, error)
- func HasBopmaticBuildImage() (bool, error)
- func HasImage(repository string, tag string) (bool, error)
- func RenameFile(src string, dst string) error
- func RenameFileToDir(src string, dstDir string) error
- func RunContainerCommand(ctx context.Context, cmdAndArgs []string, stdOut io.Writer, stdErr io.Writer) error
- func RunHostCommand(ctx context.Context, cmdAndArgs []string, stdOut io.Writer, stdErr io.Writer) error
- func SymlinkFile(src string, dst string) error
- func SymlinkFileToDir(src string, dstDir string) error
Constants ¶
View Source
const ( BopmaticImageRepo = "bopmatic/build" BopmaticImageTag = "latest" BopmaticBuildImageName = BopmaticImageRepo + ":" + BopmaticImageTag DockerInstallErrMsg = "Could not invoke docker; please double check that you have docker installed: %w" )
Variables ¶
View Source
var ErrImageNotFound = errors.New("image does not exist")
Functions ¶
func CopyFileToDir ¶
func GetRemoteImageDigest ¶
@todo investigate whether this is achievable with github.com/docker/docker rather than writing our own custom json parsing logic
func HasBopmaticBuildImage ¶
func RenameFile ¶
func RenameFileToDir ¶
func RunContainerCommand ¶
func RunHostCommand ¶
func SymlinkFile ¶
func SymlinkFileToDir ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.