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) CreateACL(ctx context.Context, aclAdminConfig acl.ACLAdminConfig) error
- func (c *CLIRunner) DeleteACL(ctx context.Context, aclAdminConfig acl.ACLAdminConfig, ...) error
- func (c *CLIRunner) GetACLs(ctx context.Context, filter kafka.ACLFilter) error
- func (c *CLIRunner) GetBrokerBalance(ctx context.Context, topicName string) error
- func (c *CLIRunner) GetBrokers(ctx context.Context, full bool) error
- func (c *CLIRunner) GetClusterID(ctx context.Context, full bool) error
- func (c *CLIRunner) GetConfig(ctx context.Context, brokerOrTopic string) error
- func (c *CLIRunner) GetControllerID(ctx context.Context, full bool) 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, topics []string, status admin.PartitionStatus, ...) error
- func (c *CLIRunner) GetTopics(ctx context.Context, full bool) error
- func (c *CLIRunner) GetUsers(ctx context.Context, names []string) 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, allowInternalTopics 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) CreateACL ¶ added in v1.12.0
CreateACL does an apply run according to the spec in the argument config.
func (*CLIRunner) DeleteACL ¶ added in v1.12.0
func (c *CLIRunner) DeleteACL( ctx context.Context, aclAdminConfig acl.ACLAdminConfig, filter kafka.DeleteACLsFilter, ) error
DeleteACL deletes a single ACL.
func (*CLIRunner) GetACLs ¶ added in v1.10.3
GetACLs fetches the details of each acl in the cluster and prints out a summary.
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) GetClusterID ¶ added in v1.14.0
Get cluster ID
func (*CLIRunner) GetConfig ¶
GetConfig fetches the config for a broker or topic and prints it out for user inspection.
func (*CLIRunner) GetControllerID ¶ added in v1.14.0
Get active controller broker ID
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 ¶
func (c *CLIRunner) GetPartitions( ctx context.Context, topics []string, status admin.PartitionStatus, summary bool, ) error
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.
func (*CLIRunner) GetUsers ¶ added in v1.10.3
GerUsers fetches the details of each user in the cluster and prints out a table of them.