{"modulePath":"github.com/cloudnative-pg/plugin-barman-cloud","version":"v0.16.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package command\n\nPackage command provides function to execute commands in k8s pods.\n\n## Functions\n\n```go\nfunc ExecuteInContainer(\n\tctx context.Context,\n\tclientSet kubernetes.Clientset,\n\tcfg *rest.Config,\n\tcontainer ContainerLocator,\n\ttimeout *time.Duration,\n\tcommand []string,\n) (string, string, error)\n```\nExecuteInContainer executes a command in a container. If timeout is not nil, the command will be executed with the specified timeout. The function returns the stdout and stderr of the command.\n\n## Types\n\n```go\ntype ContainerLocator struct {\n\tNamespaceName string\n\tPodName       string\n\tContainerName string\n}\n```\nContainerLocator is a struct that contains the information needed to locate a container in a pod.\n\n","path":"github.com/cloudnative-pg/plugin-barman-cloud/test/e2e/internal/command","name":"command","synopsis":"Package command provides function to execute commands in k8s pods.","isRedistributable":true}
