lib

package
v0.0.0-...-8a812a6 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Kafka = cli.Command{
	Name:  "kafka",
	Usage: "kafka related commands",
	Subcommands: cli.Commands{
		{
			Name:  "list-topics",
			Usage: "list kafka topics",
			Flags: []cli.Flag{
				flagEmail,
				flagPassword,
				flagOTP,
				flagProject,
				flagService,
			},
			Action: Do(listTopics),
		},
		{
			Name:  "create-topic",
			Usage: "create kafka topic",
			Flags: []cli.Flag{
				flagEmail,
				flagPassword,
				flagOTP,
				flagProject,
				flagService,
				flagName,
				flagCleanupPolicy,
				flagPartitions,
				flagReplication,
				flagRetentionHours,
			},
			Action: Do(createTopic),
		},
		{
			Name:  "delete-topic",
			Usage: "delete kafka topic",
			Flags: []cli.Flag{
				flagEmail,
				flagPassword,
				flagOTP,
				flagProject,
				flagService,
				flagName,
			},
			Action: Do(deleteTopic),
		},
	},
}

Functions

func Do

func Do(fn func(ctx context.Context) (interface{}, error)) cli.ActionFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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