pubsub

package
v5.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServiceDefinition

func ServiceDefinition() *broker.ServiceDefinition

ServiceDefinition creates a new ServiceDefinition object for the Pub/Sub service.

Types

type InstanceInformation

type InstanceInformation struct {
	TopicName string `json:"topic_name"`

	// SubscriptionName is optional, if non-empty then a susbcription was created.
	SubscriptionName string `json:"subscription_name"`
}

InstanceInformation holds the details needed to connect to a PubSub instance after it has been provisioned.

type PubSubBroker

type PubSubBroker struct {
	base.BrokerBase
}

PubSubBroker is the service-broker back-end for creating Google Pub/Sub topics, subscriptions, and accounts.

func (*PubSubBroker) Deprovision

Deprovision deletes the topic and subscription associated with the given instance.

func (*PubSubBroker) Provision

func (b *PubSubBroker) Provision(ctx context.Context, provisionContext *varcontext.VarContext) (models.ServiceInstanceDetails, error)

Provision creates a new Pub/Sub topic from the settings in the user-provided details and service plan. If a subscription name is supplied, the function will also create a subscription for the topic.

Jump to

Keyboard shortcuts

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