Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for isinstance (0.17 sec)

  1. cmd/test-utils_test.go

    	testServer.Server.TLS = config
    	testServer.Server.StartTLS()
    	return testServer
    }
    
    // Starts the test server and returns the TestServer instance.
    func StartTestServer(t TestErrHandler, instanceType string) TestServer {
    	// create an instance of TestServer.
    	testServer := UnstartedTestServer(t, instanceType)
    	testServer.Server.Start()
    	return testServer
    }
    
    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)
  2. cmd/admin-bucket-handlers.go

    	ctx := r.Context()
    
    	vars := mux.Vars(r)
    	bucket := pathClean(vars["bucket"])
    	update := r.Form.Get("update") == "true"
    
    	// Get current object layer instance.
    	objectAPI, _ := validateAdminReq(ctx, w, r, policy.SetBucketTargetAction)
    	if objectAPI == nil {
    		return
    	}
    
    	// Check if bucket exists.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  3. internal/rest/client.go

    func removeEmptyPort(host string) string {
    	if hasPort(host) {
    		return strings.TrimSuffix(host, ":")
    	}
    	return host
    }
    
    // Copied from http.NewRequest but implemented to ensure we reuse `url.URL` instance.
    func (c *Client) newRequest(ctx context.Context, u url.URL, body io.Reader) (*http.Request, error) {
    	rc, ok := body.(io.ReadCloser)
    	if !ok && body != nil {
    		rc = io.NopCloser(body)
    	}
    	req := &http.Request{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 14.4K bytes
    - Viewed (0)
  4. istioctl/pkg/ztunnelconfig/ztunnelconfig.go

    		Long:  `Retrieve information about certificates for the Ztunnel instance.`,
    		Example: `  # Retrieve summary about workload configuration for a randomly chosen ztunnel.
      istioctl x ztunnel-config certificates
    
      # Retrieve full certificate dump of workloads for a given Ztunnel instance.
      istioctl x ztunnel-config certificates <ztunnel-name[.namespace]> -o json
    `,
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 01 13:11:40 GMT 2024
    - 22.2K bytes
    - Viewed (0)
  5. cmd/bucket-targets.go

    		sys.arnErrsMap[arn] = arnErrs{
    			updateInProgress: v.updateInProgress,
    			count:            v.count + 1,
    		}
    	}
    }
    
    // GetRemoteTargetClient returns minio-go client for replication target instance
    func (sys *BucketTargetSys) GetRemoteTargetClient(bucket, arn string) *TargetClient {
    	sys.RLock()
    	tgt := sys.arnRemotesMap[arn]
    	sys.RUnlock()
    
    	if tgt.Client != nil {
    		return tgt.Client
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  6. cmd/update.go

    	return env.Get("KUBERNETES_SERVICE_HOST", "") != ""
    }
    
    // IsBOSH returns true if minio is deployed from a bosh package
    func IsBOSH() bool {
    	// "/var/vcap/bosh" exists in BOSH deployed instance.
    	_, err := os.Stat("/var/vcap/bosh")
    	if osIsNotExist(err) {
    		return false
    	}
    
    	// Log error, as we will not propagate it to caller
    	internalLogIf(GlobalContext, err)
    
    	return err == nil
    }
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  7. cmd/object-handlers.go

    		dstRecords, err = globalDNSConfig.Get(dstBucket)
    		if err != nil {
    			writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    			return
    		}
    
    		// Send PutObject request to appropriate instance (in federated deployment)
    		core, rerr := getRemoteInstanceClient(r, getHostFromSrv(dstRecords))
    		if rerr != nil {
    			writeErrorResponse(ctx, w, toAPIError(ctx, rerr), r.URL)
    			return
    		}
    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)
  8. cmd/admin-handlers-users.go

    func (a adminAPIHandlers) GetUserInfo(w http.ResponseWriter, r *http.Request) {
    	ctx := r.Context()
    
    	vars := mux.Vars(r)
    	name := vars["accessKey"]
    
    	// Get current object layer instance.
    	objectAPI := newObjectLayerFn()
    	if objectAPI == nil || globalNotificationSys == nil {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrServerNotInitialized), r.URL)
    		return
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 12:41:13 GMT 2024
    - 77.5K bytes
    - Viewed (0)
  9. cmd/erasure-sets.go

    	erasureDisksMu sync.RWMutex
    
    	// Re-ordered list of disks per set.
    	erasureDisks [][]StorageAPI
    
    	// Distributed locker clients.
    	erasureLockers setsDsyncLockers
    
    	// Distributed lock owner (constant per running instance).
    	erasureLockOwner string
    
    	// List of endpoints provided on the command line.
    	endpoints PoolEndpoints
    
    	// String version of all the endpoints, an optimization
    	// to avoid url.String() conversion taking CPU on
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 37.7K bytes
    - Viewed (5)
  10. cmd/admin-handlers-idp-ldap.go

    }
    
    // ListAccessKeysLDAP - GET /minio/admin/v3/idp/ldap/list-access-keys
    func (a adminAPIHandlers) ListAccessKeysLDAP(w http.ResponseWriter, r *http.Request) {
    	ctx := r.Context()
    
    	// Get current object layer instance.
    	objectAPI := newObjectLayerFn()
    	if objectAPI == nil || globalNotificationSys == nil {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrServerNotInitialized), r.URL)
    		return
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 13.3K bytes
    - Viewed (0)
Back to top