gcloudps

command module
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

README

gcloudps

GoDoc Build

Google Cloud Pub/Sub CLI Utility.

Publish and subscribe to Google Cloud Pub/Sub from the CLI.

Install from source:

go get github.com/erikwilliamsa/gcloudps

Usage:
  • Log into your Google Cloud project using the gcloud command

Subscribing

  • gcloudps sub -p <gcp project name> -t <topicname> -s <subscriptionname>

Other flags:

Flag Description
--no-delete Disables the auto delete of subscriptions on exit
--preview Displays each messages data (body). Will auto format JSON payloads

Publishing

Publish a single customm message:

gcloudps pub -p <gcp project name> -t <topicname> -m "my message!"

Generate an publish a number of messages:

gcloudps pub generate -c 1000 -p <gcp project name> -t <topicname>

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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