Skip to content

Commit

Permalink
Add deprecation notices to trigger golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmoor committed Dec 16, 2020
1 parent a8de621 commit 4717181
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/v1/v1util/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ import (

// VerifyReadCloser wraps the given io.ReadCloser to verify that its contents match
// the provided v1.Hash before io.EOF is returned.
// DEPRECATED please use v1.VerifyReadCloser
var VerifyReadCloser = v1.VerifyReadCloser
4 changes: 4 additions & 0 deletions pkg/v1/v1util/zip.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,21 @@ import "github.com/google/go-containerregistry/pkg/v1/internal/gzip"
// GzipReadCloser reads uncompressed input data from the io.ReadCloser and
// returns an io.ReadCloser from which compressed data may be read.
// This uses gzip.BestSpeed for the compression level.
// DEPRECATED please move off of this API
var GzipReadCloser = gzip.GzipReadCloser

// GzipReadCloserLevel reads uncompressed input data from the io.ReadCloser and
// returns an io.ReadCloser from which compressed data may be read.
// Refer to compress/gzip for the level:
// https://golang.org/pkg/compress/gzip/#pkg-constants
// DEPRECATED please move off of this API
var GzipReadCloserLevel = gzip.GzipReadCloserLevel

// GunzipReadCloser reads compressed input data from the io.ReadCloser and
// returns an io.ReadCloser from which uncompessed data may be read.
// DEPRECATED please move off of this API
var GunzipReadCloser = gzip.GunzipReadCloser

// IsGzipped detects whether the input stream is compressed.
// DEPRECATED please move off of this API
var IsGzipped = gzip.IsGzipped

0 comments on commit 4717181

Please sign in to comment.