Documentation
¶
Overview ¶
Package regions contains the API calls for the Active-Active Subscription regions service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func NewAPI ¶
func NewAPI(client HttpClient, taskWaiter TaskWaiter, logger Log) *API
func (*API) DeleteWithQuery ¶ added in v0.1.11
type CreateDatabase ¶ added in v0.1.11
type CreateDatabase struct {
Name *string `json:"name,omitempty"`
LocalThroughputMeasurement *CreateLocalThroughput `json:"localThroughputMeasurement,omitempty"`
}
type CreateLocalThroughput ¶ added in v0.1.11
type CreateRegion ¶ added in v0.1.11
type CreateRegion struct {
Region *string `json:"region,omitempty"`
DeploymentCIDR *string `json:"deploymentCIDR,omitempty"`
DryRun *bool `json:"dryRun,omitempty"`
RespVersion *string `json:"respVersion,omitempty"`
Databases []*CreateDatabase `json:"databases,omitempty"`
}
type DeleteRegion ¶ added in v0.1.11
type DeleteRegion struct {
Region *string `json:"region,omitempty"`
}
type DeleteRegions ¶ added in v0.1.11
type DeleteRegions struct {
Regions []*DeleteRegion `json:"regions,omitempty"`
}
type HttpClient ¶
type HttpClient interface {
Get(ctx context.Context, name, path string, responseBody interface{}) error
Post(ctx context.Context, name, path string, requestBody interface{}, responseBody interface{}) error
DeleteWithQuery(ctx context.Context, name, path string, requestBody interface{}, responseBody interface{}) error
}
type Region ¶
Click to show internal directories.
Click to hide internal directories.