Versions in this module Expand all Collapse all v0 v0.1.0 Sep 21, 2020 Changes in this version + const APIVersionHeader + const AcceptsIncomplete + const AppGUIDRequiredErrorDescription + const AppGUIDRequiredErrorMessage + const AsyncErrorDescription + const AsyncErrorMessage + const IdCustomTypeKey + const OriginatingIdentityHeader + const PlatformCloudFoundry + const PlatformKubernetes + const VarKeyBindingID + const VarKeyInstanceID + const VarKeyOperation + const VarKeyPlanID + const VarKeyServiceID + func IsAppGUIDRequiredError(err error) bool + func IsAsyncBindingOperationsNotAllowedError(err error) bool + func IsAsyncRequiredError(err error) bool + func IsConflictError(err error) bool + func IsGoneError(err error) bool + type APIVersion struct + func LatestAPIVersion() APIVersion + func Version2_11() APIVersion + func Version2_12() APIVersion + func Version2_13() APIVersion + func (v APIVersion) AtLeast(test APIVersion) bool + func (v APIVersion) HeaderValue() string + type AlphaAPIMethodsNotAllowedError struct + func (e AlphaAPIMethodsNotAllowedError) Error() string + type AsyncBindingOperationsNotAllowedError struct + func (e AsyncBindingOperationsNotAllowedError) Error() string + type AuthConfig struct + BasicAuthConfig *BasicAuthConfig + BearerConfig *BearerConfig + type BasicAuthConfig struct + Password string + Username string + type BearerConfig struct + Token string + type BindRequest struct + AcceptsIncomplete bool + AppGUID *string + BindResource *BindResource + BindingID string + Context map[string]interface{} + InstanceID string + OriginatingIdentity *OriginatingIdentity + Parameters map[string]interface{} + PlanID string + ServiceID string + type BindResource struct + AppGUID *string + Route *string + type BindResponse struct + Async bool + Credentials map[string]interface{} + OperationKey *OperationKey + RouteServiceURL *string + SyslogDrainURL *string + VolumeMounts []interface{} + type BindingLastOperationRequest struct + BindingID string + InstanceID string + OperationKey *OperationKey + OriginatingIdentity *OriginatingIdentity + PlanID *string + ServiceID *string + type CatalogResponse struct + Services []Service + type Client interface + Bind func(r *BindRequest, ctx context.Context) (*BindResponse, error) + DeprovisionInstance func(r *DeprovisionRequest, ctx context.Context) (*DeprovisionResponse, error) + GetBinding func(r *GetBindingRequest, ctx context.Context) (*GetBindingResponse, error) + GetCatalog func(ctx context.Context) (*CatalogResponse, error) + PollBindingLastOperation func(r *BindingLastOperationRequest, ctx context.Context) (*LastOperationResponse, error) + PollLastOperation func(r *LastOperationRequest, ctx context.Context) (*LastOperationResponse, error) + ProvisionInstance func(r *ProvisionRequest, ctx context.Context) (*ProvisionResponse, error) + Unbind func(r *UnbindRequest, ctx context.Context) (*UnbindResponse, error) + UpdateInstance func(r *UpdateInstanceRequest, ctx context.Context) (*UpdateInstanceResponse, error) + func NewClient(config *ClientConfiguration) (Client, error) + type ClientConfiguration struct + APIVersion APIVersion + AuthConfig *AuthConfig + CAData []byte + EnableAlphaFeatures bool + Insecure bool + Name string + TLSConfig *tls.Config + TimeoutSeconds int + URL string + Verbose bool + func DefaultClientConfiguration() *ClientConfiguration + type ComponentStatus struct + ComponentId string + ComponentName string + ErrorCode string + IsDeprovisioned bool + type CreateFunc func(*ClientConfiguration) (Client, error) + type DashboardClient struct + ID string + RedirectURI string + Secret string + type DeprovisionRequest struct + AcceptsIncomplete bool + InstanceID string + OriginatingIdentity *OriginatingIdentity + PlanID string + ServiceID string + type DeprovisionResponse struct + Async bool + ComponentStatus []ComponentStatus + OperationKey *OperationKey + type ExtensionAPI struct + AdheresTo string + Credentials map[string]interface{} + DiscoveryURL string + ServerURL string + type GetBindingNotAllowedError struct + func (e GetBindingNotAllowedError) Error() string + type GetBindingRequest struct + BindingID string + InstanceID string + type GetBindingResponse struct + Credentials map[string]interface{} + Parameters map[string]interface{} + RouteServiceURL *string + SyslogDrainURL *string + VolumeMounts []interface{} + type HTTPStatusCodeError struct + Description *string + ErrorMessage *string + ResponseError error + StatusCode int + func IsHTTPError(err error) (*HTTPStatusCodeError, bool) + func (e HTTPStatusCodeError) Error() string + type InputParametersSchema struct + Parameters interface{} + type LastOperationRequest struct + InstanceID string + OperationKey *OperationKey + OriginatingIdentity *OriginatingIdentity + PlanID *string + ServiceID *string + type LastOperationResponse struct + Description *string + State LastOperationState + type LastOperationState string + const StateFailed + const StateInProgress + const StateSucceeded + type OperationKey string + type OriginatingIdentity struct + Platform string + Value string + type Plan struct + Bindable *bool + Description string + Free *bool + ID string + Metadata map[string]interface{} + Name string + Schemas *Schemas + type PreviousValues struct + OrgID string + PlanID string + ServiceID string + SpaceID string + type ProvisionRequest struct + AcceptsIncomplete bool + Context map[string]interface{} + InstanceID string + OrganizationGUID string + OriginatingIdentity *OriginatingIdentity + Parameters map[string]interface{} + PlanID string + ServiceID string + SpaceGUID string + type ProvisionResponse struct + Async bool + DashboardURL *string + ExtensionAPIs []ExtensionAPI + OperationKey *OperationKey + type RequestResponseSchema struct + Response interface{} + type Schemas struct + ServiceBinding *ServiceBindingSchema + ServiceInstance *ServiceInstanceSchema + type Service struct + Bindable bool + BindingsRetrievable bool + DashboardClient *DashboardClient + Description string + ID string + Metadata map[string]interface{} + Name string + PlanUpdatable *bool + Plans []Plan + Requires []string + Tags []string + type ServiceBindingSchema struct + Create *RequestResponseSchema + type ServiceInstanceSchema struct + Create *InputParametersSchema + Update *InputParametersSchema + type UnbindRequest struct + AcceptsIncomplete bool + BindingID string + InstanceID string + OriginatingIdentity *OriginatingIdentity + PlanID string + ServiceID string + type UnbindResponse struct + Async bool + OperationKey *OperationKey + type UpdateInstanceRequest struct + AcceptsIncomplete bool + Context map[string]interface{} + InstanceID string + OriginatingIdentity *OriginatingIdentity + Parameters map[string]interface{} + PlanID *string + PreviousValues *PreviousValues + ServiceID string + type UpdateInstanceResponse struct + Async bool + DashboardURL *string + OperationKey *OperationKey