summaryrefslogtreecommitdiffstats
path: root/charms/trusty/kafka/actions.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'charms/trusty/kafka/actions.yaml')
-rw-r--r--charms/trusty/kafka/actions.yaml48
1 files changed, 48 insertions, 0 deletions
diff --git a/charms/trusty/kafka/actions.yaml b/charms/trusty/kafka/actions.yaml
new file mode 100644
index 0000000..6026d0b
--- /dev/null
+++ b/charms/trusty/kafka/actions.yaml
@@ -0,0 +1,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