1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-25 08:19:40 +02:00

feat(global): add container exec support

This commit is contained in:
Anthony Lapenna 2016-08-03 15:11:09 +12:00
parent b0ebbdf68c
commit 5878eed7ec
16 changed files with 438 additions and 75 deletions

View file

@ -6,14 +6,6 @@ import (
"strings"
)
// TLSFlags defines all the flags associated to the SSL configuration
type TLSFlags struct {
tls bool
caPath string
certPath string
keyPath string
}
// pair defines a key/value pair
type pair struct {
Name string `json:"name"`
@ -52,13 +44,3 @@ func pairs(s kingpin.Settings) (target *[]pair) {
s.SetValue((*pairList)(target))
return
}
// newTLSFlags creates a new TLSFlags from command flags
func newTLSFlags(tls bool, cacert string, cert string, key string) TLSFlags {
return TLSFlags{
tls: tls,
caPath: cacert,
certPath: cert,
keyPath: key,
}
}