summaryrefslogtreecommitdiffstats
path: root/charms/trusty/kafka/actions.yaml
blob: 6026d0b1eb42bf0e0cdf1cc7be47018f408004d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
create-topic:
  description: Create a new Kafka topic
  params:
    topic:
      type: string
      description: Topic name
    partitions:
      type: integer
      description: Number of partitions for the topic being created
    replication:
      type: integer
      description: Replication factor for each partition in the topic
  required: [topic, partitions, replication]
  additionalProperties: false
delete-topic:
  description: Delete a Kafka topic
  params:
    topic:
      type: string
      description: Topic name
  required: [topic]
  additionalProperties: false
list-topics:
  description: List all Kafka topics
list-zks:
  description: List ip:port info for connected Zookeeper servers
read-topic:
  description: Consume an existing kafka topic
  params:
    topic:
      type: string
      description: Topic name
    partition:
      type: integer
      description: Partition to consume
  required: [topic, partition]
  additionalProperties: false
write-topic:
  description: Write to a kafka topic
  params:
    topic:
      type: string
      description: Topic name
    data:
      type: string
      description: Data to write to topic
  required: [topic, data]
  additionalProperties: false