snapsource

package
v1.40.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

View Source
const NotSpecifiedRevision int = 0

Variables

This section is empty.

Functions

func NewFromLocal

func NewFromLocal(cfg Config) (source.Source, error)

func NewFromRemote

func NewFromRemote(cfg Config) (source.Source, error)

func NewLocalSourceProvider

func NewLocalSourceProvider(path string, exclude source.ExcludeConfig, digestAlgorithms []crypto.Hash, alias source.Alias) source.Provider

NewLocalSourceProvider creates a new provider for snap files from a local path.

func NewRemoteSourceProvider

func NewRemoteSourceProvider(path string, exclude source.ExcludeConfig, digestAlgorithms []crypto.Hash, alias source.Alias) source.Provider

NewRemoteSourceProvider creates a new provider for snap files from a remote location.

Types

type Config

type Config struct {
	ID clio.Identification

	Request          string
	Platform         *image.Platform
	Exclude          source.ExcludeConfig
	DigestAlgorithms []crypto.Hash
	Alias            source.Alias
	// contains filtered or unexported fields
}

type SnapRisk added in v1.39.0

type SnapRisk string
const (
	RiskStable    SnapRisk = "stable"
	RiskCandidate SnapRisk = "candidate"
	RiskBeta      SnapRisk = "beta"
	RiskEdge      SnapRisk = "edge"
	RiskUnknown   SnapRisk = "unknown"
)

Jump to

Keyboard shortcuts

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