MCPcopy Create free account
hub / github.com/aptly-dev/aptly / NewPublishedStorage

Function NewPublishedStorage

jfrog/public.go:90–96  ·  view source on GitHub ↗

NewPublishedStorage creates published storage from aptly configuration struct

(
	account string, root aptly_utils.JFrogPublishRoot,
)

Source from the content-addressed store, hash-verified

88
89// NewPublishedStorage creates published storage from aptly configuration struct
90func 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
98func (storage *PublishedStorage) String() string {
99 return fmt.Sprintf("jfrog:%s:%s", storage.repository, storage.prefix)

Callers 2

GetPublishedStorageMethod · 0.92

Calls 1

NewPublishedStorageRawFunction · 0.70

Tested by 1