Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1061 - 1070 of 1,179 for FUNC (0.07 sec)

  1. cmd/lock-rest-client_test.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"context"
    	"testing"
    
    	"github.com/minio/minio/internal/dsync"
    )
    
    // Tests lock rpc client.
    func TestLockRESTlient(t *testing.T) {
    	// These should not be connectable.
    	endpoint, err := NewEndpoint("http://localhost:9876")
    	if err != nil {
    		t.Fatalf("unexpected error %v", err)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. cmd/metrics-v3-system-memory.go

    	memSharedMD    = NewGaugeMD(memShared, "Shared memory on the node")
    	memAvailableMD = NewGaugeMD(memAvailable, "Available memory on the node")
    )
    
    // loadMemoryMetrics - `MetricsLoaderFn` for node memory metrics.
    func loadMemoryMetrics(ctx context.Context, m MetricValues, c *metricsCache) error {
    	memMetrics, err := c.memoryMetrics.Get()
    	if err != nil {
    		metricsLogIf(ctx, err)
    		return err
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Apr 17 05:10:25 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. internal/bucket/lifecycle/transition_test.go

    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package lifecycle
    
    import (
    	"encoding/xml"
    	"testing"
    )
    
    func TestTransitionUnmarshalXML(t *testing.T) {
    	trTests := []struct {
    		input string
    		err   error
    	}{
    		{
    			input: `<Transition>
    			<Days>0</Days>
    			<StorageClass>S3TIER-1</StorageClass>
    		  </Transition>`,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 01 18:58:17 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  4. tensorflow/c/c_test_util.cc

      TF_DeleteBuffer(buffer);
      TF_DeleteStatus(s);
      return ret;
    }
    
    bool GetFunctionDef(TF_Function* func, tensorflow::FunctionDef* func_def) {
      TF_Status* s = TF_NewStatus();
      TF_Buffer* buffer = TF_NewBuffer();
      TF_FunctionToFunctionDef(func, buffer, s);
      bool ret = TF_GetCode(s) == TF_OK;
      EXPECT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Fri Oct 15 03:16:52 UTC 2021
    - 17.8K bytes
    - Viewed (0)
  5. internal/bucket/lifecycle/rule_test.go

    package lifecycle
    
    import (
    	"encoding/xml"
    	"fmt"
    	"testing"
    )
    
    // TestInvalidRules checks if Rule xml with invalid elements returns
    // appropriate errors on validation
    func TestInvalidRules(t *testing.T) {
    	invalidTestCases := []struct {
    		inputXML    string
    		expectedErr error
    	}{
    		{ // Rule with ID longer than 255 characters
    			inputXML: ` <Rule>
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 01 01:11:10 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  6. internal/config/identity/tls/config.go

    }
    
    const (
    	defaultExpiry time.Duration = 1 * time.Hour
    	minExpiry     time.Duration = 15 * time.Minute
    	maxExpiry     time.Duration = 365 * 24 * time.Hour
    )
    
    // GetExpiryDuration - return parsed expiry duration.
    func (l Config) GetExpiryDuration(dsecs string) (time.Duration, error) {
    	if dsecs == "" {
    		return defaultExpiry, nil
    	}
    
    	d, err := strconv.Atoi(dsecs)
    	if err != nil {
    		return 0, auth.ErrInvalidDuration
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  7. internal/config/identity/openid/jwks.go

    }
    
    var (
    	errMalformedJWKRSAKey = errors.New("malformed JWK RSA key")
    	errMalformedJWKECKey  = errors.New("malformed JWK EC key")
    )
    
    // DecodePublicKey - decodes JSON Web Key (JWK) as public key
    func (key *JWKS) DecodePublicKey() (crypto.PublicKey, error) {
    	switch key.Kty {
    	case "RSA":
    		if key.N == "" || key.E == "" {
    			return nil, errMalformedJWKRSAKey
    		}
    
    		// decode exponent
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Apr 02 23:02:35 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  8. internal/bucket/lifecycle/noncurrentversion_test.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package lifecycle
    
    import "testing"
    
    func Test_NoncurrentVersionsExpiration_Validation(t *testing.T) {
    	testcases := []struct {
    		n   NoncurrentVersionExpiration
    		err error
    	}{
    		{
    			n: NoncurrentVersionExpiration{
    				NoncurrentDays:          0,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Dec 14 17:41:44 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  9. internal/config/batch/help.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package batch
    
    import "github.com/minio/minio/internal/config"
    
    // Help template for batch feature.
    var (
    	defaultHelpPostfix = func(key string) string {
    		return config.DefaultHelpPostfix(DefaultKVS, key)
    	}
    
    	// Help provides help for config values
    	Help = config.HelpKVS{
    		config.HelpKV{
    			Key:         ReplicationWorkersWait,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Dec 02 10:51:33 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  10. internal/config/policy/plugin/help.go

    package plugin
    
    import "github.com/minio/minio/internal/config"
    
    // Help template for Access Management Plugin policy feature.
    var (
    	defaultHelpPostfix = func(key string) string {
    		return config.DefaultHelpPostfix(DefaultKVS, key)
    	}
    
    	Help = config.HelpKVS{
    		config.HelpKV{
    			Key:         URL,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 23 14:45:27 UTC 2023
    - 1.8K bytes
    - Viewed (0)
Back to top