Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 97 for userflags (0.33 sec)

  1. cmd/bucket-policy.go

    	if v := cloneHeader.Get("x-amz-signature-age"); v != "" {
    		args["signatureAge"] = []string{v}
    		cloneHeader.Del("x-amz-signature-age")
    	}
    
    	if userTags := cloneHeader.Get(xhttp.AmzObjectTagging); userTags != "" {
    		tag, _ := tags.ParseObjectTags(userTags)
    		if tag != nil {
    			tagMap := tag.ToMap()
    			keys := make([]string, 0, len(tagMap))
    			for k, v := range tagMap {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 8K bytes
    - Viewed (0)
  2. internal/bucket/replication/replication_test.go

    		// using config 2 - has more than one rule with overlapping prefixes
    		{ObjectOpts{Name: "xy/c3test", UserTags: "k1=v1"}, cfgs[2], true},                                                                       // 17. matches rule 1 for replication of content/metadata
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Mar 28 17:44:56 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  3. src/log/slog/logger_test.go

    	SetDefault(New(newDefaultHandler(loginternal.DefaultOutput)))
    	t.Cleanup(func() {
    		SetDefault(currentLogger)
    		log.SetOutput(currentLogWriter)
    		log.SetFlags(currentLogFlags)
    	})
    
    	// The default slog.Logger's handler uses the log package's default output.
    	log.SetOutput(&logbuf)
    	log.SetFlags(log.Lshortfile &^ log.LstdFlags)
    	Info("msg", "a", 1)
    	checkLogOutput(t, logbuf.String(), `logger_test.go:\d+: INFO msg a=1`)
    	logbuf.Reset()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 10 21:25:30 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  4. cmd/api-headers.go

    	// Set tag count if object has tags
    	if len(objInfo.UserTags) > 0 {
    		tags, _ := tags.ParseObjectTags(objInfo.UserTags)
    		if tags != nil && tags.Count() > 0 {
    			w.Header()[xhttp.AmzTagCount] = []string{strconv.Itoa(tags.Count())}
    			if opts.Tagging {
    				// This is MinIO only extension to return back tags along with the count.
    				w.Header()[xhttp.AmzObjectTagging] = []string{objInfo.UserTags}
    			}
    		}
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 28 04:44:00 UTC 2024
    - 7K bytes
    - Viewed (0)
  5. src/internal/trace/testdata/cmd/gotracevalidate/main.go

    		fmt.Fprintf(flag.CommandLine.Output(), "\n")
    		fmt.Fprintf(flag.CommandLine.Output(), "Accepts a trace at stdin and validates it.\n")
    		flag.PrintDefaults()
    	}
    	log.SetFlags(0)
    }
    
    var logEvents = flag.Bool("log-events", false, "whether to log events")
    
    func main() {
    	flag.Parse()
    
    	r, err := trace.NewReader(os.Stdin)
    	if err != nil {
    		log.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:31:29 UTC 2024
    - 984 bytes
    - Viewed (0)
  6. src/cmd/compile/main.go

    	"ppc64":    ppc64.Init,
    	"ppc64le":  ppc64.Init,
    	"riscv64":  riscv64.Init,
    	"s390x":    s390x.Init,
    	"wasm":     wasm.Init,
    }
    
    func main() {
    	// disable timestamps for reproducible output
    	log.SetFlags(0)
    	log.SetPrefix("compile: ")
    
    	buildcfg.Check()
    	archInit, ok := archInits[buildcfg.GOARCH]
    	if !ok {
    		fmt.Fprintf(os.Stderr, "compile: unknown architecture %q\n", buildcfg.GOARCH)
    		os.Exit(2)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 13 18:14:52 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  7. src/index/suffixarray/gen.go

    // using different input types.
    // See the comment at the top of sais.go for details.
    package main
    
    import (
    	"bytes"
    	"log"
    	"os"
    	"strings"
    )
    
    func main() {
    	log.SetPrefix("gen: ")
    	log.SetFlags(0)
    
    	data, err := os.ReadFile("sais.go")
    	if err != nil {
    		log.Fatal(err)
    	}
    
    	x := bytes.Index(data, []byte("\n\n"))
    	if x < 0 {
    		log.Fatal("cannot find blank line after copyright comment")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  8. cmd/object-api-datatypes.go

    		ContentEncoding:            o.ContentEncoding,
    		Expires:                    o.Expires,
    		StorageClass:               o.StorageClass,
    		ReplicationStatus:          o.ReplicationStatus,
    		UserTags:                   o.UserTags,
    		Parts:                      o.Parts,
    		Writer:                     o.Writer,
    		Reader:                     o.Reader,
    		PutObjReader:               o.PutObjReader,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  9. src/log/log.go

    // The flag bits are [Ldate], [Ltime], and so on.
    func Flags() int {
    	return std.Flags()
    }
    
    // SetFlags sets the output flags for the standard logger.
    // The flag bits are [Ldate], [Ltime], and so on.
    func SetFlags(flag int) {
    	std.SetFlags(flag)
    }
    
    // Prefix returns the output prefix for the standard logger.
    func Prefix() string {
    	return std.Prefix()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 23 22:56:07 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  10. internal/bucket/replication/filter.go

    			return err
    		}
    	}
    	return nil
    }
    
    // TestTags tests if the object tags satisfy the Filter tags requirement,
    // it returns true if there is no tags in the underlying Filter.
    func (f *Filter) TestTags(userTags string) bool {
    	if f.cachedTags == nil {
    		cached := make(map[string]string)
    		for _, t := range append(f.And.Tags, f.Tag) {
    			if !t.IsEmpty() {
    				cached[t.Key] = t.Value
    			}
    		}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Sep 28 18:25:46 UTC 2022
    - 3.5K bytes
    - Viewed (0)
Back to top