Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 221 for init (0.17 sec)

  1. internal/logger/logger.go

    	sort.Strings(paths)
    	n := uniq(sort.StringSlice(paths))
    	return paths[:n]
    }
    
    // Init sets the trimStrings to possible GOPATHs
    // and GOROOT directories. Also append github.com/minio/minio
    // This is done to clean up the filename, when stack trace is
    // displayed when an error happens.
    func Init(goPath string, goRoot string) {
    	var goPathList []string
    	var goRootList []string
    	var defaultgoPathList []string
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  2. operator/cmd/mesh/manifest-generate_test.go

    	outputDir                   string
    	fileSelect                  []string
    	diffSelect                  string
    	diffIgnore                  string
    	chartSource                 chartSourceType
    }
    
    func init() {
    	kubeClientFunc = func() (kube.CLIClient, error) {
    		return nil, nil
    	}
    }
    
    func extract(gzipStream io.Reader, destination string) error {
    	uncompressedStream, err := gzip.NewReader(gzipStream)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 18 18:16:49 GMT 2024
    - 43.5K bytes
    - Viewed (0)
  3. cmd/erasure-metadata.go

    	return evalDisks(disks, mErrs), err
    }
    
    func commonParity(parities []int, defaultParityCount int) int {
    	N := len(parities)
    
    	occMap := make(map[int]int)
    	for _, p := range parities {
    		occMap[p]++
    	}
    
    	var maxOcc, cparity int
    	for parity, occ := range occMap {
    		if parity == -1 {
    			// Ignore non defined parity
    			continue
    		}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 19.2K bytes
    - Viewed (1)
  4. cmd/object-api-datatypes.go

    }
    
    type objectAttributesParts struct {
    	IsTruncated          bool
    	MaxParts             int
    	NextPartNumberMarker int
    	PartNumberMarker     int
    	PartsCount           int
    	Parts                []*objectAttributesPart `xml:"Part"`
    }
    
    type objectAttributesPart struct {
    	PartNumber     int
    	Size           int64
    	ChecksumCRC32  string `xml:",omitempty"`
    	ChecksumCRC32C string `xml:",omitempty"`
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 20.8K bytes
    - Viewed (0)
  5. src/bufio/scan.go

    	maxTokenSize int       // Maximum size of a token; modified by tests.
    	token        []byte    // Last token returned by split.
    	buf          []byte    // Buffer used as argument to split.
    	start        int       // First non-processed byte in buf.
    	end          int       // End of data in buf.
    	err          error     // Sticky error.
    	empties      int       // Count of successive empty tokens.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  6. cmd/metacache-entries.go

    }
    
    type metadataResolutionParams struct {
    	dirQuorum int // Number if disks needed for a directory to 'exist'.
    	objQuorum int // Number of disks needed for an object to 'exist'.
    
    	// An optimization request only an 'n' amount of versions from xl.meta
    	// to avoid resolving all versions to figure out the latest 'version'
    	// for ListObjects, ListObjectsV2
    	requestedVersions int
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:43:43 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  7. src/archive/zip/struct.go

    	return time.Date(
    		// date bits 0-4: day of month; 5-8: month; 9-15: years since 1980
    		int(dosDate>>9+1980),
    		time.Month(dosDate>>5&0xf),
    		int(dosDate&0x1f),
    
    		// time bits 0-4: second/2; 5-10: minute; 11-15: hour
    		int(dosTime>>11),
    		int(dosTime>>5&0x3f),
    		int(dosTime&0x1f*2),
    		0, // nanoseconds
    
    		time.UTC,
    	)
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 12.1K bytes
    - Viewed (0)
  8. internal/config/storageclass/storage-class.go

    func DefaultParityBlocks(drive int) int {
    	switch drive {
    	case 1:
    		return 0
    	case 3, 2:
    		return 1
    	case 4, 5:
    		return 2
    	case 6, 7:
    		return 3
    	default:
    		return 4
    	}
    }
    
    // LookupConfig - lookup storage class config and override with valid environment settings if any.
    func LookupConfig(kvs config.KVS, setDriveCount int) (cfg Config, err error) {
    	cfg = Config{}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  9. cmd/erasure-healing-common_test.go

    	"testing"
    	"time"
    
    	"github.com/minio/madmin-go/v3"
    )
    
    // Returns the latest updated FileInfo files and error in case of failure.
    func getLatestFileInfo(ctx context.Context, partsMetadata []FileInfo, defaultParityCount int, errs []error) (FileInfo, error) {
    	// There should be at least half correct entries, if not return failure
    	expectedRQuorum := len(partsMetadata) / 2
    	if defaultParityCount == 0 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 23K bytes
    - Viewed (1)
  10. cmd/batch-expire.go

    //go:generate msgp -file $GOFILE
    
    // BatchJobExpirePurge type accepts non-negative versions to be retained
    type BatchJobExpirePurge struct {
    	line, col      int
    	RetainVersions int `yaml:"retainVersions" json:"retainVersions"`
    }
    
    var _ yaml.Unmarshaler = &BatchJobExpirePurge{}
    
    // UnmarshalYAML - BatchJobExpirePurge extends unmarshal to extract line, col
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 21K bytes
    - Viewed (1)
Back to top