app

package
v0.0.0-...-004cd70 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2024 License: GPL-2.0 Imports: 48 Imported by: 0

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",
	ArgsUsage:   "<domain>",
	Description: "Functionality for managing the life cycle of your apps",
	Subcommands: []cli.Command{
		appBackupCommand,
		appCheckCommand,
		appCmdCommand,
		appConfigCommand,
		appCpCommand,
		appDeployCommand,
		appErrorsCommand,
		appListCommand,
		appLogsCommand,
		appNewCommand,
		appPsCommand,
		appRemoveCommand,
		appRestartCommand,
		appRestoreCommand,
		appRollbackCommand,
		appRunCommand,
		appSecretCommand,
		appServicesCommand,
		appUndeployCommand,
		appUpgradeCommand,
		appVersionCommand,
		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

type AppSecrets

type AppSecrets map[string]string

AppSecrets represents all app secrest

type CopyMode

type CopyMode int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL