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
Click to show internal directories.
Click to hide internal directories.