Documentation
¶
Index ¶
- type Branch
- type Client
- func (c *Client) ConnectionURI(ctx context.Context, projectID, branchID, databaseName, roleName string, ...) (string, error)
- func (c *Client) CreateBranch(ctx context.Context, projectID, name, parentBranchID string) (Branch, error)
- func (c *Client) DeleteBranch(ctx context.Context, projectID, branchID string) error
- func (c *Client) ListBranches(ctx context.Context, projectID string) ([]Branch, error)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a small Neon API client used by the vango CLI.
All methods treat connection URIs as secret material. Callers must never print returned DSNs to stdout/stderr.
func (*Client) ConnectionURI ¶
func (c *Client) ConnectionURI(ctx context.Context, projectID, branchID, databaseName, roleName string, pooled bool) (string, error)
ConnectionURI retrieves a credential-bearing Postgres connection URI.
The returned string must be treated as secret material.
func (*Client) CreateBranch ¶
func (*Client) DeleteBranch ¶
Click to show internal directories.
Click to hide internal directories.