Documentation
¶
Index ¶
- func BuildRootCmd() (*cobra.Command, error)
- func Execute(ctx context.Context) error
- type ApiKeyCreateOutput
- type ApiKeyOutput
- type DatabaseCreateOutput
- type DatabaseForkOutput
- type DatabaseListItem
- type InvoiceDetailOutput
- type InvoiceLineItemOutput
- type InvoiceOutput
- type MCPClient
- type MCPClientStatus
- type MCPClientStatusOutput
- type MCPServerConfig
- type PaymentMethodOutput
- type Share
- type VersionOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildRootCmd ¶
BuildRootCmd exposes the root command for tools like doc generators.
Types ¶
type ApiKeyCreateOutput ¶
type ApiKeyCreateOutput struct {
ApiKey string `json:"api_key"`
}
ApiKeyCreateOutput represents the output format for the api-key create command.
type ApiKeyOutput ¶
type ApiKeyOutput struct {
Prefix string `json:"prefix"`
Name string `json:"name"`
CreatedAt string `json:"created_at"`
}
ApiKeyOutput represents the output format for a single API key.
type DatabaseCreateOutput ¶
type DatabaseCreateOutput struct {
Name string `json:"name"`
ID string `json:"id"`
Size string `json:"size,omitempty"`
Connection string `json:"connection"`
Type api.DatabaseType `json:"-"`
}
DatabaseCreateOutput represents the output format for the create command
type DatabaseForkOutput ¶
type DatabaseForkOutput struct {
SourceName string `json:"source_name"`
Name string `json:"name"`
ID string `json:"id"`
Size string `json:"size,omitempty"`
Connection string `json:"connection"`
Type api.DatabaseType `json:"-"`
}
DatabaseForkOutput represents the output format for the fork command
type DatabaseListItem ¶
type DatabaseListItem struct {
ID string `json:"id"`
Name string `json:"name"`
Type api.DatabaseType `json:"type"`
Size *api.DatabaseSize `json:"size,omitempty"`
Status api.DatabaseStatus `json:"status"`
StorageMib *int `json:"storage_mib"`
ComputeMinutes *int64 `json:"compute_minutes,omitempty"`
}
DatabaseListItem represents a database in the list command output
type InvoiceDetailOutput ¶ added in v0.10.0
type InvoiceDetailOutput struct {
LineItems []InvoiceLineItemOutput `json:"line_items"`
}
InvoiceDetailOutput represents the output format for an invoice detail.
type InvoiceLineItemOutput ¶ added in v0.10.0
type InvoiceLineItemOutput struct {
ProductType string `json:"product_type"`
DatabaseID string `json:"database_id,omitempty"`
DetailedSpec string `json:"detailed_spec,omitempty"`
Quantity float64 `json:"quantity"`
UnitPrice float64 `json:"unit_price"`
LineTotal float64 `json:"line_total"`
}
InvoiceLineItemOutput represents the output format for a single invoice line item.
type InvoiceOutput ¶ added in v0.10.0
type InvoiceOutput struct {
ID string `json:"id"`
InvoiceNumber string `json:"invoice_number"`
InvoiceDate string `json:"invoice_date"`
Total float64 `json:"total"`
Status string `json:"status"`
}
InvoiceOutput represents the output format for a single invoice.
type MCPClientStatus ¶ added in v0.13.0
type MCPClientStatus string
type MCPClientStatusOutput ¶ added in v0.13.0
type MCPClientStatusOutput struct {
Client MCPClient `json:"client"`
Status MCPClientStatus `json:"status"`
Detail string `json:"detail,omitempty"`
}
type MCPServerConfig ¶
MCPServerConfig represents the MCP server configuration
type PaymentMethodOutput ¶
type PaymentMethodOutput struct {
ID string `json:"id"`
Brand string `json:"brand"`
Last4 string `json:"last4"`
ExpMonth int `json:"exp_month"`
ExpYear int `json:"exp_year"`
Primary bool `json:"is_primary"`
PendingDeletion bool `json:"pending_deletion"`
}
PaymentMethodOutput represents the output format for a payment method
type Share ¶ added in v0.12.0
type Share struct {
}
Share represents a database share in CLI output. The share_token (also embedded in the URL) is the only identifier exposed — it's what a recipient passes to 'ghost create', and it's also what you pass back to 'ghost share revoke' to revoke the share.
Source Files
¶
- api_key.go
- api_key_create.go
- api_key_delete.go
- api_key_list.go
- completion.go
- config.go
- config_reset.go
- config_set.go
- config_unset.go
- connect.go
- create.go
- create_dedicated.go
- delete.go
- errors.go
- feedback.go
- fork.go
- fork_dedicated.go
- init.go
- invoice.go
- invoice_list.go
- invoice_view.go
- list.go
- logger.go
- login.go
- logout.go
- logs.go
- mcp.go
- mcp_get.go
- mcp_install.go
- mcp_list.go
- mcp_start.go
- mcp_status.go
- mcp_uninstall.go
- overages.go
- overages_disable.go
- overages_enable.go
- password.go
- pause.go
- payment.go
- payment_add.go
- payment_delete.go
- payment_list.go
- payment_primary.go
- payment_undelete.go
- pricing.go
- psql.go
- rename.go
- resume.go
- root.go
- schema.go
- share.go
- share_list.go
- share_revoke.go
- sql.go
- tutorial.go
- upgrade.go
- usage.go
- version.go