Paperclip/pkg/internal/models/destination.go

32 lines
699 B
Go
Raw Normal View History

2024-05-17 15:59:51 +08:00
package models
const (
DestinationTypeLocal = "local"
DestinationTypeS3 = "s3"
)
type BaseDestination struct {
2024-12-28 22:27:39 +08:00
Type string `json:"type"`
Label string `json:"label"`
LabelRegion string `json:"label_region"`
2024-05-17 15:59:51 +08:00
}
type LocalDestination struct {
BaseDestination
Path string `json:"path"`
AccessBaseURL string `json:"access_baseurl"`
2024-05-17 15:59:51 +08:00
}
type S3Destination struct {
BaseDestination
2024-07-29 13:22:57 +08: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-05-17 15:59:51 +08:00
}