resolver

package
v0.0.0-...-6d16faf Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResolverProxy

type ResolverProxy struct {
	stream.UnimplementedBaseStage
}

A resolver that proxies requests over the bidirectional grpc stream It is used by buildkit to resolve image names into digest SHAs

func NewResolverProxy

func NewResolverProxy() *ResolverProxy

func (*ResolverProxy) Filter

func (r *ResolverProxy) Filter(c *api.ClientStream) error

func (*ResolverProxy) ResolveImageConfig

func (r *ResolverProxy) ResolveImageConfig(ctx context.Context, ref string, opt sourceresolver.Opt) (string, digest.Digest, []byte, error)

Request Format:

ImageTransfer {
    ID: $uuid,
    Direction: OUTOF,
    Metadata: {
        "os": "linux",
		"stage":  "resolver",
        "method": "/resolve",
		"ref": $image_name,
		"platform": $platform,
    }
}

Response Format:

ImageTransfer {
    ID: $uuid,
    Direction: INTO,
    Tag: $digest
    Metadata: {
        "os": "linux",
		"stage":  "resolver",
        "method": "/resolve",
		"ref": $image_name,
		"platform": $platform,
    },
	data: []byte{}, # ocispecs.Image encoded as json
	"complete": "true"
}

func (*ResolverProxy) String

func (r *ResolverProxy) String() string

Jump to

Keyboard shortcuts

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