working commit
This commit is contained in:
@@ -11,7 +11,6 @@ package client
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
"github.com/google/go-containerregistry/pkg/authn"
|
||||
"github.com/google/go-containerregistry/pkg/crane"
|
||||
@@ -27,7 +26,7 @@ type ImageDescr struct {
|
||||
Tags []string `json:"avilableTags,omitempty"`
|
||||
}
|
||||
|
||||
func (cli *Client) ImageInfo(ctx context.Context, imagepath string, timeout time.Duration) (*ImageDescr, error) {
|
||||
func (cli *Client) ImageInfo(ctx context.Context, imagepath string) (*ImageDescr, error) {
|
||||
var err error
|
||||
res := &ImageDescr{}
|
||||
|
||||
@@ -35,7 +34,6 @@ func (cli *Client) ImageInfo(ctx context.Context, imagepath string, timeout time
|
||||
if err != nil {
|
||||
return res, err
|
||||
}
|
||||
ctx, _ = context.WithTimeout(ctx, timeout)
|
||||
options := make([]crane.Option, 0)
|
||||
options = append(options, crane.WithContext(ctx))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user