Documentation
¶
Index ¶
- Constants
- func ParseIPWhitelist(ips string) ([]string, error)
- type AivenProvider
- func (ap *AivenProvider) Bind(ctx context.Context, bindData BindData) (binding brokerapi.Binding, err error)
- func (ap *AivenProvider) Deprovision(ctx context.Context, deprovisionData DeprovisionData) (operationData string, err error)
- func (ap *AivenProvider) LastOperation(ctx context.Context, lastOperationData LastOperationData) (state brokerapi.LastOperationState, description string, err error)
- func (ap *AivenProvider) Provision(ctx context.Context, provisionData ProvisionData) (dashboardURL, operationData string, err error)
- func (ap *AivenProvider) Unbind(ctx context.Context, unbindData UnbindData) (err error)
- func (ap *AivenProvider) Update(ctx context.Context, updateData UpdateData) (operationData string, err error)
- type BindData
- type Catalog
- type Config
- type Credentials
- type DeprovisionData
- type LastOperationData
- type Plan
- type PlanSpecificConfig
- type ProvisionData
- type Service
- type ServiceProvider
- type UnbindData
- type UpdateData
Constants ¶
View Source
const AIVEN_BASE_URL string = "https://api.aiven.io"
View Source
const SERVICE_TYPE string = "elasticsearch"
Variables ¶
This section is empty.
Functions ¶
func ParseIPWhitelist ¶
Types ¶
type AivenProvider ¶
func New ¶
func New(configJSON []byte) (*AivenProvider, error)
func (*AivenProvider) Deprovision ¶
func (ap *AivenProvider) Deprovision(ctx context.Context, deprovisionData DeprovisionData) (operationData string, err error)
func (*AivenProvider) LastOperation ¶
func (ap *AivenProvider) LastOperation(ctx context.Context, lastOperationData LastOperationData) (state brokerapi.LastOperationState, description string, err error)
func (*AivenProvider) Provision ¶
func (ap *AivenProvider) Provision(ctx context.Context, provisionData ProvisionData) (dashboardURL, operationData string, err error)
func (*AivenProvider) Unbind ¶
func (ap *AivenProvider) Unbind(ctx context.Context, unbindData UnbindData) (err error)
func (*AivenProvider) Update ¶
func (ap *AivenProvider) Update(ctx context.Context, updateData UpdateData) (operationData string, err error)
type BindData ¶
type BindData struct { InstanceID string BindingID string Details brokerapi.BindDetails }
type Config ¶
type Config struct { Cloud string `json:"cloud"` ServiceNamePrefix string APIToken string Project string Catalog Catalog `json:"catalog"` }
func DecodeConfig ¶
type Credentials ¶
type DeprovisionData ¶
type DeprovisionData struct { InstanceID string Details brokerapi.DeprovisionDetails Service brokerapi.Service Plan brokerapi.ServicePlan }
type LastOperationData ¶
type Plan ¶
type Plan struct { brokerapi.ServicePlan PlanSpecificConfig }
type PlanSpecificConfig ¶
type ProvisionData ¶
type ProvisionData struct { InstanceID string Details brokerapi.ProvisionDetails Service brokerapi.Service Plan brokerapi.ServicePlan }
type ServiceProvider ¶
type ServiceProvider interface { Provision(context.Context, ProvisionData) (dashboardURL, operationData string, err error) Deprovision(context.Context, DeprovisionData) (operationData string, err error) Bind(context.Context, BindData) (binding brokerapi.Binding, err error) Unbind(context.Context, UnbindData) (err error) Update(context.Context, UpdateData) (operationData string, err error) LastOperation(context.Context, LastOperationData) (state brokerapi.LastOperationState, description string, err error) }
type UnbindData ¶
type UnbindData struct { InstanceID string BindingID string Details brokerapi.UnbindDetails }
type UpdateData ¶
type UpdateData struct { InstanceID string Details brokerapi.UpdateDetails Service brokerapi.Service Plan brokerapi.ServicePlan }
Click to show internal directories.
Click to hide internal directories.