Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ListRemoteFlags = map[string]bool{ "list": true, "log": true, "run": true, "remote": true, "restart": true, }
ListRemoteFlags hides the globals non used --remote
Functions ¶
Types ¶
type Pattern ¶
type Pattern int
Pattern for the host and flags
const ( // RemotePattern takes only --remote RemotePattern Pattern // ProjectPattern takes only --project ProjectPattern // ProjectAndContainerPattern takes only --project and --container ProjectAndContainerPattern // FullHostPattern takes --project, --container, and --remote FullHostPattern )
type SetupHost ¶
type SetupHost struct {
Pattern Pattern
Requires Requires
UseProjectDirectory bool
UseProjectDirectoryForContainer bool
UseContainerDirectory bool
// contains filtered or unexported fields
}
SetupHost is the structure for host and flags parsing
func (*SetupHost) RemoteAddress ¶
RemoteAddress of the parsed flags or host
Click to show internal directories.
Click to hide internal directories.