Documentation
¶
Index ¶
- func CreateCmd(ch *cmdutil.Helper) *cobra.Command
- func DatabaseCmd(ch *cmdutil.Helper) *cobra.Command
- func DeleteCmd(ch *cmdutil.Helper) *cobra.Command
- func DumpCmd(ch *cmdutil.Helper) *cobra.Command
- func IPRestrictionCmd(ch *cmdutil.Helper) *cobra.Command
- func IPRestrictionCreateCmd(ch *cmdutil.Helper) *cobra.Command
- func IPRestrictionDeleteCmd(ch *cmdutil.Helper) *cobra.Command
- func IPRestrictionListCmd(ch *cmdutil.Helper) *cobra.Command
- func IPRestrictionShowCmd(ch *cmdutil.Helper) *cobra.Command
- func IPRestrictionUpdateCmd(ch *cmdutil.Helper) *cobra.Command
- func ListCmd(ch *cmdutil.Helper) *cobra.Command
- func RestoreCmd(ch *cmdutil.Helper) *cobra.Command
- func ShowCmd(ch *cmdutil.Helper) *cobra.Command
- func UpdateCmd(ch *cmdutil.Helper) *cobra.Command
- type Database
- type Databases
- type IPRestrictionEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DatabaseCmd ¶
DatabaseCmd encapsulates the commands for creating a database
func IPRestrictionCmd ¶ added in v0.313.0
IPRestrictionCmd manages Postgres IP restrictions for a database.
func IPRestrictionCreateCmd ¶ added in v0.313.0
IPRestrictionCreateCmd creates an IP restriction entry.
func IPRestrictionDeleteCmd ¶ added in v0.313.0
IPRestrictionDeleteCmd deletes an IP restriction entry.
func IPRestrictionListCmd ¶ added in v0.313.0
IPRestrictionListCmd lists IP restriction entries for a Postgres database.
func IPRestrictionShowCmd ¶ added in v0.313.0
IPRestrictionShowCmd shows a single IP restriction entry.
func IPRestrictionUpdateCmd ¶ added in v0.313.0
IPRestrictionUpdateCmd updates an IP restriction entry.
func RestoreCmd ¶ added in v0.27.0
RestoreCmd encapsulates the commands for restore a database
Types ¶
type Database ¶ added in v0.14.0
type Database struct {
Name string `header:"name" json:"name"`
Kind string `header:"kind" json:"kind"`
DefaultBranch string `header:"default_branch" json:"default_branch"`
RequireApprovalForDeploy bool `header:"require_approval_for_deploy" json:"require_approval_for_deploy"`
RestrictBranchRegion bool `header:"restrict_branch_region" json:"restrict_branch_region"`
AllowDataBranching bool `header:"allow_data_branching" json:"allow_data_branching"`
ForeignKeysEnabled bool `header:"foreign_keys_enabled" json:"foreign_keys_enabled"`
AutomaticMigrations string `header:"automatic_migrations" json:"automatic_migrations"`
MigrationFramework string `header:"migration_framework" json:"migration_framework"`
MigrationTableName string `header:"migration_table_name" json:"migration_table_name"`
InsightsRawQueries bool `header:"insights_raw_queries" json:"insights_raw_queries"`
InsightsEnabled bool `header:"insights_enabled" json:"insights_enabled"`
ProductionBranchWebConsole bool `header:"production_branch_web_console" json:"production_branch_web_console"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
// contains filtered or unexported fields
}
Database is the human table for show/create/update, including settings.
func (*Database) MarshalCSVValue ¶ added in v0.17.0
func (d *Database) MarshalCSVValue() interface{}
func (*Database) MarshalJSON ¶ added in v0.14.0
type Databases ¶ added in v0.14.0
type Databases []*databaseListItem
Databases represents a slice of database list rows.
type IPRestrictionEntry ¶ added in v0.313.0
type IPRestrictionEntry struct {
ID string `header:"id" json:"id"`
Schema string `header:"schema" json:"schema"`
Role string `header:"role" json:"role"`
CIDRs string `header:"cidrs" json:"cidrs"`
Description string `header:"description" json:"description"`
Actor string `header:"actor" json:"actor"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
// contains filtered or unexported fields
}
IPRestrictionEntry is the human/JSON/CSV view of a Postgres IP restriction entry.
func (*IPRestrictionEntry) MarshalCSVValue ¶ added in v0.313.0
func (e *IPRestrictionEntry) MarshalCSVValue() interface{}
func (*IPRestrictionEntry) MarshalJSON ¶ added in v0.313.0
func (e *IPRestrictionEntry) MarshalJSON() ([]byte, error)