From 195450bc45158a3f3240bc943767536b25864570 Mon Sep 17 00:00:00 2001 From: "Lixia (Sylvia) Lei" Date: Thu, 24 Aug 2023 14:34:42 +0800 Subject: [PATCH] update doc Signed-off-by: Lixia (Sylvia) Lei --- pack.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pack.go b/pack.go index 27fecdbd..a852bb4b 100644 --- a/pack.go +++ b/pack.go @@ -103,9 +103,10 @@ type PackManifestOptions struct { // - If packManifestVersion is [PackManifestVersion1_1_RC4]: // artifactType MUST NOT be empty unless opts.ConfigDescriptor is specified. // - If packManifestVersion is [PackManifestVersion1_0]: -// when opts.ConfigDescriptor is nil, artifactType will be used as the -// config media type; when opts.ConfigDescriptor is NOT nil, -// artifactType will be ignored. +// if opts.ConfigDescriptor is nil, artifactType will be used as the +// config media type; if artifactType is empty, +// "application/vnd.unknown.config.v1+json" will be used. +// if opts.ConfigDescriptor is NOT nil, artifactType will be ignored. // // If succeeded, returns a descriptor of the packed manifest. func PackManifest(ctx context.Context, pusher content.Pusher, packManifestVersion PackManifestVersion, artifactType string, opts PackManifestOptions) (ocispec.Descriptor, error) {