parser

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package parser provides functionality to parse Docker image layers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateImageRef

func ValidateImageRef(imageRef string) error

ValidateImageRef validates that an image reference is well-formed.

Types

type Parser

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

Parser handles the parsing of Docker image layers.

func NewParser

func NewParser(client docker.Client) *Parser

NewParser creates a new layer parser.

func (*Parser) ParseImage

func (p *Parser) ParseImage(ctx context.Context, imageRef string) (*models.Image, error)

ParseImage retrieves full image information including layers.

func (*Parser) ParseLayers

func (p *Parser) ParseLayers(ctx context.Context, imageRef string) ([]models.Layer, error)

ParseLayers retrieves and parses layers for a given image.

Jump to

Keyboard shortcuts

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