NewPublishedStorage creates published storage from aptly configuration struct
( account string, root aptly_utils.JFrogPublishRoot, )
| 88 | |
| 89 | // NewPublishedStorage creates published storage from aptly configuration struct |
| 90 | func NewPublishedStorage( |
| 91 | account string, root aptly_utils.JFrogPublishRoot, |
| 92 | ) (*PublishedStorage, error) { |
| 93 | return NewPublishedStorageRaw( |
| 94 | root.Repository, root.URL, root.User, root.Password, root.APIKey, root.AccessToken, |
| 95 | root.Prefix, root.PlusWorkaround, root.Debug) |
| 96 | } |
| 97 | |
| 98 | func (storage *PublishedStorage) String() string { |
| 99 | return fmt.Sprintf("jfrog:%s:%s", storage.repository, storage.prefix) |