Documentation
¶
Index ¶
- func Create(client *golangsdk.ServiceClient, instanceId string, opts PostgresExtensionOpts) error
- func Delete(client *golangsdk.ServiceClient, instanceId string, opts PostgresExtensionOpts) error
- func Update(client *golangsdk.ServiceClient, instanceId string, opts PostgresExtensionOpts) error
- type Extension
- type ListOpts
- type ListResponse
- type PostgresExtensionOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(client *golangsdk.ServiceClient, instanceId string, opts PostgresExtensionOpts) error
This function is used to create an extension for a specified database.
func Delete ¶
func Delete(client *golangsdk.ServiceClient, instanceId string, opts PostgresExtensionOpts) error
This function is used to delete an extension for a specified database.
func Update ¶
func Update(client *golangsdk.ServiceClient, instanceId string, opts PostgresExtensionOpts) error
This function is used to update an extension for a specified database.
Types ¶
type Extension ¶
type Extension struct {
// Extension name.
Name string `json:"name"`
// The name of the specific database created inside the RDS instance.
// This is the logical database name, not the RDS instance identifier.
DatabaseName string `json:"database_name"`
// Extension version.
Version string `json:"version"`
// New version that the extension can be upgraded to.
// If the value of this parameter is different from that of Version,
// the extension can be upgraded.
VersionUpdate string `json:"version_update"`
SharedPreloadLibraries string `json:"shared_preload_libraries"`
// Whether the extension has been created.
Created bool `json:"created"`
// Extension description.
Description string `json:"description"`
// Whether the extension can be installed.
EnableInstall bool `json:"enable_install"`
}
type ListOpts ¶
type ListOpts struct {
// Specifies the name of the specific database created inside the RDS instance.
// This is the logical database name, not the RDS instance identifier.
DatabaseName string `q:"database_name" required:"true"`
// Specifies the index position. If offset is set to N, the resource query starts from the N+1 piece of data.
// The value is 0 by default, indicating that the query starts from the first piece of data. The value must be a positive number.
Offset int `q:"offset"`
// Specifies the number of records to be queried. The default value is 100.
// The value cannot be a negative number. The minimum value is 1 and the maximum value is 100.
Limit int `q:"limit"`
}
type ListResponse ¶
type ListResponse struct {
Extensions []Extension `json:"extensions"`
TotalCount int `json:"total_count"`
}
func List ¶
func List(client *golangsdk.ServiceClient, instanceId string, opts ListOpts) (*ListResponse, error)
This function is used to list extensions for a specified database.
type PostgresExtensionOpts ¶
type PostgresExtensionOpts struct {
// Specifies the name of the specific database created inside the RDS instance.
// This is the logical database name, not the RDS instance identifier.
DatabaseName string `json:"database_name" required:"true"`
// Specifies the extension name
ExtensionName string `json:"extension_name" required:"true"`
}
Click to show internal directories.
Click to hide internal directories.