Skip to content

Commit

Permalink
fmt changes
Browse files Browse the repository at this point in the history
Signed-off-by: Joao Pereira <[email protected]>
  • Loading branch information
joaopapereira committed Dec 1, 2022
1 parent 97c13f4 commit 122b758
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pkg/imgpkg/registry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ type Registry interface {
}

// ImagesReader Interface for Reading Images
//
//go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 . ImagesReader
type ImagesReader interface {
Get(regname.Reference) (*regremote.Descriptor, error)
Expand All @@ -70,6 +71,7 @@ type ImagesReader interface {
}

// ImagesReaderWriter Interface for Reading and Writing Images
//
//go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 . ImagesReaderWriter
type ImagesReaderWriter interface {
ImagesReader
Expand Down
3 changes: 2 additions & 1 deletion pkg/imgpkg/registry/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ func (r *RoundTripperStorage) RoundTripper(repo regname.Repository, scope string

// CreateRoundTripper Creates a new RoundTripper
// scope field has the following format "repository:/org/suborg/repo_name:pull,push"
// for more information check https://github.com/distribution/distribution/blob/263da70ea6a4e96f61f7a6770273ec6baac38941/docs/spec/auth/token.md#requesting-a-token
//
// for more information check https://github.com/distribution/distribution/blob/263da70ea6a4e96f61f7a6770273ec6baac38941/docs/spec/auth/token.md#requesting-a-token
func (r *RoundTripperStorage) CreateRoundTripper(reg regname.Registry, auth authn.Authenticator, scope string) (http.RoundTripper, error) {
r.readWriteAccess.Lock()
defer r.readWriteAccess.Unlock()
Expand Down

0 comments on commit 122b758

Please sign in to comment.