storj.io/uplink@v1.13.0/backcomp/concurrency.go (about)

     1  // Copyright (C) 2020 Storj Labs, Inc.
     2  // See LICENSE for copying information.
     3  
     4  // Package backcomp contains utilities for handling backwards incompatible changes.
     5  package backcomp
     6  
     7  import (
     8  	"context"
     9  
    10  	"storj.io/uplink"
    11  	"storj.io/uplink/internal/expose"
    12  )
    13  
    14  // RequestAccessWithPassphraseAndConcurrency requests satellite for a new access grant using a passhprase and specific concurrency for the Argon2 key derivation.
    15  func RequestAccessWithPassphraseAndConcurrency(ctx context.Context, config uplink.Config, satelliteNodeURL, apiKey, passphrase string, concurrency uint8) (_ *uplink.Access, err error) {
    16  	return expose.ConfigRequestAccessWithPassphraseAndConcurrency(config, ctx, satelliteNodeURL, apiKey, passphrase, concurrency)
    17  }