Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for unicode (0.15 sec)

  1. utils/utils.go

    			return string(strconv.AppendInt(append([]byte(frame.File), ':'), int64(frame.Line), 10))
    		}
    	}
    
    	return ""
    }
    
    func IsValidDBNameChar(c rune) bool {
    	return !unicode.IsLetter(c) && !unicode.IsNumber(c) && c != '.' && c != '*' && c != '_' && c != '$' && c != '@'
    }
    
    // CheckTruth check string true or not
    func CheckTruth(vals ...string) bool {
    	for _, val := range vals {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 22 06:43:02 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  2. internal/event/target/postgresql.go

    	} 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'
    		case r == '_', r == '$':
    			return r
    		default:
    			valid = false
    			return -1
    		}
    	}, name)
    
    	if valid {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 17:51:07 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  3. cmd/object-handlers.go

    	"encoding/hex"
    	"encoding/xml"
    	"errors"
    	"fmt"
    	"io"
    	"net/http"
    	"net/http/httptest"
    	"net/textproto"
    	"net/url"
    	"os"
    	"sort"
    	"strconv"
    	"strings"
    	"sync/atomic"
    	"time"
    	"unicode"
    
    	"github.com/google/uuid"
    	"github.com/klauspost/compress/gzhttp"
    	miniogo "github.com/minio/minio-go/v7"
    	"github.com/minio/minio-go/v7/pkg/credentials"
    	"github.com/minio/minio-go/v7/pkg/encrypt"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 20:15:54 GMT 2024
    - 125.2K bytes
    - Viewed (0)
  4. cmd/sts-handlers_test.go

    		if err != nil {
    			c.Fatalf("normalize err: %v", err)
    		}
    		return normalizedDN
    	}
    
    	actualUserDN := mustNormalizeDN("uid=svc.algorithm,OU=swengg,DC=min,DC=io")
    
    	// \uFE52 is the unicode dot SMALL FULL STOP used below:
    	userDNWithUnicodeDot := "uid=svc﹒algorithm,OU=swengg,DC=min,DC=io"
    
    	if err = s.adm.SetPolicy(ctx, policy, userDNWithUnicodeDot, false); err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 85.7K bytes
    - Viewed (0)
  5. cni/pkg/plugin/sidecar_iptables_linux.go

    // Program defines a method which programs iptables based on the parameters
    // provided in Redirect.
    func (ipt *iptables) Program(podName, netns string, rdrct *Redirect) error {
    	cfg := config.DefaultConfig()
    	cfg.CNIMode = true
    	cfg.NetworkNamespace = netns
    	cfg.ProxyPort = rdrct.targetPort
    	cfg.ProxyUID = rdrct.noRedirectUID
    	cfg.ProxyGID = rdrct.noRedirectGID
    	cfg.InboundInterceptionMode = rdrct.redirectMode
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 18 17:36:41 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  6. internal/bucket/lifecycle/delmarker-expiration.go

    package lifecycle
    
    import (
    	"encoding/xml"
    	"time"
    )
    
    var errInvalidDaysDelMarkerExpiration = Errorf("Days must be a positive integer with DelMarkerExpiration")
    
    // DelMarkerExpiration used to xml encode/decode ILM action by the same name
    type DelMarkerExpiration struct {
    	XMLName xml.Name `xml:"DelMarkerExpiration"`
    	Days    int      `xml:"Days,omitempty"`
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  7. cmd/test-utils_test.go

    	queryStr := strings.ReplaceAll(query.Encode(), "+", "%20")
    	canonicalRequest := getCanonicalRequest(extractedSignedHeaders, unsignedPayload, queryStr, req.URL.Path, req.Method)
    	stringToSign := getStringToSign(canonicalRequest, date, scope)
    	signingKey := getSigningKey(secretAccessKey, date, region, serviceS3)
    	signature := getSignature(signingKey, stringToSign)
    
    	req.URL.RawQuery = query.Encode()
    
    	// Add signature header to RawQuery.
    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)
  8. cmd/bucket-versioning-handler.go

    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	// Call site replication hook.
    	//
    	// We encode the xml bytes as base64 to ensure there are no encoding
    	// errors.
    	cfgStr := base64.StdEncoding.EncodeToString(configData)
    	replLogIf(ctx, globalSiteReplicationSys.BucketMetaHook(ctx, madmin.SRBucketMeta{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 5K bytes
    - Viewed (0)
  9. cmd/metrics-v3-handler.go

    		contentType := r.Header.Get("Content-Type")
    		if contentType == "application/json" {
    			w.Header().Set("Content-Type", "application/json")
    			jsonEncoder := json.NewEncoder(w)
    			jsonEncoder.Encode(metrics)
    			return
    		}
    
    		// If not JSON, return plain text. We format it as a markdown table for
    		// readability.
    		w.Header().Set("Content-Type", "text/plain")
    		var b strings.Builder
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 17:37:57 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  10. cni/pkg/nodeagent/net.go

    	}
    
    	for uid, wl := range res {
    		s.currentPodSnapshot.UpsertPodCacheWithNetns(uid, wl)
    	}
    	return nil
    }
    
    func realDependencies() *dep.RealDependencies {
    	return &dep.RealDependencies{
    		CNIMode:          false, // we are in cni, but as we do the netns ourselves, we should keep this as false.
    		NetworkNamespace: "",
    	}
    }
    
    // Remove pod from mesh: pod is not deleted, we just want to remove it from the mesh.
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 12.2K bytes
    - Viewed (1)
Back to top