Skip to content

Commit

Permalink
Document that static layer contents aren't compressed
Browse files Browse the repository at this point in the history
  • Loading branch information
imjasonh committed Jul 29, 2021
1 parent e8d4a59 commit 35ad836
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/v1/static/layer.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ import (
)

// NewLayer returns a layer containing the given bytes, with the given mediaType.
//
// Contents will not be compressed.
func NewLayer(b []byte, mt types.MediaType) v1.Layer {
return &staticLayer{b: b, mt: mt}
}
Expand Down

0 comments on commit 35ad836

Please sign in to comment.