Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 51 for regex (0.13 sec)

  1. cni/pkg/nodeagent/podcgroupns.go

    // regexes listed here have to exclusively match a cgroup path
    // the regexes must include two named groups "poduid" and "containerid"
    // if the regex needs to exclude certain substrings, the "mustnotmatch" group can be used
    // nolint: lll
    var cgroupREs = []*regexp.Regexp{
    	// the regex used to parse out the pod UID and container ID from a
    	// cgroup name. It assumes that any ".scope" suffix has been trimmed off
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 11K bytes
    - Viewed (0)
  2. docs/debugging/pprofgoparser/main.go

    package main
    
    import (
    	"bufio"
    	"bytes"
    	"flag"
    	"fmt"
    	"log"
    	"math"
    	"os"
    	"path"
    	"regexp"
    	"strconv"
    	"strings"
    	"time"
    )
    
    var (
    	goroutinesRE, searchRE *regexp.Regexp
    
    	// User input flags
    	searchText           string
    	goTime, less, margin time.Duration
    )
    
    func init() {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Mar 06 11:43:16 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  3. logger/sql.go

    var convertibleTypes = []reflect.Type{reflect.TypeOf(time.Time{}), reflect.TypeOf(false), reflect.TypeOf([]byte{})}
    
    // RegEx matches only numeric values
    var numericPlaceholderRe = regexp.MustCompile(`\$\d+\$`)
    
    func isNumeric(k reflect.Kind) bool {
    	switch k {
    	case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
    		return true
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Mar 21 08:00:02 GMT 2024
    - 5K bytes
    - Viewed (0)
  4. operator/cmd/mesh/test-util_test.go

    func (o *ObjectSet) size() int {
    	return len(o.keySlice)
    }
    
    // nameMatches returns a subset of o where objects names match the given regex.
    func (o *ObjectSet) nameMatches(nameRegex string) *ObjectSet {
    	ret := &ObjectSet{}
    	for k, v := range o.objMap {
    		_, _, objName := object.FromHash(k)
    		m, err := regexp.MatchString(nameRegex, objName)
    		if err != nil {
    			log.Error(err.Error())
    			continue
    		}
    		if m {
    			ret.append(v)
    		}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  5. istioctl/pkg/writer/envoy/configdump/listener.go

    	}
    	if match.GetPath() != "" {
    		conds = append(conds, match.GetPath())
    	}
    	if match.GetSafeRegex() != nil {
    		conds = append(conds, fmt.Sprintf("regex %s", match.GetSafeRegex().Regex))
    	}
    	// Ignore headers
    	return strings.Join(conds, " ")
    }
    
    // PrintListenerDump prints the relevant listeners in the config dump to the ConfigWriter stdout
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Nov 29 12:37:14 GMT 2023
    - 18.1K bytes
    - Viewed (0)
  6. internal/config/cache/remote.go

    package cache
    
    import (
    	"net/http"
    	"regexp"
    	"strconv"
    	"time"
    
    	"github.com/minio/minio/internal/amztime"
    	xhttp "github.com/minio/minio/internal/http"
    )
    
    //go:generate msgp -file=$GOFILE
    
    // ObjectInfo represents the object information cached remotely
    type ObjectInfo struct {
    	Key        string    `json:"key"`
    	Bucket     string    `json:"bucket"`
    	ETag       string    `json:"etag"`
    	ModTime    time.Time `json:"modTime"`
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Nov 22 21:46:17 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  7. schema/naming.go

    package schema
    
    import (
    	"crypto/sha1"
    	"encoding/hex"
    	"regexp"
    	"strings"
    	"unicode/utf8"
    
    	"github.com/jinzhu/inflection"
    )
    
    // Namer namer interface
    type Namer interface {
    	TableName(table string) string
    	SchemaName(table string) string
    	ColumnName(table, column string) string
    	JoinTableName(joinTable string) string
    	RelationshipFKName(Relationship) string
    	CheckerName(table, column string) string
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Oct 30 09:15:49 GMT 2023
    - 5.2K bytes
    - Viewed (0)
  8. cmd/http-tracer.go

    package cmd
    
    import (
    	"context"
    	"net"
    	"net/http"
    	"reflect"
    	"regexp"
    	"runtime"
    	"strconv"
    	"strings"
    	"time"
    
    	"github.com/minio/madmin-go/v3"
    	"github.com/minio/minio/internal/handlers"
    	xhttp "github.com/minio/minio/internal/http"
    	"github.com/minio/minio/internal/mcontext"
    )
    
    var ldapPwdRegex = regexp.MustCompile("(^.*?)LDAPPassword=([^&]*?)(&(.*?))?$")
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  9. migrator/migrator.go

    package migrator
    
    import (
    	"context"
    	"database/sql"
    	"errors"
    	"fmt"
    	"reflect"
    	"regexp"
    	"strconv"
    	"strings"
    	"time"
    
    	"gorm.io/gorm"
    	"gorm.io/gorm/clause"
    	"gorm.io/gorm/logger"
    	"gorm.io/gorm/schema"
    )
    
    // This regular expression seeks to find a sequence of digits (\d+) among zero or more non-digit characters (\D*),
    // with a possible trailing non-digit character (\D?).
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Apr 26 07:15:49 GMT 2024
    - 29K bytes
    - Viewed (0)
  10. chainable_api.go

    package gorm
    
    import (
    	"fmt"
    	"regexp"
    	"strings"
    
    	"gorm.io/gorm/clause"
    	"gorm.io/gorm/utils"
    )
    
    // Model specify the model you would like to run db operations
    //
    //	// update all users's name to `hello`
    //	db.Model(&User{}).Update("name", "hello")
    //	// if user's primary key is non-blank, will use it as condition, then will only update that user's name to `hello`
    //	db.Model(&user).Update("name", "hello")
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Apr 17 03:38:55 GMT 2024
    - 14.3K bytes
    - Viewed (1)
Back to top