Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version of portctl Version = "devel" // BuildDate of the binary BuildDate string // PortainerVersion used PortainerVersion string // DockerVersion used DockerVersion string )
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func GetDockerCli ¶
func GetDockerCli(portainercli *portainerapi.Portainer) (*dockerapi.DockerEngine, error)
GetDockerCli returns a docker client based on the current portainer context
func GetPortainerCli ¶
func GetPortainerCli() (*portainerapi.Portainer, error)
GetPortainerCli returns a portainer client for the current cmd.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.