Browse Source

chore: fix function names in comment (#5478)

pull/5481/head
clonefetch 9 months ago
committed by GitHub
parent
commit
9e07a87fcb
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      weed/ftpd/ftp_server.go
  2. 2
      weed/s3api/auth_signature_v4.go
  3. 2
      weed/s3api/auto_signature_v4_test.go
  4. 2
      weed/s3api/s3api_bucket_handlers.go
  5. 2
      weed/util/skiplist/skiplist.go

2
weed/ftpd/ftp_server.go

@ -29,7 +29,7 @@ type SftpServer struct {
var _ = ftpserver.MainDriver(&SftpServer{}) var _ = ftpserver.MainDriver(&SftpServer{})
// NewServer returns a new FTP server driver
// NewFtpServer returns a new FTP server driver
func NewFtpServer(ftpListener net.Listener, option *FtpServerOption) (*SftpServer, error) { func NewFtpServer(ftpListener net.Listener, option *FtpServerOption) (*SftpServer, error) {
var err error var err error
server := &SftpServer{ server := &SftpServer{

2
weed/s3api/auth_signature_v4.go

@ -311,7 +311,7 @@ func parseSignature(signElement string) (string, s3err.ErrorCode) {
return signature, s3err.ErrNone return signature, s3err.ErrNone
} }
// doesPolicySignatureMatch - Verify query headers with post policy
// doesPolicySignatureV4Match - Verify query headers with post policy
// - http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-HTTPPOSTConstructPolicy.html // - http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-HTTPPOSTConstructPolicy.html
// //
// returns ErrNone if the signature matches. // returns ErrNone if the signature matches.

2
weed/s3api/auto_signature_v4_test.go

@ -262,7 +262,7 @@ func getMD5HashBase64(data []byte) string {
return base64.StdEncoding.EncodeToString(getMD5Sum(data)) return base64.StdEncoding.EncodeToString(getMD5Sum(data))
} }
// getSHA256Hash returns SHA-256 sum of given data.
// getSHA256Sum returns SHA-256 sum of given data.
func getSHA256Sum(data []byte) []byte { func getSHA256Sum(data []byte) []byte {
hash := sha256.New() hash := sha256.New()
hash.Write(data) hash.Write(data)

2
weed/s3api/s3api_bucket_handlers.go

@ -351,7 +351,7 @@ func (s3a *S3ApiServer) PutBucketLifecycleConfigurationHandler(w http.ResponseWr
} }
// DeleteBucketMetricsConfiguration Delete Bucket Lifecycle
// DeleteBucketLifecycleHandler Delete Bucket Lifecycle
// https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketLifecycle.html // https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketLifecycle.html
func (s3a *S3ApiServer) DeleteBucketLifecycleHandler(w http.ResponseWriter, r *http.Request) { func (s3a *S3ApiServer) DeleteBucketLifecycleHandler(w http.ResponseWriter, r *http.Request) {

2
weed/util/skiplist/skiplist.go

@ -26,7 +26,7 @@ type SkipList struct {
// elementCount int // elementCount int
} }
// NewSeedEps returns a new empty, initialized Skiplist.
// NewSeed returns a new empty, initialized Skiplist.
// Given a seed, a deterministic height/list behaviour can be achieved. // Given a seed, a deterministic height/list behaviour can be achieved.
// Eps is used to compare keys given by the ExtractKey() function on equality. // Eps is used to compare keys given by the ExtractKey() function on equality.
func NewSeed(seed int64, listStore ListStore) *SkipList { func NewSeed(seed int64, listStore ListStore) *SkipList {

Loading…
Cancel
Save