Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for key (0.12 sec)

  1. cmd/sftp-server.go

    	}
    
    	if sshPrivateKey == "" {
    		logger.Fatal(fmt.Errorf("invalid arguments passed, private key file is mandatory for --sftp='ssh-private-key=path/to/id_ecdsa'"), "unable to start SFTP server")
    	}
    
    	privateBytes, err := os.ReadFile(sshPrivateKey)
    	if err != nil {
    		logger.Fatal(fmt.Errorf("invalid arguments passed, private key file is not accessible: %v", err), "unable to start SFTP server")
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  2. cmd/config-current.go

    		})
    	}
    
    	for _, hkv := range h {
    		key := hkv.Key
    		if envOnly {
    			key = config.EnvPrefix + strings.ToTitle(subSys) + config.EnvWordDelimiter + strings.ToTitle(hkv.Key)
    		}
    		help = append(help, config.HelpKV{
    			Key:         key,
    			Description: hkv.Description,
    			Optional:    hkv.Optional,
    			Type:        hkv.Type,
    		})
    	}
    
    	return Help{
    		SubSys:          subSys,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 30.8K bytes
    - Viewed (0)
  3. cmd/common-main.go

    	}
    
    	key := envTokens[0]
    	val := envTokens[1]
    
    	// Remove quotes from the value if found
    	if len(val) >= 2 {
    		quote := val[0]
    		if (quote == '"' || quote == '\'') && val[len(val)-1] == quote {
    			val = val[1 : len(val)-1]
    		}
    	}
    
    	return envKV{
    		Key:   key,
    		Value: val,
    	}, nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 35.8K bytes
    - Viewed (2)
  4. cmd/test-utils_test.go

    func StartTestTLSServer(t TestErrHandler, instanceType string, cert, key []byte) TestServer {
    	// Fetch TLS key and pem files from test-data/ directory.
    	//	dir, _ := os.Getwd()
    	//	testDataDir := filepath.Join(filepath.Dir(dir), "test-data")
    	//
    	//	pemFile := filepath.Join(testDataDir, "server.pem")
    	//	keyFile := filepath.Join(testDataDir, "server.key")
    	cer, err := tls.X509KeyPair(cert, key)
    	if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  5. migrator/migrator.go

    					values = append(values, clause.Column{Name: dbName}, m.DB.Migrator().FullDataTypeOf(field))
    					createTableSQL += ","
    				}
    			}
    
    			if !hasPrimaryKeyInDataType && len(stmt.Schema.PrimaryFields) > 0 {
    				createTableSQL += "PRIMARY KEY ?,"
    				primaryKeys := make([]interface{}, 0, len(stmt.Schema.PrimaryFields))
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Apr 26 07:15:49 GMT 2024
    - 29K bytes
    - Viewed (0)
  6. errors.go

    	// ErrDuplicatedKey occurs when there is a unique key constraint violation
    	ErrDuplicatedKey = errors.New("duplicated key not allowed")
    	// ErrForeignKeyViolated occurs when there is a foreign key constraint violation
    	ErrForeignKeyViolated = errors.New("violates foreign key constraint")
    	// ErrCheckConstraintViolated occurs when there is a check constraint violation
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Apr 26 02:53:17 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  7. cmd/iam-store.go

    }
    
    func (c *iamCache) updateUserWithClaims(key string, u UserIdentity) error {
    	if u.Credentials.SessionToken != "" {
    		jwtClaims, err := extractJWTClaims(u)
    		if err != nil {
    			return err
    		}
    		u.Credentials.Claims = jwtClaims.Map()
    	}
    	if u.Credentials.IsTemp() && !u.Credentials.IsServiceAccount() {
    		c.iamSTSAccountsMap[key] = u
    	} else {
    		c.iamUsersMap[key] = u
    	}
    	c.updatedAt = time.Now()
    	return nil
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Apr 27 10:04:10 GMT 2024
    - 75.2K bytes
    - Viewed (2)
  8. internal/logger/target/console/console.go

    	for i, element := range entry.Trace.Source {
    		trace[i] = fmt.Sprintf("%8v: %s", traceLength-i, element)
    	}
    
    	tagString := ""
    	for key, value := range entry.Trace.Variables {
    		if value != "" {
    			if tagString != "" {
    				tagString += ", "
    			}
    			tagString += fmt.Sprintf("%s=%#v", key, value)
    		}
    	}
    
    	var apiString string
    	if entry.API != nil {
    		apiString = "API: " + entry.API.Name
    		if entry.API.Args != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:57:52 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  9. cmd/api-errors.go

    }
    
    // APIErrorResponse - error response format
    type APIErrorResponse struct {
    	XMLName          xml.Name `xml:"Error" json:"-"`
    	Code             string
    	Message          string
    	Key              string `xml:"Key,omitempty" json:"Key,omitempty"`
    	BucketName       string `xml:"BucketName,omitempty" json:"BucketName,omitempty"`
    	Resource         string
    	Region           string `xml:"Region,omitempty" json:"Region,omitempty"`
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 91.4K bytes
    - Viewed (7)
  10. cmd/bucket-replication.go

    }
    
    type caseInsensitiveMap map[string]string
    
    // Lookup map entry case insensitively.
    func (m caseInsensitiveMap) Lookup(key string) (string, bool) {
    	if len(m) == 0 {
    		return "", false
    	}
    	for _, k := range []string{
    		key,
    		strings.ToLower(key),
    		http.CanonicalHeaderKey(key),
    	} {
    		v, ok := m[k]
    		if ok {
    			return v, ok
    		}
    	}
    	return "", false
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 112.2K bytes
    - Viewed (1)
Back to top