Documentation
¶
Index ¶
- func NewRepository(db *gorm.DB) *repository
- func NewService(logger *slog.Logger, s3Bucket string, s3Client S3Client, ...) *service
- func Routes(router *gin.Engine, authenticator gin.HandlerFunc, handler Handler)
- type CopyDatabaseRequest
- type CreateExternalDatabaseRequest
- type Error
- type GroupsWithDatabases
- type Handler
- func (h Handler) Copy(c *gin.Context)
- func (h Handler) CreateExternalDownload(c *gin.Context)
- func (h Handler) Delete(c *gin.Context)
- func (h Handler) Download(c *gin.Context)
- func (h Handler) ExternalDownload(c *gin.Context)
- func (h Handler) FindByIdentifier(c *gin.Context)
- func (h Handler) List(c *gin.Context)
- func (h Handler) Lock(c *gin.Context)
- func (h Handler) Save(c *gin.Context)
- func (h Handler) SaveAs(c *gin.Context)
- func (h Handler) Unlock(c *gin.Context)
- func (h Handler) Update(c *gin.Context)
- func (h Handler) Upload(c *gin.Context)
- type LockDatabaseRequest
- type PodExecutor
- type ReadAtSeeker
- type S3Client
- type UpdateDatabaseRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRepository ¶
func NewService ¶
Types ¶
type CopyDatabaseRequest ¶
type CreateExternalDatabaseRequest ¶
type CreateExternalDatabaseRequest struct {
// Expiration time in seconds
Expiration uint `json:"expiration" binding:"required"`
}
type GroupsWithDatabases ¶
type GroupsWithDatabases struct {
Name string `json:"name"`
Databases []model.Database `json:"databases"`
}
swagger:model GroupsWithDatabases
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (Handler) CreateExternalDownload ¶
CreateExternalDownload database
func (Handler) ExternalDownload ¶
ExternalDownload database
func (Handler) FindByIdentifier ¶
FindByIdentifier database
type LockDatabaseRequest ¶
type LockDatabaseRequest struct {
InstanceId uint `json:"instanceId" binding:"required"`
}
type PodExecutor ¶ added in v0.64.0
type ReadAtSeeker ¶
type ReadAtSeeker interface {
io.ReaderAt
io.ReadSeeker
}
type S3Client ¶
type S3Client interface {
Copy(bucket string, source string, destination string) error
Move(bucket string, source string, destination string) error
Upload(ctx context.Context, bucket string, key string, body storage.ReadAtSeeker, size int64) error
Delete(bucket string, key string) error
Download(ctx context.Context, bucket string, key string, dst io.Writer, cb func(contentLength int64)) error
StreamUpload(ctx context.Context, bucket, key, contentType string, r io.Reader) (int64, error)
}
type UpdateDatabaseRequest ¶
Click to show internal directories.
Click to hide internal directories.