Versions in this module Expand all Collapse all v0 v0.98.1 Dec 1, 2023 Changes in this version + var AllScopes = []Scope + func NewCoordinateSet(coordinates ...file.Coordinates) file.CoordinateSet + func NewLocation(realPath string) file.Location + func NewLocationFromCoordinates(coordinates file.Coordinates) file.Location + func NewLocationFromDirectory(responsePath string, ref stereoscopeFile.Reference) file.Location + func NewLocationFromImage(virtualPath string, ref stereoscopeFile.Reference, img *image.Image) file.Location + func NewLocationReadCloser(location file.Location, reader io.ReadCloser) file.LocationReadCloser + func NewLocationSet(locations ...file.Location) file.LocationSet + func NewMockResolverForPaths(paths ...string) *file.MockResolver + func NewMockResolverForPathsWithMetadata(metadata map[file.Coordinates]file.Metadata) *file.MockResolver + func NewVirtualLocation(realPath, virtualPath string) file.Location + func NewVirtualLocationFromCoordinates(coordinates file.Coordinates, virtualPath string) file.Location + func NewVirtualLocationFromDirectory(responsePath, virtualResponsePath string, ref stereoscopeFile.Reference) file.Location + type Alias struct + Name string + Version string + func (a *Alias) IsEmpty() bool + type CoordinateSet = file.CoordinateSet + type Coordinates = file.Coordinates + type Description struct + ID string + Metadata interface{} + Name string + Version string + type DetectConfig struct + DefaultImageSource string + func DefaultDetectConfig() DetectConfig + type Detection struct + func Detect(userInput string, cfg DetectConfig) (*Detection, error) + func (d Detection) IsContainerImage() bool + func (d Detection) NewSource(cfg DetectionSourceConfig) (Source, error) + type DetectionSourceConfig struct + Alias Alias + BasePath string + DigestAlgorithms []crypto.Hash + Exclude ExcludeConfig + Platform *image.Platform + RegistryOptions *image.RegistryOptions + func DefaultDetectionSourceConfig() DetectionSourceConfig + type DirectoryConfig struct + Alias Alias + Base string + Exclude ExcludeConfig + Path string + type DirectorySource struct + func NewFromDirectory(cfg DirectoryConfig) (*DirectorySource, error) + func NewFromDirectoryPath(path string) (*DirectorySource, error) + func (s *DirectorySource) Close() error + func (s *DirectorySource) FileResolver(_ Scope) (file.Resolver, error) + func (s DirectorySource) Describe() Description + func (s DirectorySource) ID() artifact.ID + type DirectorySourceMetadata struct + Base string + Path string + type ExcludeConfig struct + Paths []string + type FileConfig struct + Alias Alias + DigestAlgorithms []crypto.Hash + Exclude ExcludeConfig + Path string + type FileContentResolver = file.ContentResolver + type FileLocationResolver = file.LocationResolver + type FileMetadata = file.Metadata + type FileMetadataResolver = file.MetadataResolver + type FilePathResolver = file.PathResolver + type FileResolver = file.Resolver + type FileSource struct + func NewFromFile(cfg FileConfig) (*FileSource, error) + func (s *FileSource) Close() error + func (s FileSource) Describe() Description + func (s FileSource) FileResolver(_ Scope) (file.Resolver, error) + func (s FileSource) ID() artifact.ID + type FileSourceMetadata struct + Digests []file.Digest + MIMEType string + Path string + type Location = file.Location + type LocationData = file.LocationData + type LocationMetadata = file.LocationMetadata + type LocationReadCloser = file.LocationReadCloser + type LocationSet = file.LocationSet + type Locations = file.Locations + type MockResolver = file.MockResolver + type Scope string + const AllLayersScope + const SquashedScope + const UnknownScope + func ParseScope(userStr string) Scope + func (o Scope) String() string + type Source interface + Describe func() Description + FileResolver func(Scope) (file.Resolver, error) + func FromDescription(d Description) Source + type StereoscopeImageConfig struct + Alias Alias + Exclude ExcludeConfig + From image.Source + Platform *image.Platform + Reference string + RegistryOptions *image.RegistryOptions + type StereoscopeImageSource struct + func NewFromStereoscopeImage(cfg StereoscopeImageConfig) (*StereoscopeImageSource, error) + func NewFromStereoscopeImageObject(img *image.Image, reference string, alias *Alias) (*StereoscopeImageSource, error) + func (s StereoscopeImageSource) Close() error + func (s StereoscopeImageSource) Describe() Description + func (s StereoscopeImageSource) FileResolver(scope Scope) (file.Resolver, error) + func (s StereoscopeImageSource) ID() artifact.ID + type StereoscopeImageSourceMetadata struct + Architecture string + ID string + Labels map[string]string + Layers []StereoscopeLayerMetadata + ManifestDigest string + MediaType string + OS string + RawConfig []byte + RawManifest []byte + RepoDigests []string + Size int64 + Tags []string + UserInput string + Variant string + func NewStereoscopeImageMetadata(img *image.Image, userInput string) StereoscopeImageSourceMetadata + type StereoscopeLayerMetadata struct + Digest string + MediaType string + Size int64 + type WritableFileResolver = file.WritableResolver