v1

package
v0.2.206 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 52 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NodeNameMetadataKey    = "kubescape.io/node-name"
	ToolVersionMetadataKey = "kubescape.io/tool-version"
)

Variables

View Source
var (
	ErrImageTooLarge = errors.New("image size exceeds maximum allowed size")
)

Functions

This section is empty.

Types

type ImageInfo

type ImageInfo struct {
	ImageSpec imagespec.Image `json:"imageSpec"`
}

type NodeResolver

type NodeResolver struct {
	// contains filtered or unexported fields
}

func NewResolver

func NewResolver(scope source.Scope, layers []imagedigest.Digest, mounts []string) (*NodeResolver, error)

func (NodeResolver) AllLocations

func (n NodeResolver) AllLocations(ctx context.Context) <-chan file.Location

func (NodeResolver) FileContentsByLocation

func (n NodeResolver) FileContentsByLocation(location file.Location) (io.ReadCloser, error)

func (NodeResolver) FileMetadataByLocation

func (n NodeResolver) FileMetadataByLocation(location file.Location) (file.Metadata, error)

func (NodeResolver) FilesByGlob

func (n NodeResolver) FilesByGlob(patterns ...string) ([]file.Location, error)

func (NodeResolver) FilesByMIMEType

func (n NodeResolver) FilesByMIMEType(types ...string) ([]file.Location, error)

func (NodeResolver) FilesByPath

func (n NodeResolver) FilesByPath(paths ...string) ([]file.Location, error)

func (NodeResolver) HasPath

func (n NodeResolver) HasPath(s string) bool

func (NodeResolver) RelativeFileByPath

func (n NodeResolver) RelativeFileByPath(_ file.Location, path string) *file.Location

type NodeSource

type NodeSource struct {
	// contains filtered or unexported fields
}

func NewSource

func NewSource(imageName, imageDigest, imageID string, imageStatus *runtime.ImageStatusResponse, mounts []string, maxImageSize int64) (*NodeSource, error)

func (*NodeSource) Close

func (n *NodeSource) Close() error

func (*NodeSource) Describe

func (n *NodeSource) Describe() source.Description

func (*NodeSource) FileResolver

func (n *NodeSource) FileResolver(scope source.Scope) (file.Resolver, error)

func (*NodeSource) ID

func (n *NodeSource) ID() artifact.ID

type SbomManager

type SbomManager struct {
	// contains filtered or unexported fields
}

func CreateSbomManager

func CreateSbomManager(ctx context.Context, cfg config.Config, socketPath string, storageClient storage.StorageClient) (*SbomManager, error)

func (*SbomManager) ContainerCallback

func (s *SbomManager) ContainerCallback(notif containercollection.PubSubEvent)

Jump to

Keyboard shortcuts

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