pubsub

package
v3.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InstanceInformation

type InstanceInformation struct {
	TopicName        string `json:"topic_name"`
	SubscriptionName string `json:"subscription_name"`
}

type PubSubBroker

type PubSubBroker struct {
	Client    *http.Client
	ProjectId string
	Logger    lager.Logger

	broker_base.BrokerBase
}

func (*PubSubBroker) Deprovision

func (b *PubSubBroker) Deprovision(instanceID string, details models.DeprovisionDetails) error

Deletes the topic associated with the given instanceID

func (*PubSubBroker) Provision

func (b *PubSubBroker) Provision(instanceId string, details models.ProvisionDetails, plan models.PlanDetails) (models.ServiceInstanceDetails, error)

Creates a new PubSub topic with the name given in details.topic_name if subscription_name is supplied, will also create a subscription for this topic with optional config parameters is_push (defaults to "false"; i.e. pull), endpoint (defaults to nil), ack_deadline (seconds, defaults to 10, 600 max)

Jump to

Keyboard shortcuts

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