topic

package
v1.24.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompleteTopicNames

func CompleteTopicNames(_ *cobra.Command, args []string, _ string) ([]string, cobra.ShellCompDirective)

Types

type AlterTopicFlags

type AlterTopicFlags struct {
	Partitions        int32
	ReplicationFactor int16
	ValidateOnly      bool
	Configs           []string
}

type CreateTopicFlags

type CreateTopicFlags struct {
	Partitions        int32
	ReplicationFactor int16
	ValidateOnly      bool
	Configs           []string
}

type DescribeTopicFlags

type DescribeTopicFlags struct {
	PrintConfigs        bool
	SkipEmptyPartitions bool
	OutputFormat        string
}

type GetTopicsFlags

type GetTopicsFlags struct {
	OutputFormat string
}

type Operation

type Operation struct {
}

func (*Operation) AlterTopic

func (operation *Operation) AlterTopic(topic string, flags AlterTopicFlags) error

func (*Operation) CreateTopics

func (operation *Operation) CreateTopics(topics []string, flags CreateTopicFlags) error

func (*Operation) DeleteTopics

func (operation *Operation) DeleteTopics(topics []string) error

func (*Operation) DescribeTopic

func (operation *Operation) DescribeTopic(topic string, flags DescribeTopicFlags) error

func (*Operation) GetTopics

func (operation *Operation) GetTopics(flags GetTopicsFlags) error

func (*Operation) ListTopicsNames

func (operation *Operation) ListTopicsNames() ([]string, error)

type Partition

type Partition struct {
	ID           int32
	OldestOffset int64   `json:"oldestOffset" yaml:"oldestOffset"`
	NewestOffset int64   `json:"newestOffset" yaml:"newestOffset"`
	Leader       string  `json:",omitempty" yaml:",omitempty"`
	Replicas     []int32 `json:",omitempty" yaml:",omitempty,flow"`
	ISRs         []int32 `json:"inSyncReplicas,omitempty" yaml:"inSyncReplicas,omitempty,flow"`
}

type Topic

type Topic struct {
	Name       string
	Partitions []Partition       `json:",omitempty" yaml:",omitempty"`
	Configs    []internal.Config `json:",omitempty" yaml:",omitempty"`
}

func FromYaml

func FromYaml(yamlString string) (Topic, error)

Jump to

Keyboard shortcuts

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