Documentation
¶
Index ¶
- func BodyBytes(resp *http.Response) ([]byte, error)
- func CleanUpParameterGroups(prefix string, session *session.Session) error
- func CleanUpTestDatabaseInstances(prefix string, awsSession *session.Session) error
- func CreateSecurityGroup(prefix string, session *session.Session) (*string, error)
- func CreateSubnetGroup(prefix string, session *session.Session) (*string, error)
- func DestroySecurityGroup(id *string, session *session.Session) error
- func DestroySubnetGroup(name *string, session *session.Session) error
- type BrokerAPIClient
- func (b *BrokerAPIClient) DeprovisionInstance(instanceID, serviceID, planID string) (responseCode int, operation string, err error)
- func (b *BrokerAPIClient) DoBindRequest(instanceID, serviceID, planID, appGUID, bindingID string) (*http.Response, error)
- func (b *BrokerAPIClient) DoDeprovisionRequest(instanceID, serviceID, planID string) (*http.Response, error)
- func (b *BrokerAPIClient) DoLastOperationRequest(instanceID, serviceID, planID, operation string) (*http.Response, error)
- func (b *BrokerAPIClient) DoProvisionRequest(instanceID, serviceID, planID string, paramJSON string) (*http.Response, error)
- func (b *BrokerAPIClient) DoUnbindRequest(instanceID, serviceID, planID, bindingID string) (*http.Response, error)
- func (b *BrokerAPIClient) DoUpdateRequest(instanceID, serviceID, planID string, newPlanID string, paramJSON string) (*http.Response, error)
- func (b *BrokerAPIClient) GetCatalog() (brokerapi.CatalogResponse, error)
- func (b *BrokerAPIClient) GetLastOperationState(instanceID, serviceID, planID, operation string) (string, error)
- func (b *BrokerAPIClient) ProvisionInstance(instanceID, serviceID, planID string, paramJSON string) (responseCode int, operation string, err error)
- func (b *BrokerAPIClient) UpdateInstance(instanceID, serviceID, planID string, newPlanID string, paramJSON string) (responseCode int, operation string, err error)
- type ByServiceID
- type CleanFunc
- type LastOperationResponse
- type ProvisionFunc
- type ProvisionManager
- type ProvisioningResponse
- type RDSClient
- func (r *RDSClient) CreateDBSnapshot(ID string) (string, error)
- func (b *RDSClient) DBInstanceFinalSnapshotIdentifier(instanceID string) string
- func (r *RDSClient) DeleteDBSnapshot(snapshotID string) (*rds.DeleteDBSnapshotOutput, error)
- func (r *RDSClient) GetDBInstanceDetails(ID string) (*rds.DescribeDBInstancesOutput, error)
- func (r *RDSClient) GetDBSnapshot(snapshotID string) (*rds.DescribeDBSnapshotsOutput, error)
- func (r *RDSClient) Ping() (bool, error)
- type WaitFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanUpParameterGroups ¶ added in v0.27.0
func CleanUpTestDatabaseInstances ¶ added in v0.27.0
func CreateSecurityGroup ¶
func CreateSubnetGroup ¶
Types ¶
type BrokerAPIClient ¶
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 (*BrokerAPIClient) DoUnbindRequest ¶
func (b *BrokerAPIClient) DoUnbindRequest(instanceID, serviceID, planID, bindingID string) (*http.Response, error)
func (*BrokerAPIClient) DoUpdateRequest ¶
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 (*BrokerAPIClient) UpdateInstance ¶
type ByServiceID ¶
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 ProvisionFunc ¶ added in v0.22.0
type ProvisionManager ¶ added in v0.22.0
type ProvisionManager struct { Provisioner ProvisionFunc // contains filtered or unexported fields }
ProvisionManager performs the provisioning. It gets a Provisioner function that should do the creationg and returns:
- a function that would synchronously wait for the thing to finish
- a function that would clean up whatever is created
It allows to optionally wait for the creation to finish or cleanup only once.
func (*ProvisionManager) CleanUp ¶ added in v0.22.0
func (p *ProvisionManager) CleanUp()
func (*ProvisionManager) Provision ¶ added in v0.22.0
func (p *ProvisionManager) Provision()
func (*ProvisionManager) Wait ¶ added in v0.22.0
func (p *ProvisionManager) Wait()
type ProvisioningResponse ¶
type RDSClient ¶
type RDSClient struct {
// contains filtered or unexported fields
}
func (*RDSClient) CreateDBSnapshot ¶ added in v0.22.0
func (*RDSClient) DBInstanceFinalSnapshotIdentifier ¶ added in v0.22.0
func (*RDSClient) DeleteDBSnapshot ¶ added in v0.22.0
func (r *RDSClient) DeleteDBSnapshot(snapshotID string) (*rds.DeleteDBSnapshotOutput, error)
func (*RDSClient) GetDBInstanceDetails ¶ added in v0.20.0
func (r *RDSClient) GetDBInstanceDetails(ID string) (*rds.DescribeDBInstancesOutput, error)
func (*RDSClient) GetDBSnapshot ¶ added in v0.22.0
func (r *RDSClient) GetDBSnapshot(snapshotID string) (*rds.DescribeDBSnapshotsOutput, error)
Click to show internal directories.
Click to hide internal directories.