cmd

package
v0.0.0-...-f9069c5 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FrameworkMasterFlag  = "master"
	FrameworkNameFlag    = "framework-name"
	FrameworkRoleFlag    = "framework-role"
	FrameworkTimeoutFlag = "framework-timeout"
	FrameworkStorageFlag = "storage"
	FrameworkUserFlag    = "user"
	FrameworkBindIPFlag  = "bind-ip"

	ApiFlag = "api"
	ApiEnv  = "GM_API"

	GroupIDFlag               = "id"
	GroupSubscriptionFlag     = "subscription"
	GroupBootstrapBrokersFlag = "bootstrap-brokers"
)

Variables

View Source
var ErrApiRequired = errors.New("Unspecified gonsumer-mesos API server address. Use --api flag or GM_API env to set.")
View Source
var ErrGroupIDRequired = errors.New("Group --id flag is required.")

Functions

func FmtConsumer

func FmtConsumer(consumer *framework.Consumer, indent int) string

func FmtConsumers

func FmtConsumers(consumers []*framework.Consumer, indent int) string

func FmtGroup

func FmtGroup(group *framework.Group, indent int) string

func FmtGroups

func FmtGroups(groups []*framework.Group, indent int) string

func FrameworkAction

func FrameworkAction(c *cli.Context) error

func GroupAddAction

func GroupAddAction(c *cli.Context) error

func GroupListAction

func GroupListAction(c *cli.Context) error

func GroupRemoveAction

func GroupRemoveAction(c *cli.Context) error

func GroupStartAction

func GroupStartAction(c *cli.Context) error

func GroupStopAction

func GroupStopAction(c *cli.Context) error

func GroupUpdateAction

func GroupUpdateAction(c *cli.Context) error

func Indent

func Indent(indent int) string

func ResolveApi

func ResolveApi(c *cli.Context) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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