Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 282 for toTokens (0.25 sec)

  1. src/cmd/compile/internal/syntax/tokens.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package syntax
    
    type Token uint
    
    type token = Token
    
    //go:generate stringer -type token -linecomment tokens.go
    
    const (
    	_    token = iota
    	_EOF       // EOF
    
    	// names and literals
    	_Name    // name
    	_Literal // literal
    
    	// operators and operations
    	// _Operator is excluding '*' (_Star)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 14:52:38 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  2. hack/testdata/auth-tokens.csv

    Eric Chiang <******@****.***> 1500332355 -0700
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 18 23:03:15 UTC 2017
    - 36 bytes
    - Viewed (0)
  3. cmd/kubeadm/app/cmd/phases/init/bootstraptoken.go

    	if err != nil {
    		return err
    	}
    
    	if !data.SkipTokenPrint() {
    		tokens := data.Tokens()
    		if len(tokens) == 1 {
    			fmt.Printf("[bootstrap-token] Using token: %s\n", tokens[0])
    		} else if len(tokens) > 1 {
    			fmt.Printf("[bootstrap-token] Using tokens: %v\n", tokens)
    		}
    	}
    
    	fmt.Println("[bootstrap-token] Configuring bootstrap tokens, cluster-info ConfigMap, RBAC Roles")
    	// Create the default node bootstrap token
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 11 08:02:50 UTC 2022
    - 4.1K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/authentication/token/tokenfile/tokenfile.go

    	"k8s.io/apiserver/pkg/authentication/user"
    	"k8s.io/klog/v2"
    )
    
    type TokenAuthenticator struct {
    	tokens map[string]*user.DefaultInfo
    }
    
    // New returns a TokenAuthenticator for a single token
    func New(tokens map[string]*user.DefaultInfo) *TokenAuthenticator {
    	return &TokenAuthenticator{
    		tokens: tokens,
    	}
    }
    
    // NewCSV returns a TokenAuthenticator, populated from a CSV file.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 16 11:54:27 UTC 2020
    - 2.4K bytes
    - Viewed (0)
  5. platforms/native/testing-native/src/main/java/org/gradle/nativeplatform/test/xctest/internal/execution/XCTestSelection.java

                    return filter;
                } else if (tokens[2].isEmpty()) {
                    return testFilter;
                }
                return tokens[0] + "." + tokens[1] + "/" + tokens[2];
            } else if (tokens.length == 2 && !WILDCARD.equals(tokens[1])) {
                testSuiteCache.add(testFilter);
            }
    
            return testFilter;
        }
    
        public Collection<String> getIncludedTests() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  6. internal/bucket/bandwidth/reader.go

    			tokens = need + hdr
    
    		} else { // part of header can be accommodated
    			r.opts.HeaderSize -= b - 1
    			need = 1 // to ensure we read at least one byte for every Read
    			tokens = b
    		}
    	} else { // all tokens go towards payload
    		need = int(math.Min(float64(b), float64(need)))
    		tokens = need
    	}
    
    	err = r.throttle.WaitN(r.ctx, tokens)
    	if err != nil {
    		return
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Sep 06 03:21:59 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  7. internal/event/arn.go

    		return nil, &ErrInvalidARN{s}
    	}
    
    	tokens := strings.Split(s, ":")
    	if len(tokens) != 6 {
    		return nil, &ErrInvalidARN{s}
    	}
    
    	if tokens[4] == "" || tokens[5] == "" {
    		return nil, &ErrInvalidARN{s}
    	}
    
    	return &ARN{
    		region: tokens[3],
    		TargetID: TargetID{
    			ID:   tokens[4],
    			Name: tokens[5],
    		},
    	}, nil
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/server/resourceconfig/helpers.go

    		// Have already handled them above. Can skip them here.
    		if _, ok := groupVersionMatchers[key]; ok {
    			continue
    		}
    
    		tokens := strings.Split(key, "/")
    		if len(tokens) < 2 || len(tokens) > 3 {
    			continue
    		}
    		groupVersionString := tokens[0] + "/" + tokens[1]
    		groupVersion, err := schema.ParseGroupVersion(groupVersionString)
    		if err != nil {
    			return nil, fmt.Errorf("invalid key %s", key)
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 23 18:36:33 UTC 2022
    - 7.8K bytes
    - Viewed (0)
  9. pkg/serviceaccount/metrics.go

    	// LegacyTokensTotal is the number of legacy tokens used against apiserver.
    	legacyTokensTotal = metrics.NewCounter(
    		&metrics.CounterOpts{
    			Subsystem:      kubeServiceAccountSubsystem,
    			Name:           "legacy_tokens_total",
    			Help:           "Cumulative legacy service account tokens used",
    			StabilityLevel: metrics.ALPHA,
    		},
    	)
    
    	// StaleTokensTotal is the number of stale projected tokens not refreshed on
    	// client side.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 03:52:06 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/phases/bootstraptoken/node/token_test.go

    		name         string
    		failIfExists bool
    		tokens       []bootstraptokenv1.BootstrapToken
    		wantErr      bool
    	}{
    		{
    			name:         "token is nil",
    			failIfExists: true,
    			tokens:       []bootstraptokenv1.BootstrapToken{},
    			wantErr:      false,
    		},
    		{
    			name:         "create secret which does not exist",
    			failIfExists: true,
    			tokens: []bootstraptokenv1.BootstrapToken{
    				{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Sep 28 08:42:29 UTC 2023
    - 3.4K bytes
    - Viewed (0)
Back to top