helpers

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: MIT Imports: 22 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 DestroyParameterGroup

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

func DestroySecurityGroup

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

func DestroySubnetGroup

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

func ReplicationGroupARN added in v0.8.0

func ReplicationGroupARN(session *session.Session, replicationGroupID string) (string, error)

func WriteCustomConfig

func WriteCustomConfig(
	config broker.Config,
	brokerName string,
	elastiCacheSubnetGroupName string,
	ec2SecurityGroupID string,
) (broker.Config, string, error)

Types

type BindingResponse added in v0.2.0

type BindingResponse struct {
	Credentials map[string]interface{} `json:"credentials,omitempty"`
}

type BrokerAPIClient

type BrokerAPIClient struct {
	URL                   string
	Username              string
	Password              string
	DefaultOrganizationID string
	DefaultSpaceID        string
	AcceptsIncomplete     bool
	CaPEM                 []byte
}

func NewBrokerAPIClient

func NewBrokerAPIClient(url string, username string, password string, defaultOrganizationID string, defaultSpaceID string, caPEM []byte) *BrokerAPIClient

func (*BrokerAPIClient) Bind added in v0.2.0

func (b *BrokerAPIClient) Bind(instanceID, serviceID, planID, appGUID, bindingID string) (int, *BindingResponse, error)

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) DoGetInstanceRequest added in v0.27.0

func (b *BrokerAPIClient) DoGetInstanceRequest(instanceID 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, oldPlanID, oldServiceID, orgID, spaceID, 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) GetServiceParams added in v0.28.0

func (b *BrokerAPIClient) GetServiceParams(instanceID string) (serviceParams providers.InstanceParameters, err error)

func (*BrokerAPIClient) ProvisionInstance

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

func (*BrokerAPIClient) Unbind added in v0.2.0

func (b *BrokerAPIClient) Unbind(instanceID, serviceID, planID, bindingID string) (int, error)

func (*BrokerAPIClient) UpdateInstance

func (b *BrokerAPIClient) UpdateInstance(instanceID, serviceID, planID, oldPlanID, oldServiceID, orgID, spaceID, paramJSON string) (responseCode int, operation string, responseBody 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"`
}

Jump to

Keyboard shortcuts

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