Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Copy a src file to a dest file. The src and dest file names are the same. // <dir_src>/<file> + <dir_dst>/<file> -> <dir_dst>/<file> CopyModeFileToFile = CopyMode(iota) // Copy a src file to a dest file. The src and dest file names are not the same. // <dir_src>/<file_src> + <dir_dst>/<file_dst> -> <dir_dst>/<file_dst> CopyModeFileToFileRename // Copy a src file to dest directory. The dest file gets created in the dest // folder with the src filename. // <dir_src>/<file> + <dir_dst> -> <dir_dst>/<file> CopyModeFileToDir // Copy a src directory to dest directory. // <dir_src> + <dir_dst> -> <dir_dst>/<dir_src> CopyModeDirToDir // Copy all files in the src directory to the dest directory. This works recursively. // <dir_src>/ + <dir_dst> -> <dir_dst>/<files_from_dir_src> CopyModeFilesToDir )
Variables ¶
View Source
var ( ErrCopyDirToFile = fmt.Errorf("can't copy dir to file") ErrDstDirNotExist = fmt.Errorf("destination directory does not exist") )
View Source
var AppCommand = cli.Command{ Name: "app", Aliases: []string{"a"}, Usage: "Manage apps", UsageText: "abra app [command] [arguments] [options]", Commands: []*cli.Command{ &appBackupCommand, &appCheckCommand, &appCmdCommand, &appConfigCommand, &appCpCommand, &appDeployCommand, &appListCommand, &appLogsCommand, &appNewCommand, &appPsCommand, &appRemoveCommand, &appRestartCommand, &appRestoreCommand, &appRollbackCommand, &appRunCommand, &appSecretCommand, &appServicesCommand, &appUndeployCommand, &appUpgradeCommand, &appVolumeCommand, }, }
Functions ¶
func CopyFromContainer ¶
func CopyFromContainer(cl *dockerClient.Client, containerID, srcPath, dstPath string) error
CopyFromContainer copies a file or directory from the given container to the local file system. See the possible copy modes and their documentation.
func CopyToContainer ¶
func CopyToContainer(cl *dockerClient.Client, containerID, srcPath, dstPath string) error
CopyToContainer copies a file or directory from the local file system to the container. See the possible copy modes and their documentation.
Types ¶
Click to show internal directories.
Click to hide internal directories.