JSPM

gcloud-topics

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q17874F
  • License MIT

A gcloud utility to create and manage pubsub topics

Package Exports

  • gcloud-topics

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gcloud-topics) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

GCloud Topics

Table of contents

Overview

This tool was created with the main purpose of facilitating the deployment process and continuous integration, in addition to proposing a tool to facilitate the management of this resource 🚀

Installation

$ npm install -g gcloud-topics

Usage

Currently this package only implements a create method

Create

create method allow you to create one or more topics using a definition yaml file, it receives only a path argument

Sample

$ gcloud-topics create --path="/absolute/path/config.yml"

Definition File

project: [gcp-project-id]
topics:
  - name: [topic-name]
    regions: #optional
      - [region-name]
    schema: # optional
      id: [schema-id]
      project: [schema-project-id] 
      encoding: [schema-message-encoding]
  • regions property is an optional array, if it is defined it will restrict the storage of the topic
  • schema property is optional, if it is defined the topic will look for an existent schema with the specified id

Next Changes

  • Add examples
  • Add delete command
  • Add update command
  • Add tests for each command
  • Validate existent topics before creation