Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for Project (0.19 sec)

  1. istioctl/pkg/xds/google.go

    )
    
    type meshAuthCredentials struct {
    	k8sCreds credentials.PerRPCCredentials
    	gcpCreds credentials.PerRPCCredentials
    	project  string
    }
    
    func (c *meshAuthCredentials) GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error) {
    	ret := map[string]string{
    		"x-goog-user-project": c.project,
    	}
    	if err := updateAuthHdrs(ctx, uri, "k8s", c.k8sCreds, ret, "x-mesh-authorization"); err != nil {
    		return nil, err
    	}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Nov 14 20:23:34 GMT 2022
    - 3.4K bytes
    - Viewed (0)
  2. cmd/update-notifier.go

    	}
    
    	// Return the nicely colored and formatted update message.
    	return colorizeUpdateMessage(downloadURL, newerThan)
    }
    
    // colorizeUpdateMessage - inspired from Yeoman project npm package https://github.com/yeoman/update-notifier
    func colorizeUpdateMessage(updateString string, newerThan string) string {
    	msgLine1Fmt := " You are running an older version of MinIO released %s "
    	msgLine2Fmt := " Update: %s "
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Mar 09 03:07:08 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  3. cmd/warm-backend-gcs.go

    		return err
    	}
    
    	reason := googleAPIErr.Errors[0].Reason
    	message := googleAPIErr.Errors[0].Message
    
    	switch reason {
    	case "required":
    		// Anonymous users does not have storage.xyz access to project 123.
    		fallthrough
    	case "keyInvalid":
    		fallthrough
    	case "forbidden":
    		err = PrefixAccessDenied{
    			Bucket: bucket,
    			Object: object,
    		}
    	case "invalid":
    		err = BucketNameInvalid{
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  4. cmd/sts-handlers_test.go

                            "projecta",
                            "projectb"
                        ]
                    }
                }
            }
        ]
    }`
    
    	policyProjectsMap = map[string]string{
    		// grants access to bucket `projecta` if user is in group `projecta`
    		"projecta": policyProjectA,
    
    		// grants access to bucket `projectb` if user is in group `projectb`
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 85.7K bytes
    - Viewed (0)
  5. cmd/generic-handlers.go

    func setRequestLimitMiddleware(h http.Handler) http.Handler {
    	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		tc, ok := r.Context().Value(mcontext.ContextTraceKey).(*mcontext.TraceCtxt)
    
    		// Reject unsupported reserved metadata first before validation.
    		if containsReservedMetadata(r.Header) {
    			if ok {
    				tc.FuncName = "handler.ValidRequest"
    				tc.ResponseRecorder.LogErrBody = true
    			}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 11 01:08:52 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  6. cmd/admin-handlers.go

    // - errOnly entries are to be traced, not status code 2xx, 3xx.
    // - madmin.TraceInfo type is asked by opts
    func shouldTrace(trcInfo madmin.TraceInfo, opts madmin.ServiceTraceOpts) (shouldTrace bool) {
    	// Reject all unwanted types.
    	want := opts.TraceTypes()
    	if !want.Contains(trcInfo.TraceType) {
    		return false
    	}
    
    	isHTTP := trcInfo.TraceType.Overlaps(madmin.TraceInternal|madmin.TraceS3) && trcInfo.HTTP != nil
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 97.3K bytes
    - Viewed (2)
  7. istioctl/pkg/multixds/google.go

    	ret := &xdsAddr{host: u.Host}
    	if !strings.HasSuffix(ret.host, ":443") {
    		ret.host += ":443"
    	}
    	const projSeg = "/projects/"
    	i := strings.Index(u.Path, projSeg)
    	if i == -1 {
    		return nil, fmt.Errorf("webhook URL %s doesn't contain the projects segment", u)
    	}
    	i += len(projSeg)
    	j := strings.IndexByte(u.Path[i:], '/')
    	if j == -1 {
    		return nil, fmt.Errorf("webhook URL %s is malformed", u)
    	}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Jun 06 03:39:27 GMT 2022
    - 1.5K bytes
    - Viewed (1)
  8. internal/rest/client.go

    func exponentialBackoffWait(r *rand.Rand, unit, cap time.Duration) func(uint) time.Duration {
    	if unit > time.Hour {
    		// Protect against integer overflow
    		panic("unit cannot exceed one hour")
    	}
    	return func(attempt uint) time.Duration {
    		if attempt > 16 {
    			// Protect against integer overflow
    			attempt = 16
    		}
    		// sleep = random_between(unit, min(cap, base * 2 ** attempt))
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 14K bytes
    - Viewed (0)
  9. cmd/bucket-object-lock.go

    			return nil
    		case objectlock.RetGovernance:
    			// In governance mode, users can't overwrite or delete an object
    			// version or alter its lock settings unless they have special
    			// permissions. With governance mode, you protect objects against
    			// being deleted by most users, but you can still grant some users
    			// permission to alter the retention settings or delete the object
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  10. cmd/iam-store.go

    	cache := store.lock()
    	defer store.unlock()
    
    	accessKey := cred.AccessKey
    	parentUser := cred.ParentUser
    
    	// Found newly requested service account, to be an existing account -
    	// reject such operation (updates to the service account are handled in
    	// a different API).
    	if su, found := cache.iamUsersMap[accessKey]; found {
    		scred := su.Credentials
    		if scred.ParentUser != parentUser {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Apr 27 10:04:10 GMT 2024
    - 75.2K bytes
    - Viewed (2)
Back to top