dynamodbadapter

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DdbDataStore

type DdbDataStore struct {
	Accountid   string
	Accountuuid uuid.UUID
	Brokerid    string
	Region      string
	Ddb         dynamodb.DynamoDB
	Tablename   string
}

DdbDataStore is a DynamoDB implementation of DataStore.

func (DdbDataStore) DeleteServiceBinding

func (db DdbDataStore) DeleteServiceBinding(id string) error

DeleteServiceBinding deletes the service binding.

func (DdbDataStore) DeleteServiceInstance

func (db DdbDataStore) DeleteServiceInstance(sid string) error

DeleteServiceInstance deletes the service instance.

func (DdbDataStore) GetParam

func (db DdbDataStore) GetParam(paramname string) (value string, err error)

GetParam fetches parameter from Dynamo

func (DdbDataStore) GetServiceBinding

func (db DdbDataStore) GetServiceBinding(id string) (*serviceinstance.ServiceBinding, error)

GetServiceBinding returns the specified service binding.

func (DdbDataStore) GetServiceDefinition

func (db DdbDataStore) GetServiceDefinition(serviceuuid string) (*osb.Service, error)

GetServiceDefinition fetches given catalog service definition from Dynamo

func (DdbDataStore) GetServiceInstance

func (db DdbDataStore) GetServiceInstance(sid string) (*serviceinstance.ServiceInstance, error)

GetServiceInstance fetches given service instance from Dynamo

func (DdbDataStore) PutParam

func (db DdbDataStore) PutParam(paramname string, paramvalue string) error

PutParam puts parameters into Dynamo

func (DdbDataStore) PutServiceBinding

func (db DdbDataStore) PutServiceBinding(sb serviceinstance.ServiceBinding) error

PutServiceBinding stores the service binding.

func (DdbDataStore) PutServiceDefinition

func (db DdbDataStore) PutServiceDefinition(sd osb.Service) error

PutServiceDefinition push catalog service definition to DynamoDb

func (DdbDataStore) PutServiceInstance

func (db DdbDataStore) PutServiceInstance(si serviceinstance.ServiceInstance) error

PutServiceInstance stores given service instance in Dynamo

type Param

type Param struct {
	Value string `json:"value"`
}

Param stores a parameter value

type ServiceItem

type ServiceItem struct {
	ID          string      `json:"id"`
	Userid      string      `json:"userid"`
	Service     osb.Service `json:"service"`
	Serviceid   string      `json:"serviceid"`
	Servicename string      `json:"servicename"`
}

ServiceItem used to unmarshal catalog entries from DynamoDb

Jump to

Keyboard shortcuts

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