package
Version:
v0.1.10
Opens a new window with list of versions in this module.
Published: Dec 5, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
Package regions contains the API calls for the Active-Active Subscription regions service.
List will list all of a given subscription's active-active regions.
type Database struct {
DatabaseId *int `json:"databaseId,omitempty"`
DatabaseName *string `json:"DatabaseName,omitempty"`
ReadOperationsPerSecond *int `json:"readOperationsPerSecond,omitempty"`
WriteOperationsPerSecond *int `json:"writeOperationsPerSecond,omitempty"`
}
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
Put(ctx context.Context, name, path string, requestBody interface{}, responseBody interface{}) error
Delete(ctx context.Context, name, path string, responseBody interface{}) error
}
type Log interface {
Printf(format string, args ...interface{})
}
type Region struct {
RegionId *int `json:"regionId,omitempty"`
Region *string `json:"region,omitempty"`
DeploymentCIDR *string `json:"deploymentCIDR,omitempty"`
VpcId *string `json:"vpcId,omitempty"`
Databases []*Database `json:"databases,omitempty"`
}
type Regions struct {
SubscriptionId *int `json:"subscriptionId,omitempty"`
Regions []*Region `json:"regions,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.