postgres_extensions

package
v0.9.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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"`
	// Dependent preloaded library.
	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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL