Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
Signed-off-by: Lixia (Sylvia) Lei <lixlei@microsoft.com>
  • Loading branch information
Wwwsylvia committed Aug 24, 2023
1 parent 4747c97 commit 195450b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pack.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 195450b

Please sign in to comment.