Documentation ¶
Index ¶
- func AuthenticateUser(authorizationEndpoint string, username string, password string) (cookie string)
- func AuthorizeScopes(cookie string, config OAuthConfig) (authCode string)
- func GetAccessToken(authCode string, config OAuthConfig) (accessToken string)
- func ParseJsonResponse(response []byte) (resultMap map[string]interface{})
- func QueryServiceInstancePermissionEndpoint(apiEndpoint string, accessToken string, serviceInstanceGuid string) (canManage string, httpCode string)
- func RequestScopes(cookie string, config OAuthConfig) (authCode string, httpCode string)
- func SetOauthEndpoints(apiEndpoint string, oAuthConfig *OAuthConfig, config bara_config.BaraConfig)
- type OAuthConfig
- type Plan
- type PlanSchemas
- type ServiceBroker
- func (b ServiceBroker) Configure()
- func (b ServiceBroker) Create()
- func (b ServiceBroker) CreateServiceInstance(instanceName string) string
- func (b ServiceBroker) CreateSpaceScoped()
- func (b ServiceBroker) Delete()
- func (b ServiceBroker) Destroy()
- func (b ServiceBroker) HasPlan(planName string) bool
- func (b ServiceBroker) Plans() []Plan
- func (b ServiceBroker) PublicizePlan(guid string)
- func (b ServiceBroker) PublicizePlans()
- func (b ServiceBroker) Push(config bara_config.BaraConfig)
- func (b ServiceBroker) Restart()
- func (b ServiceBroker) ToJSON() string
- func (b ServiceBroker) Update()
- type ServiceInstancesResource
- type ServiceInstancesResponse
- type ServiceOfferingsResource
- type ServiceOfferingsResponse
- type ServicePlansResource
- type ServicePlansResponse
- type SpaceJson
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthenticateUser ¶
func AuthorizeScopes ¶
func AuthorizeScopes(cookie string, config OAuthConfig) (authCode string)
func GetAccessToken ¶
func GetAccessToken(authCode string, config OAuthConfig) (accessToken string)
func ParseJsonResponse ¶
func RequestScopes ¶
func RequestScopes(cookie string, config OAuthConfig) (authCode string, httpCode string)
func SetOauthEndpoints ¶
func SetOauthEndpoints(apiEndpoint string, oAuthConfig *OAuthConfig, config bara_config.BaraConfig)
Types ¶
type OAuthConfig ¶
type Plan ¶
type Plan struct { Name string `json:"name"` ID string `json:"id"` Schemas PlanSchemas `json:"schemas"` }
type PlanSchemas ¶
type PlanSchemas struct { ServiceInstance struct { Create struct { Parameters map[string]interface{} `json:"parameters"` } `json:"create"` Update struct { Parameters map[string]interface{} `json:"parameters"` } `json:"update"` } `json:"service_instance"` ServiceBinding struct { Create struct { Parameters map[string]interface{} `json:"parameters"` } `json:"create"` } `json:"service_binding"` }
type ServiceBroker ¶
type ServiceBroker struct { Name string SpaceGUID string DomainGUID string Path string TestSetup *workflowhelpers.ReproducibleTestSuiteSetup Service struct { Name string `json:"name"` ID string `json:"id"` DashboardClient struct { ID string `json:"id"` Secret string `json:"secret"` RedirectUri string `json:"redirect_uri"` } } SyncPlans []Plan AsyncPlans []Plan }
func NewServiceBroker ¶
func NewServiceBroker(name, spaceGUID, domainGUID, path string, TestSetup *workflowhelpers.ReproducibleTestSuiteSetup) ServiceBroker
func (ServiceBroker) Configure ¶
func (b ServiceBroker) Configure()
func (ServiceBroker) Create ¶
func (b ServiceBroker) Create()
func (ServiceBroker) CreateServiceInstance ¶
func (b ServiceBroker) CreateServiceInstance(instanceName string) string
func (ServiceBroker) CreateSpaceScoped ¶
func (b ServiceBroker) CreateSpaceScoped()
func (ServiceBroker) Delete ¶
func (b ServiceBroker) Delete()
func (ServiceBroker) Destroy ¶
func (b ServiceBroker) Destroy()
func (ServiceBroker) HasPlan ¶
func (b ServiceBroker) HasPlan(planName string) bool
func (ServiceBroker) Plans ¶
func (b ServiceBroker) Plans() []Plan
func (ServiceBroker) PublicizePlan ¶
func (b ServiceBroker) PublicizePlan(guid string)
func (ServiceBroker) PublicizePlans ¶
func (b ServiceBroker) PublicizePlans()
func (ServiceBroker) Push ¶
func (b ServiceBroker) Push(config bara_config.BaraConfig)
func (ServiceBroker) Restart ¶
func (b ServiceBroker) Restart()
func (ServiceBroker) ToJSON ¶
func (b ServiceBroker) ToJSON() string
func (ServiceBroker) Update ¶
func (b ServiceBroker) Update()
type ServiceInstancesResource ¶
type ServiceInstancesResource struct {
Guid string `json:"guid"`
}
type ServiceInstancesResponse ¶
type ServiceInstancesResponse struct {
Resources []ServiceInstancesResource `json:"resources"`
}
type ServiceOfferingsResponse ¶
type ServiceOfferingsResponse struct {
Resources []ServiceOfferingsResource `json:"resources"`
}
type ServicePlansResource ¶
type ServicePlansResponse ¶
type ServicePlansResponse struct {
Resources []ServicePlansResource `json:"resources"`
}
Click to show internal directories.
Click to hide internal directories.