Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions api/design/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ var BackupOptions = g.Type("BackupOptions", func() {
"key": "value",
})
})
g.Attribute("extra_options", g.ArrayOf(g.String), func() {
g.Description("Extra options for the backup.")
g.Example([]string{"--option1", "--option2"})
g.Attribute("backup_options", g.MapOf(g.String, g.String), func() {
g.Description("Options for the backup.")
g.Example(map[string]string{
"archive-check": "n",
})
})

g.Required("type")
Expand Down
18 changes: 14 additions & 4 deletions api/design/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,11 +316,21 @@ var RestoreConfigSpec = g.Type("RestoreConfigSpec", func() {
g.Attribute("repository", RestoreRepositorySpec, func() {
g.Description("The repository to restore this database from.")
})
g.Attribute("restore_options", g.ArrayOf(g.String), func() {
g.Attribute("restore_options", g.MapOf(g.String, g.String), func() {
g.Description("Additional options to use when restoring this database. If omitted, the database will be restored to the latest point in the given repository.")
g.Example([]string{"--type=time", "--target=2025-01-01T01:30:00Z"})
g.Example([]string{"--type=lsn", "--target=0/30000000"})
g.Example([]string{"--set=20250505-153628F", "--type=xid", "--target=123456"})
g.Example(map[string]string{
"type": "time",
"target": "2025-01-01T01:30:00Z",
})
g.Example(map[string]string{
"type": "lsn",
"target": "0/30000000",
})
g.Example(map[string]string{
"set": "20250505-153628F",
"type": "xid",
"target": "123456",
})
})

g.Required("source_database_id", "source_node_name", "source_database_name", "repository")
Expand Down
22 changes: 13 additions & 9 deletions api/gen/control_plane/service.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/gen/control_plane/views/view.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

117 changes: 58 additions & 59 deletions api/gen/http/cli/control_plane/cli.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 10 additions & 8 deletions api/gen/http/control_plane/client/cli.go

Large diffs are not rendered by default.

Loading