github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/ais/backend/mock_aws.go (about)

     1  //go:build !aws
     2  
     3  // Package backend contains implementation of various backend providers.
     4  /*
     5   * Copyright (c) 2018-2024, NVIDIA CORPORATION. All rights reserved.
     6   */
     7  package backend
     8  
     9  import (
    10  	"io"
    11  	"net/http"
    12  	"net/url"
    13  
    14  	s3types "github.com/NVIDIA/aistore/ais/s3"
    15  	"github.com/NVIDIA/aistore/api/apc"
    16  	"github.com/NVIDIA/aistore/cmn"
    17  	"github.com/NVIDIA/aistore/core"
    18  )
    19  
    20  func NewAWS(_ core.TargetPut) (core.Backend, error) {
    21  	return nil, newErrInitBackend(apc.AWS)
    22  }
    23  
    24  func StartMpt(*core.LOM, *http.Request, url.Values) (string, int, error) {
    25  	return "", http.StatusBadRequest, cmn.NewErrUnsupp("start-mpt", mock)
    26  }
    27  
    28  func PutMptPart(*core.LOM, io.ReadCloser, *http.Request, url.Values, string, int64, int32) (string, int, error) {
    29  	return "", http.StatusBadRequest, cmn.NewErrUnsupp("put-mpt-part", mock)
    30  }
    31  
    32  func CompleteMpt(*core.LOM, *http.Request, url.Values, string, *s3types.CompleteMptUpload) (string, int, error) {
    33  	return "", http.StatusBadRequest, cmn.NewErrUnsupp("complete-part", mock)
    34  }
    35  
    36  func AbortMpt(*core.LOM, *http.Request, url.Values, string) (int, error) {
    37  	return http.StatusBadRequest, cmn.NewErrUnsupp("abort-mpt", mock)
    38  }