Documentation
¶
Index ¶
- func GetArtifactType(ctx context.Context, image, version string, opts ...crane.Option) (string, error)
- func GetImageAnnotations(ctx context.Context, image, version string, opts ...crane.Option) (map[string]string, error)
- func ListRepositoryTags(ctx context.Context, image string, opts ...crane.Option) ([]string, error)
- type File
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetArtifactType ¶
func GetArtifactType(ctx context.Context, image, version string, opts ...crane.Option) (string, error)
GetArtifactType returns the artifact/media type for the given image:tag by parsing the manifest. Preference order: manifest.artifactType (OCI 1.1 artifacts), then config.mediaType, then manifest.mediaType.
Types ¶
Click to show internal directories.
Click to hide internal directories.