mock_jfrog

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateHelmIndexFromPath

func GenerateHelmIndexFromPath(chartsPath string) (string, error)

GenerateHelmIndexFromPath dynamically generates Helm index.yaml content from a directory path containing .tgz files

func NewJfrogKeychain

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

Types

type ChartMetadata

type ChartMetadata struct {
	Name        string `yaml:"name"`
	Version     string `yaml:"version"`
	Description string `yaml:"description,omitempty"`
	AppVersion  string `yaml:"appVersion,omitempty"`
}

ChartMetadata represents the metadata extracted from a Helm chart

type HelmIndex

type HelmIndex struct {
	APIVersion string                      `yaml:"apiVersion"`
	Entries    map[string][]HelmIndexEntry `yaml:"entries"`
}

HelmIndex represents a minimal Helm index structure

type HelmIndexEntry

type HelmIndexEntry struct {
	Name    string   `yaml:"name"`
	Version string   `yaml:"version"`
	URLs    []string `yaml:"urls"`
}

HelmIndexEntry represents a minimal chart entry with only essential fields

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"`
}

type MockDataConfig

type MockDataConfig struct {
	Registries  map[string]JFrogRepository
	Files       map[string][]types.File
	Catalogs    map[string][]string
	FileContent map[string]string
}

MockDataConfig allows easy configuration of mock data

Jump to

Keyboard shortcuts

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