Documentation
¶
Index ¶
- func GetCondaPackagesFromTreeNode(a *adapter, root *types.TreeNode, registry string) ([]types.Package, error)
- func NewAdapterWithClient(config types.RegistryConfig, c Client) adp.Adapter
- func NewJfrogKeychain(username, password, hostname string) authn.Keychain
- type Client
- type JFrogPackage
- type JFrogRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAdapterWithClient ¶ added in v1.3.11
func NewAdapterWithClient(config types.RegistryConfig, c Client) adp.Adapter
NewAdapterWithClient creates an adapter with a custom Client implementation. This is used by mock_jfrog to inject a mock client while reusing all adapter logic.
func NewJfrogKeychain ¶
Types ¶
type Client ¶ added in v1.3.11
type Client interface {
GetRegistries() ([]JFrogRepository, error)
GetRegistry(registry string) (JFrogRepository, error)
GetFile(registry string, path string) (io.ReadCloser, http2.Header, error)
GetFiles(registry string) ([]types.File, error)
GetCatalog(registry string) ([]string, error)
}
Client defines the interface for interacting with a JFrog Artifactory instance. It is implemented by the real HTTP client and can be replaced with a mock for testing.
type JFrogPackage ¶
JFrogPackage represents a file entry from JFrog Artifactory
Click to show internal directories.
Click to hide internal directories.