Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 60 for regex (0.18 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. operator/cmd/mesh/profile-dump_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package mesh
    
    import (
    	"os"
    	"path/filepath"
    	"regexp"
    	"testing"
    
    	"github.com/kylelemons/godebug/diff"
    
    	"istio.io/istio/operator/pkg/util"
    )
    
    func TestProfileDump(t *testing.T) {
    	testDataDir := filepath.Join(operatorRootDir, "cmd/mesh/testdata/profile-dump")
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Jan 20 11:44:25 GMT 2022
    - 3.7K bytes
    - Viewed (0)
  7. misc/linkcheck/linkcheck.go

    // that it's seen and prints a report of missing links at the end.
    package main
    
    import (
    	"errors"
    	"flag"
    	"fmt"
    	"io"
    	"log"
    	"net/http"
    	"os"
    	"regexp"
    	"strings"
    	"sync"
    )
    
    var (
    	root    = flag.String("root", "http://localhost:6060", "Root to crawl")
    	verbose = flag.Bool("verbose", false, "verbose")
    )
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Oct 06 15:53:04 GMT 2021
    - 3.9K bytes
    - Viewed (0)
  8. internal/logger/utils.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package logger
    
    import (
    	"context"
    	"errors"
    	"fmt"
    	"net/http"
    	"regexp"
    	"runtime"
    
    	"github.com/minio/minio/internal/color"
    )
    
    var ansiRE = regexp.MustCompile("(\x1b[^m]*m)")
    
    // Print ANSI Control escape
    func ansiEscape(format string, args ...interface{}) {
    	Esc := "\x1b"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Aug 04 23:10:08 GMT 2022
    - 1.7K bytes
    - Viewed (0)
  9. tests/distinct_test.go

    package tests_test
    
    import (
    	"regexp"
    	"testing"
    
    	"gorm.io/gorm"
    	. "gorm.io/gorm/utils/tests"
    )
    
    func TestDistinct(t *testing.T) {
    	users := []User{
    		*GetUser("distinct", Config{}),
    		*GetUser("distinct", Config{}),
    		*GetUser("distinct", Config{}),
    		*GetUser("distinct-2", Config{}),
    		*GetUser("distinct-3", Config{}),
    	}
    	users[0].Age = 20
    
    	if err := DB.Create(&users).Error; err != nil {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 2.5K bytes
    - Viewed (0)
  10. 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)
Back to top