sourceresolver

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 9 Imported by: 78

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageMetaResolver

type ImageMetaResolver interface {
	ResolveImageConfig(ctx context.Context, ref string, opt Opt) (string, digest.Digest, []byte, error)
}

func NewImageMetaResolver

func NewImageMetaResolver(mr MetaResolver) ImageMetaResolver

type MetaResolver

type MetaResolver interface {
	ResolveSourceMetadata(ctx context.Context, op *pb.SourceOp, opt Opt) (*MetaResponse, error)
}

type MetaResponse

type MetaResponse struct {
	Op *pb.SourceOp

	Image *ResolveImageResponse
}

type Opt

type Opt struct {
	LogName        string
	SourcePolicies []*spb.Policy
	Platform       *ocispecs.Platform

	ImageOpt     *ResolveImageOpt
	OCILayoutOpt *ResolveOCILayoutOpt
}

type ResolveImageConfigOptStore

type ResolveImageConfigOptStore struct {
	SessionID string
	StoreID   string
}

type ResolveImageOpt

type ResolveImageOpt struct {
	ResolveMode string
}

type ResolveImageResponse

type ResolveImageResponse struct {
	Digest digest.Digest
	Config []byte
}

type ResolveOCILayoutOpt

type ResolveOCILayoutOpt struct {
	Store ResolveImageConfigOptStore
}

type ResolverType

type ResolverType int
const (
	ResolverTypeRegistry ResolverType = iota
	ResolverTypeOCILayout
)

Jump to

Keyboard shortcuts

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