Add API, CLI and web UI integration for objects
This change adds the API endpoints, the CLI commands and the web UI elements needed to manage objects in GARMs internal storage. This storage system is meant to be used to distribute the garm-agent and as a single source of truth for provider binaries, when we will add the ability for GARM to scale out. Potentially, we can also use this in air gapped systems to distribute the runner binaries for forges that don't have their own internal storage system (like GHES). Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
parent
f66f95baff
commit
6c46cf9be1
138 changed files with 7911 additions and 267 deletions
|
|
@ -462,7 +462,9 @@ type GiteaCredentials struct {
|
|||
type FileObject struct {
|
||||
gorm.Model
|
||||
// Name is the name of the file
|
||||
Name string `gotm:"type:text,index:idx_fo_name"`
|
||||
Name string `gorm:"type:text;index:idx_fo_name"`
|
||||
// Description is a description for the file
|
||||
Description string `gorm:"type:text"`
|
||||
// FileType holds the MIME type or file type description
|
||||
FileType string `gorm:"type:text"`
|
||||
// Size is the file size in bytes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue