httpclient

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*client.Client
}

func New

func New(url string, opts ...client.ClientOpt) (*Client, error)

New creates a new HTTP client for the PostgreSQL management API.

func (*Client) CreateDatabase

func (c *Client) CreateDatabase(ctx context.Context, database schema.DatabaseMeta) (*schema.Database, error)

func (*Client) CreateExtension

func (c *Client) CreateExtension(ctx context.Context, meta schema.ExtensionMeta, cascade bool) (*schema.Extension, error)

func (*Client) CreateReplicationSlot

func (c *Client) CreateReplicationSlot(ctx context.Context, meta schema.ReplicationSlotMeta) (*schema.ReplicationSlot, error)

func (*Client) CreateRole

func (c *Client) CreateRole(ctx context.Context, meta schema.RoleMeta) (*schema.Role, error)

func (*Client) CreateSchema

func (c *Client) CreateSchema(ctx context.Context, database string, meta schema.SchemaMeta) (*schema.Schema, error)

func (*Client) CreateTablespace

func (c *Client) CreateTablespace(ctx context.Context, tablespace schema.TablespaceMeta, location string) (*schema.Tablespace, error)

func (*Client) DeleteConnection

func (c *Client) DeleteConnection(ctx context.Context, pid uint64) error

func (*Client) DeleteDatabase

func (c *Client) DeleteDatabase(ctx context.Context, name string, force bool) error

func (*Client) DeleteReplicationSlot

func (c *Client) DeleteReplicationSlot(ctx context.Context, name string) error

func (*Client) DeleteRole

func (c *Client) DeleteRole(ctx context.Context, name string) (*schema.Role, error)

func (*Client) DeleteSchema

func (c *Client) DeleteSchema(ctx context.Context, database, namespace string, force bool) (*schema.Schema, error)

func (*Client) DeleteTablespace

func (c *Client) DeleteTablespace(ctx context.Context, name string) error

func (*Client) GetConnection

func (c *Client) GetConnection(ctx context.Context, pid uint64) (*schema.Connection, error)

func (*Client) GetDatabase

func (c *Client) GetDatabase(ctx context.Context, name string) (*schema.Database, error)

func (*Client) GetExtension

func (c *Client) GetExtension(ctx context.Context, name string) (*schema.Extension, error)

func (*Client) GetObject

func (c *Client) GetObject(ctx context.Context, database, namespace, name string) (*schema.Object, error)

func (*Client) GetReplicationSlot

func (c *Client) GetReplicationSlot(ctx context.Context, name string) (*schema.ReplicationSlot, error)

func (*Client) GetRole

func (c *Client) GetRole(ctx context.Context, name string) (*schema.Role, error)

func (*Client) GetSchema

func (c *Client) GetSchema(ctx context.Context, database, namespace string) (*schema.Schema, error)

func (*Client) GetSetting

func (c *Client) GetSetting(ctx context.Context, name string) (*schema.Setting, error)

func (*Client) GetTablespace

func (c *Client) GetTablespace(ctx context.Context, name string) (*schema.Tablespace, error)

func (*Client) ListConnections

func (c *Client) ListConnections(ctx context.Context, req schema.ConnectionListRequest) (*schema.ConnectionList, error)

func (*Client) ListDatabases

func (c *Client) ListDatabases(ctx context.Context, req schema.DatabaseListRequest) (*schema.DatabaseList, error)

func (*Client) ListExtensions

func (c *Client) ListExtensions(ctx context.Context, req schema.ExtensionListRequest) (*schema.ExtensionList, error)

func (*Client) ListObjects

func (c *Client) ListObjects(ctx context.Context, req schema.ObjectListRequest) (*schema.ObjectList, error)

func (*Client) ListReplicationSlots

func (*Client) ListRoles

func (c *Client) ListRoles(ctx context.Context, req schema.RoleListRequest) (*schema.RoleList, error)

func (*Client) ListSchemas

func (c *Client) ListSchemas(ctx context.Context, req schema.SchemaListRequest) (*schema.SchemaList, error)

func (*Client) ListSettingCategories

func (c *Client) ListSettingCategories(ctx context.Context, req schema.SettingCategoryListRequest) (*schema.SettingCategoryList, error)

func (*Client) ListSettings

func (c *Client) ListSettings(ctx context.Context, req schema.SettingListRequest) (*schema.SettingList, error)

func (*Client) ListStatements

func (c *Client) ListStatements(ctx context.Context, req schema.StatementListRequest) (*schema.StatementList, error)

func (*Client) ListTablespaces

func (c *Client) ListTablespaces(ctx context.Context, req schema.TablespaceListRequest) (*schema.TablespaceList, error)

func (*Client) Ping

func (c *Client) Ping(ctx context.Context) error

func (*Client) ResetStatementStats

func (c *Client) ResetStatementStats(ctx context.Context) error

func (*Client) UpdateDatabase

func (c *Client) UpdateDatabase(ctx context.Context, name string, meta schema.DatabaseMeta) (*schema.Database, error)

func (*Client) UpdateRole

func (c *Client) UpdateRole(ctx context.Context, name string, meta schema.RoleMeta) (*schema.Role, error)

func (*Client) UpdateSchema

func (c *Client) UpdateSchema(ctx context.Context, database, namespace string, meta schema.SchemaMeta) (*schema.Schema, error)

func (*Client) UpdateSetting

func (c *Client) UpdateSetting(ctx context.Context, name string, meta schema.SettingMeta) (*schema.Setting, error)

func (*Client) UpdateTablespace

func (c *Client) UpdateTablespace(ctx context.Context, name string, meta schema.TablespaceMeta) (*schema.Tablespace, error)

Jump to

Keyboard shortcuts

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