working commit
This commit is contained in:
+11
-6
@@ -23,7 +23,7 @@ type BlobExistsResult struct {
|
||||
func (oper *Operator) BlobExists(ctx context.Context, params *BlobExistsParams) (*BlobExistsResult, int, error) {
|
||||
var err error
|
||||
res := &BlobExistsResult{}
|
||||
oper.logg.Debugf("Call BlobExists")
|
||||
//oper.logg.Debugf("Calling BlobExists")
|
||||
|
||||
if params.Digest == "" {
|
||||
err = fmt.Errorf("Empty reference")
|
||||
@@ -79,7 +79,8 @@ type PostUploadResult struct {
|
||||
func (oper *Operator) PostUpload(ctx context.Context, params *PostUploadParams) (*PostUploadResult, int, error) {
|
||||
var err error
|
||||
res := &PostUploadResult{}
|
||||
oper.logg.Debugf("PostUpload")
|
||||
|
||||
//oper.logg.Debugf("Calling PostUpload")
|
||||
|
||||
if params.Digest == "" {
|
||||
uuid := auxuuid.NewUUID()
|
||||
@@ -116,7 +117,8 @@ type PatchUploadResult struct {
|
||||
func (oper *Operator) PatchUpload(ctx context.Context, params *PatchUploadParams) (*PatchUploadResult, int, error) {
|
||||
var err error
|
||||
res := &PatchUploadResult{}
|
||||
oper.logg.Debugf("Call PatchUpload")
|
||||
|
||||
//oper.logg.Debugf("Calling PatchUpload")
|
||||
|
||||
if params.Reference == "" {
|
||||
err = fmt.Errorf("Empty reference")
|
||||
@@ -182,7 +184,8 @@ type PutUploadResult struct {
|
||||
func (oper *Operator) PutUpload(ctx context.Context, params *PutUploadParams) (*PutUploadResult, int, error) {
|
||||
var err error
|
||||
res := &PutUploadResult{}
|
||||
oper.logg.Debugf("Call PutUpload")
|
||||
|
||||
//oper.logg.Debugf("Calling PutUpload")
|
||||
|
||||
if params.Reference == "" {
|
||||
err = fmt.Errorf("Empty reference")
|
||||
@@ -240,7 +243,8 @@ type GetBlobResult struct {
|
||||
func (oper *Operator) GetBlob(ctx context.Context, params *GetBlobParams) (*GetBlobResult, int, error) {
|
||||
var err error
|
||||
res := &GetBlobResult{}
|
||||
oper.logg.Debugf("Calling GetBlob %s:%s", params.Name, params.Digest)
|
||||
|
||||
//oper.logg.Debugf("Calling GetBlob %s:%s", params.Name, params.Digest)
|
||||
|
||||
if params.Name == "" {
|
||||
err = fmt.Errorf("Empty name")
|
||||
@@ -280,7 +284,8 @@ type DeleteBlobResult struct{}
|
||||
func (oper *Operator) DeleteBlob(ctx context.Context, params *DeleteBlobParams) (*DeleteBlobResult, int, error) {
|
||||
var err error
|
||||
res := &DeleteBlobResult{}
|
||||
oper.logg.Debugf("DeleteBlob")
|
||||
|
||||
//oper.logg.Debugf("Calling DeleteBlob")
|
||||
|
||||
if params.Digest == "" {
|
||||
err = fmt.Errorf("Empty digest")
|
||||
|
||||
Reference in New Issue
Block a user