Documentation ¶
Index ¶
- Constants
- Variables
- type ImageInfo
- type NodeResolver
- func (n NodeResolver) AllLocations(ctx context.Context) <-chan file.Location
- func (n NodeResolver) FileContentsByLocation(location file.Location) (io.ReadCloser, error)
- func (n NodeResolver) FileMetadataByLocation(location file.Location) (file.Metadata, error)
- func (n NodeResolver) FilesByGlob(patterns ...string) ([]file.Location, error)
- func (n NodeResolver) FilesByMIMEType(types ...string) ([]file.Location, error)
- func (n NodeResolver) FilesByPath(paths ...string) ([]file.Location, error)
- func (n NodeResolver) HasPath(s string) bool
- func (n NodeResolver) RelativeFileByPath(_ file.Location, path string) *file.Location
- type NodeSource
- type SbomManager
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 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 (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 ¶
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 (*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)
Click to show internal directories.
Click to hide internal directories.