Documentation ¶
Index ¶
Constants ¶
View Source
const MinSizeInMb = 300
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BranchClose ¶
type BranchClose struct {
Name string `json:"name" validate:"required,min=1,max=100,excludesall= "`
}
type BranchInit ¶
type Config ¶
type Config struct { Name string `json:"name" validate:"required,min=1,excludesall= "` Path string `json:"path" validate:"required,min=1,excludesall= "` RepoType string `json:"repoType" validate:"oneof=block virtual,excludesall= "` SizeInMb int64 `json:"sizeInMb" validate:"required_if=RepoType virtual"` }
type InitDto ¶
type InitDto[T pg.HostImportReqDto] struct { RepoConfig Config `json:"repoConfig"` PgConfig T `json:"pgConfig"` }
func (*InitDto[T]) GetRepoType ¶
func (*InitDto[T]) GetSizeInMb ¶
type Response ¶
type Response struct { ID *int32 `json:"id"` Name string `json:"name"` PgVersion int32 `json:"pgVersion"` Status db.RepoStatus `json:"status"` Output *string `json:"output"` Pool Pool `json:"pool"` Branches []Branch `json:"branches"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }
Click to show internal directories.
Click to hide internal directories.