mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-07-15 11:57:59 +00:00
initial commit for JFrog support
This commit is contained in:
committed by
André Roth
parent
8ebe80f066
commit
4b8f0c42ac
@@ -61,6 +61,7 @@ type ConfigStructure struct { // nolint: maligned
|
||||
|
||||
// Storage
|
||||
FileSystemPublishRoots map[string]FileSystemPublishRoot `json:"FileSystemPublishEndpoints" yaml:"filesystem_publish_endpoints"`
|
||||
JFrogPublishRoots map[string]JFrogPublishRoot `json:"JFrogPublishEndpoints" yaml:"jfrog_publish_endpoints"`
|
||||
S3PublishRoots map[string]S3PublishRoot `json:"S3PublishEndpoints" yaml:"s3_publish_endpoints"`
|
||||
GCSPublishRoots map[string]GCSPublishRoot `json:"GcsPublishEndpoints" yaml:"gcs_publish_endpoints"`
|
||||
SwiftPublishRoots map[string]SwiftPublishRoot `json:"SwiftPublishEndpoints" yaml:"swift_publish_endpoints"`
|
||||
@@ -172,6 +173,19 @@ type FileSystemPublishRoot struct {
|
||||
}
|
||||
|
||||
// S3PublishRoot describes single S3 publishing entry point
|
||||
|
||||
type JFrogPublishRoot struct {
|
||||
Repository string `json:"repository" yaml:"repository"`
|
||||
Url string `json:"url" yaml:"url"`
|
||||
User string `json:"user" yaml:"user"`
|
||||
Password string `json:"password" yaml:"password"`
|
||||
ApiKey string `json:"apiKey" yaml:"api_key"`
|
||||
AccessToken string `json:"accessToken" yaml:"access_token"`
|
||||
Prefix string `json:"prefix" yaml:"prefix"`
|
||||
PlusWorkaround bool `json:"plusWorkaround" yaml:"plus_workaround"`
|
||||
Debug bool `json:"debug" yaml:"debug"`
|
||||
}
|
||||
|
||||
type S3PublishRoot struct {
|
||||
Region string `json:"region" yaml:"region"`
|
||||
Bucket string `json:"bucket" yaml:"bucket"`
|
||||
|
||||
Reference in New Issue
Block a user