Documentation
¶
Index ¶
- func CreateManifestEntry(parsedRef *referenceutil.ImageReference, desc ocispec.Descriptor, ...) (manifesttypes.DockerManifestEntry, error)
- func CreateResolver(ctx context.Context, domain string, globalOptions types.GlobalCommandOptions, ...) (remotes.Resolver, error)
- func FetchManifestData(ctx context.Context, resolver remotes.Resolver, ref string) (ocispec.Descriptor, []byte, error)
- func GetManifest(ctx context.Context, parsedRef *referenceutil.ImageReference, ...) (interface{}, ocispec.Descriptor, []byte, error)
- func GetPlatform(ctx context.Context, domain string, globalOptions types.GlobalCommandOptions, ...) (*ocispec.Platform, error)
- func NewNoSuchManifestError(ref string) error
- func ParseManifest(mediaType string, data []byte) (interface{}, error)
- type NoSuchManifestError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateManifestEntry ¶
func CreateManifestEntry(parsedRef *referenceutil.ImageReference, desc ocispec.Descriptor, rawData []byte) (manifesttypes.DockerManifestEntry, error)
CreateManifestEntry creates a DockerManifestEntry with proper ManifestStruct
func CreateResolver ¶
func CreateResolver(ctx context.Context, domain string, globalOptions types.GlobalCommandOptions, insecure bool) (remotes.Resolver, error)
CreateResolver creates a resolver for registry operations
func FetchManifestData ¶
func FetchManifestData(ctx context.Context, resolver remotes.Resolver, ref string) (ocispec.Descriptor, []byte, error)
FetchManifestData fetches manifest descriptor and data from the registry
func GetManifest ¶
func GetManifest(ctx context.Context, parsedRef *referenceutil.ImageReference, globalOptions types.GlobalCommandOptions, insecure bool) (interface{}, ocispec.Descriptor, []byte, error)
GetManifest returns manifest, descriptor, and raw data in one call
func GetPlatform ¶
func GetPlatform(ctx context.Context, domain string, globalOptions types.GlobalCommandOptions, insecure bool, ref string, manifest interface{}) (*ocispec.Platform, error)
GetPlatform return the platform information from manifest config
func NewNoSuchManifestError ¶
NewNoSuchManifestError creates a new NoSuchManifestError
func ParseManifest ¶
ParseManifest parses manifest data based on media type
Types ¶
type NoSuchManifestError ¶
type NoSuchManifestError struct {
Ref string
}
NoSuchManifestError represents an error when a manifest is not found
func (*NoSuchManifestError) Error ¶
func (e *NoSuchManifestError) Error() string
Click to show internal directories.
Click to hide internal directories.