Documentation
¶
Index ¶
- Constants
- func IsServiceArgSpec(spec yargs.ArgSpec) bool
- func RemoteCommandInfos() map[string]CommandInfo
- func RemoteCommandNames() []string
- func RemoteCommandRegistry() yargs.Registry
- func RemoteFlagSpecs() map[string]map[string]FlagSpec
- func RemoteGroupFlagSpecs() map[string]map[string]map[string]FlagSpec
- func RemoteGroupInfos() map[string]GroupInfo
- func RequireArgsAtLeast(subcmd string, args []string, count int) error
- type CommandInfo
- type DockerPushArgs
- type EditFlags
- type EnvShowFlags
- type EventsFlags
- type FlagSpec
- type GroupInfo
- type InfoFlags
- type LogsFlags
- type MountFlags
- type RemoveFlags
- type RunFlags
- type ServiceArgs
- type ServiceName
- type StageFlags
- type StatusFlags
- type VersionFlags
Constants ¶
View Source
const (
CommandEvents = "events"
)
Variables ¶
This section is empty.
Functions ¶
func IsServiceArgSpec ¶
func RemoteCommandInfos ¶
func RemoteCommandInfos() map[string]CommandInfo
func RemoteCommandNames ¶
func RemoteCommandNames() []string
func RemoteCommandRegistry ¶
func RemoteFlagSpecs ¶
func RemoteGroupInfos ¶
Types ¶
type CommandInfo ¶
type DockerPushArgs ¶
type DockerPushArgs struct {
Service ServiceName `pos:"0" help:"Service name"`
Image string `pos:"1" help:"Local image ref"`
}
type EnvShowFlags ¶
type EnvShowFlags struct {
Staged bool
}
func ParseEnvShow ¶
func ParseEnvShow(args []string) (EnvShowFlags, []string, error)
type EventsFlags ¶
type EventsFlags struct {
All bool
}
func ParseEvents ¶
func ParseEvents(args []string) (EventsFlags, []string, error)
type GroupInfo ¶
type GroupInfo struct {
Name string
Description string
Commands map[string]CommandInfo
Hidden bool
}
type MountFlags ¶
func ParseMount ¶
func ParseMount(args []string) (MountFlags, []string, error)
type RemoveFlags ¶
func ParseRemove ¶
func ParseRemove(args []string) (RemoveFlags, []string, error)
type RunFlags ¶
type ServiceArgs ¶
type ServiceArgs struct {
Service ServiceName `pos:"0" help:"Service name"`
}
type ServiceName ¶
type ServiceName string
type StageFlags ¶
type StageFlags struct {
Net string
TsVer string
TsExit string
TsTags []string
TsAuthKey string
MacvlanMac string
MacvlanVlan int
MacvlanParent string
Restart bool
Pull bool
Publish []string
}
func ParseStage ¶
func ParseStage(args []string) (StageFlags, string, []string, error)
type StatusFlags ¶
type StatusFlags struct {
Format string
}
func ParseStatus ¶
func ParseStatus(args []string) (StatusFlags, []string, error)
type VersionFlags ¶
type VersionFlags struct {
JSON bool
}
func ParseVersion ¶
func ParseVersion(args []string) (VersionFlags, []string, error)
Click to show internal directories.
Click to hide internal directories.