Paperclip/pkg/internal/models/destination.go

35 lines
839 B
Go
Raw Normal View History

2024-05-17 07:59:51 +00:00
package models
const (
DestinationTypeLocal = "local"
DestinationTypeS3 = "s3"
)
type BaseDestination struct {
ID int `json:"id,omitempty"` // Auto filled with index, only for user
Type string `json:"type"`
Label string `json:"label"`
Region string `json:"region"`
IsBoost bool `json:"is_boost"`
2024-05-17 07:59:51 +00:00
}
type LocalDestination struct {
BaseDestination
Path string `json:"path"`
AccessBaseURL string `json:"access_baseurl"`
2024-05-17 07:59:51 +00:00
}
type S3Destination struct {
BaseDestination
2024-07-29 05:22:57 +00:00
Path string `json:"path"`
Bucket string `json:"bucket"`
Endpoint string `json:"endpoint"`
SecretID string `json:"secret_id"`
SecretKey string `json:"secret_key"`
AccessBaseURL string `json:"access_baseurl"`
EnableSSL bool `json:"enable_ssl"`
2024-12-28 18:13:17 +00:00
EnableSigned bool `json:"enable_signed"`
2024-05-17 07:59:51 +00:00
}