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"` }
InstanceInformation holds the details needed to connect to a PubSub instance after it has been provisioned.
type PubSubBroker ¶
type PubSubBroker struct {
broker_base.BrokerBase
}
PubSubBroker is the service-broker back-end for creating Google Pub/Sub topics, subscriptions, and accounts.
func (*PubSubBroker) Deprovision ¶
func (b *PubSubBroker) Deprovision(ctx context.Context, topic models.ServiceInstanceDetails, details brokerapi.DeprovisionDetails) error
Deprovision deletes the topic and subscription associated with the given instance.
func (*PubSubBroker) Provision ¶
func (b *PubSubBroker) Provision(instanceId string, details brokerapi.ProvisionDetails, plan models.ServicePlan) (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.
Click to show internal directories.
Click to hide internal directories.