Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 229 for Post (0.22 sec)

  1. cmd/license-update.go

    	// the subnet license renewal api renews the license only
    	// if required e.g. when it is expiring soon
    	url := globalSubnetConfig.BaseURL + licRenewPath
    
    	resp, err := globalSubnetConfig.Post(url, nil)
    	if err != nil {
    		subnetLogIf(ctx, fmt.Errorf("error from %s: %w", url, err))
    		return
    	}
    
    	r := gjson.Parse(resp).Get("license_v2")
    	if r.Index == 0 {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  2. tests/postgres_test.go

    	}
    
    	DB.Migrator().DropTable(&Post{}, &Category{}, "post_categories")
    	DB.AutoMigrate(&Post{}, &Category{})
    
    	post := Post{
    		Title: "Hello World",
    		Categories: []*Category{
    			{Title: "Coding"},
    			{Title: "Golang"},
    		},
    	}
    
    	if err := DB.Create(&post).Error; err != nil {
    		t.Errorf("Failed, got error: %v", err)
    	}
    }
    
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Sat Oct 08 09:16:32 GMT 2022
    - 6.4K bytes
    - Viewed (3)
  3. cmd/storage-rest-client.go

    // Returns a storage rest client.
    func newStorageRESTClient(endpoint Endpoint, healthCheck bool, gm *grid.Manager) (*storageRESTClient, error) {
    	serverURL := &url.URL{
    		Scheme: endpoint.Scheme,
    		Host:   endpoint.Host,
    		Path:   path.Join(storageRESTPrefix, endpoint.Path, storageRESTVersion),
    	}
    
    	restClient := rest.NewClient(serverURL, globalInternodeTransport, newCachedAuthToken())
    
    	if healthCheck {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 26.1K bytes
    - Viewed (0)
  4. cmd/api-response.go

    func getObjectLocation(r *http.Request, domains []string, bucket, object string) string {
    	// unit tests do not have host set.
    	if r.Host == "" {
    		return path.Clean(r.URL.Path)
    	}
    	proto := handlers.GetSourceScheme(r)
    	if proto == "" {
    		proto = getURLScheme(globalIsTLS)
    	}
    	u := &url.URL{
    		Host:   r.Host,
    		Path:   path.Join(SlashSeparator, bucket, object),
    		Scheme: proto,
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 33.3K bytes
    - Viewed (2)
  5. cmd/bucket-lifecycle.go

    		DeleteMarker: oi.DeleteMarker,
    	}
    	// Notify object deleted event.
    	sendEvent(eventArgs{
    		EventName:  eventName,
    		BucketName: oi.Bucket,
    		Object:     objInfo,
    		UserAgent:  "Internal: [ILM-Expiry]",
    		Host:       globalLocalNodeName,
    	})
    
    	return nil
    }
    
    // generate an object name for transitioned object
    func genTransitionObjName(bucket string) (string, error) {
    	u, err := uuid.NewRandom()
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 17 05:09:58 GMT 2024
    - 33.1K bytes
    - Viewed (0)
  6. istioctl/pkg/util/handlers/handlers_test.go

    		},
    		{
    			proxyName:     "istio-security-post-install-1.2.2-bm9w2.istio-system",
    			namespace:     "istio-system",
    			wantPodName:   "istio-security-post-install-1.2.2-bm9w2",
    			wantNamespace: "istio-system",
    		},
    		{
    			proxyName:     "istio-security-post-install-1.2.2-bm9w2.istio-system",
    			namespace:     "",
    			wantPodName:   "istio-security-post-install-1.2.2-bm9w2",
    			wantNamespace: "istio-system",
    		},
    		{
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jun 09 18:17:49 GMT 2023
    - 6.6K bytes
    - Viewed (0)
  7. internal/config/subnet/subnet.go

    	if resp.StatusCode == http.StatusOK {
    		return respStr, nil
    	}
    
    	return respStr, fmt.Errorf("SUBNET request failed with code %d and error: %s", resp.StatusCode, respStr)
    }
    
    // Post submit 'payload' to specified URL
    func (c Config) Post(reqURL string, payload interface{}) (string, error) {
    	if !c.Registered() {
    		return "", errors.New("Deployment is not registered with SUBNET. Please register the deployment via 'mc license register ALIAS'")
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Feb 27 16:35:36 GMT 2023
    - 2.9K bytes
    - Viewed (0)
  8. cmd/admin-handlers.go

    			// In FS mode the drive names don't include the host.
    			// So mapping just the host should be sufficient.
    			hostAnonymizer[url.Host] = "server1"
    		}
    	}
    	return hostAnonymizer
    }
    
    // anonymizeHost - Add entries related to given endpoint in the host anonymizer map
    // The health report data can contain the hostname in various forms e.g. host, host:port,
    // host:port/drivepath, full url (http://host:port/drivepath)
    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)
  9. cmd/postpolicyform_test.go

    				t.Errorf("Expected success but failed with %s", err)
    			}
    			if !testCase.success && err == nil {
    				t.Errorf("Expected failed but succeeded")
    			}
    		})
    	}
    }
    
    // Test Post Policy parsing and checking conditions
    func TestPostPolicyForm(t *testing.T) {
    	pp := minio.NewPostPolicy()
    	pp.SetBucket("testbucket")
    	pp.SetContentType("image/jpeg")
    	pp.SetUserMetadata("uuid", "14365123651274")
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 8.9K bytes
    - Viewed (0)
  10. cmd/object-api-interface.go

    	VersionID            string    // Specifies the versionID which needs to be overwritten or read
    	MTime                time.Time // Is only set in POST/PUT operations
    	Expires              time.Time // Is only used in POST/PUT operations
    
    	DeleteMarker            bool // Is only set in DELETE operations for delete marker replication
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Apr 20 09:05:54 GMT 2024
    - 16.9K bytes
    - Viewed (0)
Back to top