Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for normalize (0.18 sec)

  1. internal/event/target/kafka_scram_client_contrib.go

    type XDGSCRAMClient struct {
    	*scram.Client
    	*scram.ClientConversation
    	scram.HashGeneratorFcn
    }
    
    // Begin constructs a SCRAM client component based on a given hash.Hash
    // factory receiver.  This constructor will normalize the username, password
    // and authzID via the SASLprep algorithm, as recommended by RFC-5802.  If
    // SASLprep fails, the method returns an error.
    func (x *XDGSCRAMClient) Begin(userName, password, authzID string) (err error) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Nov 09 04:04:01 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  2. internal/logger/target/kafka/kafka_scram_client_contrib.go

    type XDGSCRAMClient struct {
    	*scram.Client
    	*scram.ClientConversation
    	scram.HashGeneratorFcn
    }
    
    // Begin constructs a SCRAM client component based on a given hash.Hash
    // factory receiver.  This constructor will normalize the username, password
    // and authzID via the SASLprep algorithm, as recommended by RFC-5802.  If
    // SASLprep fails, the method returns an error.
    func (x *XDGSCRAMClient) Begin(userName, password, authzID string) (err error) {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Nov 09 04:04:01 GMT 2023
    - 3.3K bytes
    - Viewed (1)
  3. internal/event/target/postgresql.go

    	// check for quoted string (string may not contain a quote)
    	if match, err := regexp.MatchString("^\"[^\"]+\"$", name); err != nil {
    		return err
    	} else if match {
    		return nil
    	}
    
    	// normalize the name to letters, digits, _ or $
    	valid := true
    	cleaned := strings.Map(func(r rune) rune {
    		switch {
    		case unicode.IsLetter(r):
    			return 'a'
    		case unicode.IsDigit(r):
    			return '0'
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 24 17:51:07 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  4. operator/cmd/mesh/install.go

    	}
    	icps, err := kubeClient.GetIstioVersions(context.TODO(), ns)
    	if err != nil {
    		return err
    	}
    	if len(*icps) != 0 {
    		var icpTags []string
    		var icpTag string
    		// create normalized tags for multiple control plane revisions
    		for _, icp := range *icps {
    			if icp.Revision != revision {
    				continue
    			}
    			tagVer, err := GetTagVersion(icp.Info.GitTag)
    			if err != nil {
    				return err
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  5. src/archive/tar/reader.go

    	return fr.nb
    }
    
    // sparseFileReader is a fileReader for reading data from a sparse file entry.
    type sparseFileReader struct {
    	fr  fileReader  // Underlying fileReader
    	sp  sparseHoles // Normalized list of sparse holes
    	pos int64       // Current position in sparse file
    }
    
    func (sr *sparseFileReader) Read(b []byte) (n int, err error) {
    	finished := int64(len(b)) >= sr.logicalRemaining()
    	if finished {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  6. internal/config/identity/ldap/ldap.go

    // server is canonical. Additionally, the attribute type names in the DN are
    // lower-cased.
    //
    // Return values:
    //
    // If the DN is found, the normalized (string) value is returned and error is
    // nil.
    //
    // If the DN is not found, the string returned is empty and the error is nil.
    //
    // The returned boolean is true iff the DN is found under one of the LDAP
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 9.9K bytes
    - Viewed (0)
  7. src/archive/tar/common.go

    // If the input is sparseHoles, then it will output sparseDatas and vice-versa.
    // The input must have been already validated.
    //
    // This function mutates src and returns a normalized map where:
    //   - adjacent fragments are coalesced together
    //   - only the last fragment may be empty
    //   - the endOffset of the last fragment is the total size
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
  8. cmd/utils.go

    		}
    		ep = ep[1:]
    	}
    	return ep
    }
    
    // unescapeGeneric is similar to url.PathUnescape or url.QueryUnescape
    // depending on input, additionally also handles situations such as
    // `//` are normalized as `/`, also removes any `/` prefix before
    // returning.
    func unescapeGeneric(p string, escapeFn func(string) (string, error)) (string, error) {
    	ep, err := escapeFn(p)
    	if err != nil {
    		return "", err
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 31.3K bytes
    - Viewed (0)
  9. cmd/admin-handlers-users.go

    			return
    		}
    	}
    
    	userType := regUser
    	if globalIAMSys.GetUsersSysType() == LDAPUsersSysType {
    		userType = stsUser
    
    		// Validate that the user or group exists in LDAP and use the normalized
    		// form of the entityName (which will be an LDAP DN).
    		var err error
    		if isGroup {
    			var foundGroupDN string
    			var underBaseDN bool
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 77.3K bytes
    - Viewed (0)
  10. cmd/iam.go

    				// Log and continue error - perhaps it'll work the next time.
    				iamLogIf(GlobalContext, err)
    			}
    		}
    	}
    }
    
    // NormalizeLDAPAccessKeypairs - normalize the access key pairs (service
    // accounts) for LDAP users. This normalizes the parent user and the group names
    // whenever the parent user parses validly as a DN.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
Back to top