Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 61 for Tags (0.2 sec)

  1. tests/multi_primary_keys_test.go

    	}
    
    	var tags []Tag
    	DB.Model(&blog).Association("Tags").Find(&tags)
    	if !compareTags(tags, []string{"tag1", "tag2", "tag3"}) {
    		t.Fatalf("Should find 3 tags")
    	}
    
    	var blog1 Blog
    	DB.Preload("Tags").Find(&blog1)
    	if !compareTags(blog1.Tags, []string{"tag1", "tag2", "tag3"}) {
    		t.Fatalf("Preload many2many relations")
    	}
    
    	// Replace
    	tag5 := &Tag{Locale: "ZH", Value: "tag5"}
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 12.8K bytes
    - Viewed (0)
  2. cmd/batch-expire_gen.go

    					return
    				}
    			}
    		case "Tags":
    			var zb0002 uint32
    			zb0002, err = dc.ReadArrayHeader()
    			if err != nil {
    				err = msgp.WrapError(err, "Tags")
    				return
    			}
    			if cap(z.Tags) >= int(zb0002) {
    				z.Tags = (z.Tags)[:zb0002]
    			} else {
    				z.Tags = make([]BatchJobKV, zb0002)
    			}
    			for za0001 := range z.Tags {
    				err = z.Tags[za0001].DecodeMsg(dc)
    				if err != nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Dec 02 10:51:33 GMT 2023
    - 19.8K bytes
    - Viewed (0)
  3. internal/bucket/replication/and.go

    )
    
    // And - a tag to combine a prefix and multiple tags for replication configuration rule.
    type And struct {
    	XMLName xml.Name `xml:"And" json:"And"`
    	Prefix  string   `xml:"Prefix,omitempty" json:"Prefix,omitempty"`
    	Tags    []Tag    `xml:"Tag,omitempty" json:"Tag,omitempty"`
    }
    
    var errDuplicateTagKey = Errorf("Duplicate Tag Keys are not allowed")
    
    // isEmpty returns true if Tags field is null
    func (a And) isEmpty() bool {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 1.8K bytes
    - Viewed (0)
  4. cmd/batch-rotate_gen.go

    				return
    			}
    		case "Tags":
    			var zb0002 uint32
    			zb0002, err = dc.ReadArrayHeader()
    			if err != nil {
    				err = msgp.WrapError(err, "Tags")
    				return
    			}
    			if cap(z.Tags) >= int(zb0002) {
    				z.Tags = (z.Tags)[:zb0002]
    			} else {
    				z.Tags = make([]BatchJobKV, zb0002)
    			}
    			for za0001 := range z.Tags {
    				err = z.Tags[za0001].DecodeMsg(dc)
    				if err != nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Dec 02 10:51:33 GMT 2023
    - 27.1K bytes
    - Viewed (0)
  5. internal/bucket/lifecycle/and.go

    	x := make(map[string]struct{}, len(a.Tags))
    
    	for _, t := range a.Tags {
    		if _, has := x[t.Key]; has {
    			return true
    		}
    		x[t.Key] = struct{}{}
    	}
    
    	return false
    }
    
    // BySize returns true when sz satisfies a
    // ObjectSizeLessThan/ObjectSizeGreaterthan or a logical AND of these predicates
    // Note: And combines size and other predicates like Tags, Prefix, etc. This
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  6. istioctl/pkg/tag/tag.go

    	cmd := &cobra.Command{
    		Use:   "tag",
    		Short: "Command group used to interact with revision tags",
    		Long: `Command group used to interact with revision tags. Revision tags allow for the creation of mutable aliases
    referring to control plane revisions for sidecar injection.
    
    With revision tags, rather than relabeling a namespace from "istio.io/rev=revision-a" to "istio.io/rev=revision-b" to
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Apr 02 08:32:06 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  7. internal/logger/audit.go

    		entry.API.TimeToResponseInNS = strconv.FormatInt(timeToResponse.Nanoseconds(), 10)
    		// We hold the lock, so we cannot call reqInfo.GetTagsMap().
    		tags := make(map[string]interface{}, len(reqInfo.tags))
    		for _, t := range reqInfo.tags {
    			tags[t.Key] = t.Val
    		}
    		entry.Tags = tags
    		// ignore cases for ttfb when its zero.
    		if timeToFirstByte != 0 {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  8. internal/bucket/lifecycle/filter_test.go

    func TestTestTags(t *testing.T) {
    	noTags := Filter{
    		set: true,
    		And: And{
    			Tags: []Tag{},
    		},
    		andSet: true,
    	}
    
    	oneTag := Filter{
    		set: true,
    		And: And{
    			Tags: []Tag{{Key: "FOO", Value: "1"}},
    		},
    		andSet: true,
    	}
    
    	twoTags := Filter{
    		set: true,
    		And: And{
    			Tags: []Tag{{Key: "FOO", Value: "1"}, {Key: "BAR", Value: "2"}},
    		},
    		andSet: true,
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Feb 27 00:01:20 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  9. cmd/batch-replicate.go

    	CreatedAfter  time.Time     `yaml:"createdAfter,omitempty" json:"createdAfter"`
    	CreatedBefore time.Time     `yaml:"createdBefore,omitempty" json:"createdBefore"`
    	Tags          []BatchJobKV  `yaml:"tags,omitempty" json:"tags"`
    	Metadata      []BatchJobKV  `yaml:"metadata,omitempty" json:"metadata"`
    }
    
    // BatchJobReplicateFlags various configurations for replication job definition currently includes
    // - filter
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Nov 22 18:51:46 GMT 2023
    - 6.3K bytes
    - Viewed (0)
  10. cmd/api-headers.go

    	}
    
    	// Set tag count if object has tags
    	if len(objInfo.UserTags) > 0 {
    		tags, _ := tags.ParseObjectTags(objInfo.UserTags)
    		if 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}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6.9K bytes
    - Viewed (1)
Back to top