helpers

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BodyBytes

func BodyBytes(resp *http.Response) ([]byte, error)

func CreateSecurityGroup

func CreateSecurityGroup(prefix string, session *session.Session) (*string, error)

func CreateSubnetGroup

func CreateSubnetGroup(prefix string, session *session.Session) (*string, error)

func DestroySecurityGroup

func DestroySecurityGroup(id *string, session *session.Session) error

func DestroySubnetGroup

func DestroySubnetGroup(name *string, session *session.Session) error

Types

type BrokerAPIClient

type BrokerAPIClient struct {
	Url               string
	Username          string
	Password          string
	AcceptsIncomplete bool
}

func NewBrokerAPIClient

func NewBrokerAPIClient(Url string, Username string, Password string) *BrokerAPIClient

func (*BrokerAPIClient) DeprovisionInstance

func (b *BrokerAPIClient) DeprovisionInstance(instanceID, serviceID, planID string) (responseCode int, operation string, err error)

func (*BrokerAPIClient) DoBindRequest

func (b *BrokerAPIClient) DoBindRequest(instanceID, serviceID, planID, appGUID, bindingID string) (*http.Response, error)

func (*BrokerAPIClient) DoDeprovisionRequest

func (b *BrokerAPIClient) DoDeprovisionRequest(instanceID, serviceID, planID string) (*http.Response, error)

func (*BrokerAPIClient) DoLastOperationRequest

func (b *BrokerAPIClient) DoLastOperationRequest(instanceID, serviceID, planID, operation string) (*http.Response, error)

func (*BrokerAPIClient) DoProvisionRequest

func (b *BrokerAPIClient) DoProvisionRequest(instanceID, serviceID, planID string, paramJSON string) (*http.Response, error)

func (*BrokerAPIClient) DoUnbindRequest

func (b *BrokerAPIClient) DoUnbindRequest(instanceID, serviceID, planID, bindingID string) (*http.Response, error)

func (*BrokerAPIClient) DoUpdateRequest

func (b *BrokerAPIClient) DoUpdateRequest(instanceID, serviceID, planID string, newPlanID string, paramJSON string) (*http.Response, error)

func (*BrokerAPIClient) GetCatalog

func (b *BrokerAPIClient) GetCatalog() (brokerapi.CatalogResponse, error)

func (*BrokerAPIClient) GetLastOperationState

func (b *BrokerAPIClient) GetLastOperationState(instanceID, serviceID, planID, operation string) (string, error)

func (*BrokerAPIClient) ProvisionInstance

func (b *BrokerAPIClient) ProvisionInstance(instanceID, serviceID, planID string, paramJSON string) (responseCode int, operation string, err error)

func (*BrokerAPIClient) UpdateInstance

func (b *BrokerAPIClient) UpdateInstance(instanceID, serviceID, planID string, newPlanID string, paramJSON string) (responseCode int, operation string, err error)

type ByServiceID

type ByServiceID []brokerapi.Service

func (ByServiceID) Len

func (a ByServiceID) Len() int

func (ByServiceID) Less

func (a ByServiceID) Less(i, j int) bool

func (ByServiceID) Swap

func (a ByServiceID) Swap(i, j int)

type LastOperationResponse

type LastOperationResponse struct {
	State       string `json:"state,omitempty"`
	Description string `json:"description,omitempty"`
}

type ProvisioningResponse

type ProvisioningResponse struct {
	DashboardURL string `json:"dashboard_url,omitempty"`
	Operation    string `json:"operation,omitempty"`
}

type RDSClient

type RDSClient struct {
	// contains filtered or unexported fields
}

func NewRDSClient

func NewRDSClient(region string, dbPrefix string) (*RDSClient, error)

func (*RDSClient) DeleteDBFinalSnapshot

func (r *RDSClient) DeleteDBFinalSnapshot(ID string) (*rds.DeleteDBSnapshotOutput, error)

func (*RDSClient) GetDBFinalSnapshots

func (r *RDSClient) GetDBFinalSnapshots(ID string) (*rds.DescribeDBSnapshotsOutput, error)

func (*RDSClient) Ping

func (r *RDSClient) Ping() (bool, error)

Jump to

Keyboard shortcuts

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