jfrog

package
v1.3.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCondaPackagesFromTreeNode

func GetCondaPackagesFromTreeNode(
	a *adapter,
	root *types.TreeNode,
	registry string,
) ([]types.Package, error)

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

func NewJfrogKeychain(username, password, hostname string) authn.Keychain

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

type JFrogPackage struct {
	Registry string
	Path     string
	Name     string
	Size     int
}

JFrogPackage represents a file entry from JFrog Artifactory

type JFrogRepository

type JFrogRepository struct {
	Key         string `json:"key"`
	Type        string `json:"type"`
	Url         string `json:"url"`
	Description string `json:"description"`
	PackageType string `json:"packageType"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL