Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 25 for initialization (0.18 sec)

  1. src/bytes/example_test.go

    package bytes_test
    
    import (
    	"bytes"
    	"encoding/base64"
    	"fmt"
    	"io"
    	"os"
    	"sort"
    	"strconv"
    	"unicode"
    )
    
    func ExampleBuffer() {
    	var b bytes.Buffer // A Buffer needs no initialization.
    	b.Write([]byte("Hello "))
    	fmt.Fprintf(&b, "world!")
    	b.WriteTo(os.Stdout)
    	// Output: Hello world!
    }
    
    func ExampleBuffer_reader() {
    	// A Buffer can turn a string or a []byte into an io.Reader.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:40 GMT 2024
    - 15K bytes
    - Viewed (1)
  2. cmd/peer-rest-client.go

    		return !isNetworkError(err)
    	}
    	var gridConn atomic.Pointer[grid.Connection]
    
    	return &peerRESTClient{
    		host: peer, restClient: restClient, gridHost: gridHost,
    		gridConn: func() *grid.Connection {
    			// Lazy initialization of grid connection.
    			// When we create this peer client, the grid connection is likely not yet initialized.
    			if gridHost == "" {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 25.8K bytes
    - Viewed (0)
  3. internal/config/identity/openid/openid.go

    		}
    
    		p.JWKS.URL, err = xnet.ParseHTTPURL(jwksURL)
    		if err != nil {
    			return c, err
    		}
    
    		if p.RolePolicy != "" {
    			// RolePolicy is validated by IAM System during its
    			// initialization.
    
    			// Generate role ARN as combination of provider domain and
    			// prefix of client ID.
    			domain := configURLDomain
    			if domain == "" {
    				// Attempt to parse the JWKs URI.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Nov 16 04:42:31 GMT 2023
    - 16.5K bytes
    - Viewed (0)
  4. cmd/common-main.go

    		Path: globalCertsDir.Get(),
    	}
    	consoleCerts.GlobalCertsCADir = &consoleCerts.ConfigDir{
    		Path: globalCertsCADir.Get(),
    	}
    
    	// set certs before other console initialization
    	consoleapi.GlobalRootCAs, consoleapi.GlobalPublicCerts, consoleapi.GlobalTLSCertsManager = globalRootCAs, globalPublicCerts, globalTLSCerts
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 35.8K bytes
    - Viewed (2)
  5. cmd/warm-backend-s3.go

    		return nil, errors.New("AWS Role cannot be activated with static credentials or the web identity token file")
    	case conf.Bucket == "":
    		return nil, errors.New("no bucket name was provided")
    	}
    
    	// Credentials initialization
    	var creds *credentials.Credentials
    	switch {
    	case conf.AWSRole:
    		creds = credentials.New(&credentials.IAM{
    			Client: &http.Client{
    				Transport: NewHTTPTransport(),
    			},
    		})
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  6. cmd/local-locker.go

    	Writer          bool      // Bool whether write or read lock.
    	UID             string    // UID to uniquely identify request of client.
    	Timestamp       time.Time // Timestamp set at the time of initialization.
    	TimeLastRefresh time.Time // Timestamp for last lock refresh.
    	Source          string    // Contains line, function and filename requesting the lock.
    	Group           bool      // indicates if it was a group lock.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 19 22:54:46 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  7. cmd/prepare-storage.go

    		return nil, nil, errInvalidArgument
    	}
    
    	globalDeploymentIDPtr.Store(&format.ID)
    	return storageDisks, format, nil
    }
    
    // Format disks before initialization of object layer.
    func waitForFormatErasure(firstDisk bool, endpoints Endpoints, poolCount, setCount, setDriveCount int, deploymentID string) ([]StorageAPI, *formatErasureV3, error) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 11.1K bytes
    - Viewed (0)
  8. internal/crypto/metadata.go

    )
    
    const (
    	// MetaMultipart indicates that the object has been uploaded
    	// in multiple parts - via the S3 multipart API.
    	MetaMultipart = "X-Minio-Internal-Encrypted-Multipart"
    
    	// MetaIV is the random initialization vector (IV) used for
    	// the MinIO-internal key derivation.
    	MetaIV = "X-Minio-Internal-Server-Side-Encryption-Iv"
    
    	// MetaAlgorithm is the algorithm used to derive internal keys
    	// and encrypt the objects.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  9. cmd/iam.go

    }
    
    // Init - initializes config system by reading entries from config/iam
    func (sys *IAMSys) Init(ctx context.Context, objAPI ObjectLayer, etcdClient *etcd.Client, iamRefreshInterval time.Duration) {
    	bootstrapTraceMsg("IAM initialization started")
    	globalServerConfigMu.RLock()
    	s := globalServerConfig
    	globalServerConfigMu.RUnlock()
    
    	openidConfig, err := openid.LookupConfig(s,
    		NewHTTPTransport(), xhttp.DrainBody, globalSite.Region)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
  10. src/archive/zip/writer_test.go

    			})
    			w.Write(bigBuf)
    		}
    		zw.Close()
    	}
    
    	b.ReportAllocs()
    	// Run once and then reset the timer.
    	// This effectively discards the very large initial flate setup cost,
    	// as well as the initialization of bigBuf.
    	runOnce(&bytes.Buffer{})
    	b.ResetTimer()
    
    	b.RunParallel(func(pb *testing.PB) {
    		var buf bytes.Buffer
    		for pb.Next() {
    			runOnce(&buf)
    		}
    	})
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 15 19:04:06 GMT 2023
    - 14.1K bytes
    - Viewed (0)
Back to top