cmd

package
v0.0.0-...-147c068 Latest Latest
Warning

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

Go to latest
Published: May 15, 2019 License: Apache-2.0 Imports: 25 Imported by: 0

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.

Jump to

Keyboard shortcuts

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