Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 52 for 9000 (0.13 sec)

  1. cmd/net.go

    	if i := strings.Index(host, "%"); i > -1 {
    		host = host[:i]
    	}
    	return net.ParseIP(host) != nil
    }
    
    // extractHostPort - extracts host/port from many address formats
    // such as, ":9000", "localhost:9000", "http://localhost:9000/"
    func extractHostPort(hostAddr string) (string, string, error) {
    	var addr, scheme string
    
    	if hostAddr == "" {
    		return "", "", errors.New("unable to process empty address")
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Mar 26 15:00:38 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  2. docs/site-replication/gen-oidc-sts-cred.go

    package main
    
    // This programs mocks user interaction against Dex IDP and generates STS
    // credentials. It is for MinIO testing purposes only.
    //
    // Run like:
    //
    // $ MINIO_ENDPOINT=http://localhost:9000 go run gen-oidc-sts-cred.go
    
    import (
    	"context"
    	"fmt"
    	"log"
    	"net/http"
    	"os"
    
    	cr "github.com/minio/minio-go/v7/pkg/credentials"
    	cmd "github.com/minio/minio/cmd"
    )
    
    func main() {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 29 01:27:09 GMT 2022
    - 2.3K bytes
    - Viewed (0)
  3. docs/extensions/s3zip/examples/minio-go/main.go

    package main
    
    import (
    	"context"
    	"io"
    	"log"
    	"os"
    
    	"github.com/minio/minio-go/v7"
    	"github.com/minio/minio-go/v7/pkg/credentials"
    )
    
    func main() {
    	s3Client, err := minio.New("minio-server-address:9000", &minio.Options{
    		Creds: credentials.NewStaticV4("access-key", "secret-key", ""),
    	})
    	if err != nil {
    		log.Fatalln(err)
    	}
    
    	var opts minio.GetObjectOptions
    
    	// Add extract header to request:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jun 14 18:04:14 GMT 2021
    - 694 bytes
    - Viewed (0)
  4. internal/config/subnet/config.go

    	"sync"
    
    	"github.com/minio/minio/internal/config"
    	"github.com/minio/pkg/v2/env"
    	xnet "github.com/minio/pkg/v2/net"
    )
    
    const (
    	baseURL    = "https://subnet.min.io"
    	baseURLDev = "http://localhost:9000"
    )
    
    // DefaultKVS - default KV config for subnet settings
    var DefaultKVS = config.KVS{
    	config.KV{
    		Key:   config.License, // Deprecated Dec 2021
    		Value: "",
    	},
    	config.KV{
    		Key:   config.APIKey,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Nov 24 17:59:35 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  5. cmd/handler-utils_test.go

    	}{
    		{"/a/b/c", "test.mydomain.com", []string{"mydomain.com"}, "/test/a/b/c"},
    		{"/a/b/c", "[2001:0db8:85a3:0000:0000:8a2e:0370:7334]:17000", []string{"mydomain.com"}, "/a/b/c"},
    		{"/a/b/c", "[2001:0db8:85a3:0000:0000:8a2e:0370:7334]", []string{"mydomain.com"}, "/a/b/c"},
    		{"/a/b/c", "192.168.1.1:9000", []string{"mydomain.com"}, "/a/b/c"},
    		{"/a/b/c", "test.mydomain.com", []string{"notmydomain.com"}, "/a/b/c"},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  6. docs/sts/custom-token-identity.go

    	displayCreds bool
    
    	// Credential expiry duration
    	expiryDuration time.Duration
    
    	// Bucket to list
    	bucketToList string
    )
    
    func init() {
    	flag.StringVar(&stsEndpoint, "sts-ep", "http://localhost:9000", "STS endpoint")
    	flag.StringVar(&token, "t", "", "Token to use with AssumeRoleWithCustomToken STS API (required)")
    	flag.StringVar(&roleArn, "r", "", "RoleARN to use with the request (required)")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 27 00:58:09 GMT 2022
    - 3.4K bytes
    - Viewed (0)
  7. docs/sts/assume-role.go

    	// Bucket to list
    	bucketToList string
    
    	// Session policy file (FIXME: add support in minio-go)
    	sessionPolicyFile string
    )
    
    func init() {
    	flag.StringVar(&stsEndpoint, "sts-ep", "http://localhost:9000", "STS endpoint")
    	flag.StringVar(&minioUsername, "u", "", "MinIO Username")
    	flag.StringVar(&minioPassword, "p", "", "MinIO Password")
    	flag.BoolVar(&displayCreds, "d", false, "Only show generated credentials")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 12 16:09:55 GMT 2024
    - 4K bytes
    - Viewed (1)
  8. docs/sts/web-identity.go

    	}
    	dec := json.NewDecoder(resp.Body)
    	if err = dec.Decode(&d); err != nil {
    		return d, err
    	}
    	return d, nil
    }
    
    func init() {
    	flag.StringVar(&stsEndpoint, "sts-ep", "http://localhost:9000", "STS endpoint")
    	flag.StringVar(&configEndpoint, "config-ep",
    		"http://localhost:8080/auth/realms/minio/.well-known/openid-configuration",
    		"OpenID discovery document endpoint")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 19 09:13:33 GMT 2023
    - 7.8K bytes
    - Viewed (3)
  9. cmd/generic-handlers_test.go

    )
    
    // Tests request guess function for net/rpc requests.
    func TestGuessIsRPC(t *testing.T) {
    	if guessIsRPCReq(nil) {
    		t.Fatal("Unexpected return for nil request")
    	}
    
    	u, err := url.Parse("http://localhost:9000/minio/lock")
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	r := &http.Request{
    		Proto:  "HTTP/1.0",
    		Method: http.MethodPost,
    		URL:    u,
    	}
    	if !guessIsRPCReq(r) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  10. internal/http/server_test.go

    		certFn  certs.GetCertificateFunc
    	}{
    		{[]string{"127.0.0.1:9000"}, handler, nil},
    		{[]string{nonLoopBackIP + ":9000"}, handler, nil},
    		{[]string{"127.0.0.1:9000", nonLoopBackIP + ":9000"}, handler, nil},
    		{[]string{"127.0.0.1:9000"}, handler, getCert},
    		{[]string{nonLoopBackIP + ":9000"}, handler, getCert},
    		{[]string{"127.0.0.1:9000", nonLoopBackIP + ":9000"}, handler, getCert},
    	}
    
    	for i, testCase := range testCases {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Mar 27 15:10:40 GMT 2024
    - 2.7K bytes
    - Viewed (0)
Back to top