offlineupdate

package
v1.41.4 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 17 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	Vulnerability       = "__vuln"
	Component           = "__comp"
	JxrayDefaultBaseUrl = "https://jxray.jfrog.io/"
	JxrayApiBundles     = "api/v1/updates/bundles"
	JxrayApiOnboarding  = "api/v1/updates/onboarding"
)

Variables

This section is empty.

Functions

func OfflineUpdate

func OfflineUpdate(flags *OfflineUpdatesFlags) error

func ValidateStream

func ValidateStream(stream string) (string, error)

Verify that the given string is a valid optional stream.

Types

type FilesList

type FilesList struct {
	LastUpdate int64
	Urls       []string
}

type OfflineUpdatesFlags

type OfflineUpdatesFlags struct {
	License          string
	From             int64
	To               int64
	Version          string
	Target           string
	Stream           string
	IsPeriodicUpdate bool
}

type OnboardingResponse

type OnboardingResponse []V3UpdateResponseItem

type V3PeriodicUpdateResponse

type V3PeriodicUpdateResponse struct {
	Update   []V3UpdateResponseItem `json:"update"`
	Deletion []V3UpdateResponseItem `json:"deletion"`
}

type V3UpdateResponseItem

type V3UpdateResponseItem struct {
	DownloadUrl string `json:"download_url"`
	Timestamp   int64  `json:"timestamp"`
}

type ValidStreams

type ValidStreams struct {
	StreamsMap map[string]bool
}

ValidStreams represents the valid values that can be provided to the 'stream' flag during offline updates.

func NewValidStreams

func NewValidStreams() *ValidStreams

func (*ValidStreams) GetContextualAnalysisStream

func (vs *ValidStreams) GetContextualAnalysisStream() string

func (*ValidStreams) GetExposuresStream

func (vs *ValidStreams) GetExposuresStream() string

func (*ValidStreams) GetPublicDataStream

func (vs *ValidStreams) GetPublicDataStream() string

func (*ValidStreams) GetValidStreamsString

func (vs *ValidStreams) GetValidStreamsString() string

Jump to

Keyboard shortcuts

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