integrations

package
v0.0.164 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2015 License: GPL-2.0 Imports: 16 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InventoryItem added in v0.0.150

type InventoryItem struct {
	SKU          string         `json:"sku"`
	Tier         int            `json:"tier"`
	OfferingType string         `json:"offeringType"`
	Size         string         `json:"size"`
	Status       string         `json:"status"`
	ID           string         `json:"id"`
	CurrentLease InventoryLease `json:"currentLease"`
}

InventoryItem - entity from inventory query, includes lease status

type InventoryLease added in v0.0.150

type InventoryLease struct {
	DaysUntilExpires int    `json:"daysUntilExpires"`
	Username         string `json:"userName"`
}

InventoryLease - represents information about an active lease of an inventory item.

type MyHeritage

type MyHeritage struct {
	LoginTarget string
	LoginUser   string
	LoginPass   string
	CCTarget    string
}

MyHeritage - integration wrapper for connections to heritage

func (*MyHeritage) New

func (s *MyHeritage) New(appEnv *cfenv.App) *MyHeritage

New - create a new heritage foundation integration wrapper

type MyInventoryClient added in v0.0.150

type MyInventoryClient struct {
	ServiceBaseURL string
	Enabled        bool
}

MyInventoryClient - integration wrapper for interacting with inventory svc

func (*MyInventoryClient) GetInventoryItems added in v0.0.150

func (client *MyInventoryClient) GetInventoryItems() (result []InventoryItem, err error)

GetInventoryItems - query the inventory items from the inventory service

func (*MyInventoryClient) GetLease added in v0.0.151

func (client *MyInventoryClient) GetLease(leaseID string) (lease InventoryLease, err error)

GetLease - obtains an individual lease, typically by referencing it from a parent inventory item

func (*MyInventoryClient) LeaseInventoryItem added in v0.0.156

func (client *MyInventoryClient) LeaseInventoryItem(inventoryItemID string, user string, duration int) (lease *InventoryLease, err error)

LeaseInventoryItem acquires a new lease on an inventory item from the inventory service.

func (*MyInventoryClient) New added in v0.0.150

func (client *MyInventoryClient) New(appEnv *cfenv.App) *MyInventoryClient

New - create an inventory service wrapper.

func (*MyInventoryClient) NewWithURL added in v0.0.150

func (client *MyInventoryClient) NewWithURL(url string) *MyInventoryClient

NewWithURL - create client directly with URL. Used for testing.

func (*MyInventoryClient) String added in v0.0.150

func (client *MyInventoryClient) String() string

type MyMongo

type MyMongo struct {
	Col     *mgo.Collection
	Session *mgo.Session
	// contains filtered or unexported fields
}

MyMongo - integration wrapper for mongodb

func (*MyMongo) Collection added in v0.0.117

func (s *MyMongo) Collection() pezdispenser.Persistence

Collection - this allows us to get a mongo collection with a new session wrapped as a pezdispenser.Persistence interface implementation

func (*MyMongo) New

func (s *MyMongo) New(appEnv *cfenv.App) *MyMongo

New - create a new mongo integration wrapper

type MyNewRelic

type MyNewRelic struct {
	Key string
	App string
}

MyNewRelic - integration wrapper for connections to newrelic

func (*MyNewRelic) New

func (s *MyNewRelic) New(appEnv *cfenv.App) *MyNewRelic

New - create a new newrelic integration wrapper

type MyOAuth2

type MyOAuth2 struct {
	ID     string
	Secret string
}

MyOAuth2 - integration wrapper for oauth2

func (*MyOAuth2) New

func (s *MyOAuth2) New(appEnv *cfenv.App) *MyOAuth2

New - create a new oauth2 integration wrapper

type MyRedis

type MyRedis struct {
	URI  string
	Pass string
	Pool *redis.Pool
}

MyRedis - integration wrapper for redis

func (*MyRedis) New

func (s *MyRedis) New(appEnv *cfenv.App) *MyRedis

New - create a new redis integration wrapper

Jump to

Keyboard shortcuts

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