mirror of
https://github.com/ceph/ceph
synced 2024-12-23 03:44:23 +00:00
…
|
||
---|---|---|
.. | ||
go.mod | ||
go.sum | ||
README.md | ||
topic-creation.go |
Introduction
This directory contains Golang code example on how to create an SNS Topic on a Ceph RGW cluster.
Prerequisite
Linux machine running an RGW Ceph cluster. Preferrably started with the OSD=1 MON=1 MDS=0 MGR=0 RGW=1 ../src/vstart.sh --debug --new
command.
Go installed on the Linux machine.
Workflow Procedure
- Navigate through your file system to where the Golang example code exists on your terminal.
- Run
go mod tidy
to install the required Golang packages on the system. - Run the Golang program as
go run topic-creation.go -t sample-topic-1 -a '{"push-endpoint": "http://127.0.0.1:10900"}'
on the terminal window to create SNS topic with custom attributes.