Documentation ¶
Index ¶
- type CLIRunner
- func (c *CLIRunner) ApplyTopic(ctx context.Context, applierConfig apply.TopicApplierConfig) error
- func (c *CLIRunner) BootstrapTopics(ctx context.Context, topics []string, clusterConfig config.ClusterConfig, ...) error
- func (c *CLIRunner) CheckTopic(ctx context.Context, checkConfig check.CheckConfig) (bool, error)
- func (c *CLIRunner) GetBrokerBalance(ctx context.Context, topicName string) error
- func (c *CLIRunner) GetBrokers(ctx context.Context, full bool) error
- func (c *CLIRunner) GetConfig(ctx context.Context, brokerOrTopic string) error
- func (c *CLIRunner) GetGroupMembers(ctx context.Context, groupID string, full bool) error
- func (c *CLIRunner) GetGroups(ctx context.Context) error
- func (c *CLIRunner) GetMemberLags(ctx context.Context, topic string, groupID string, full bool, ...) error
- func (c *CLIRunner) GetOffsets(ctx context.Context, topic string) error
- func (c *CLIRunner) GetPartitions(ctx context.Context, topic string) error
- func (c *CLIRunner) GetTopics(ctx context.Context, full bool) error
- func (c *CLIRunner) ResetOffsets(ctx context.Context, topic string, groupID string, ...) error
- func (c *CLIRunner) Tail(ctx context.Context, topic string, offset int64, partitions []int, ...) error
- type Repl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLIRunner ¶
type CLIRunner struct {
// contains filtered or unexported fields
}
CLIRunner is a utility that runs commands from either the command-line or the repl.
func NewCLIRunner ¶
func NewCLIRunner( adminClient admin.Client, printer func(f string, a ...interface{}), showSpinner bool, ) *CLIRunner
NewCLIRunner creates and returns a new CLIRunner instance.
func (*CLIRunner) ApplyTopic ¶
func (c *CLIRunner) ApplyTopic( ctx context.Context, applierConfig apply.TopicApplierConfig, ) error
ApplyTopic does an apply run according to the spec in the argument config.
func (*CLIRunner) BootstrapTopics ¶
func (c *CLIRunner) BootstrapTopics( ctx context.Context, topics []string, clusterConfig config.ClusterConfig, matchRegexpStr string, excludeRegexpStr string, outputDir string, overwrite bool, ) error
BootstrapTopics creates configs for one or more topics based on their current state in the cluster.
func (*CLIRunner) CheckTopic ¶
CheckTopic runs a topic check against a single topic and prints a summary of the results out.
func (*CLIRunner) GetBrokerBalance ¶
GetBrokerBalance evaluates the balance of the brokers for a single topic and prints a summary out for user inspection.
func (*CLIRunner) GetBrokers ¶
GetBrokers gets all brokers and prints out a summary for the user.
func (*CLIRunner) GetConfig ¶
GetConfig fetches the config for a broker or topic and prints it out for user inspection.
func (*CLIRunner) GetGroupMembers ¶
GetGroupMembers fetches and prints out information about every member in a consumer group.
func (*CLIRunner) GetGroups ¶
GetGroups fetches all consumer groups and prints them out for user inspection.
func (*CLIRunner) GetMemberLags ¶
func (c *CLIRunner) GetMemberLags( ctx context.Context, topic string, groupID string, full bool, sortByValues bool, ) error
GetMemberLags fetches and prints a summary of the consumer group lag for each partition in a single topic.
func (*CLIRunner) GetOffsets ¶
GetOffsets fetches details about all partition offsets in a single topic and prints out a summary.
func (*CLIRunner) GetPartitions ¶
GetPartitions fetches the details of each partition in a topic and prints out a summary for user inspection.
func (*CLIRunner) GetTopics ¶
GetTopics fetches the details of each topic in the cluster and prints out a summary.