Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for adddot1 (0.16 sec)

  1. platforms/documentation/docs/src/snippets/providers/collections/groovy/build.gradle

            // Create the container
            animals = objectFactory.polymorphicDomainObjectContainer(Animal)
        }
    
        // Add a dog to the container
        void addDog(String name, String breed) {
            animals.create(Dog, name: name, breed: breed)
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 18:14:15 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  2. pkg/proxy/util/nfacct/nfacct_linux.go

    	if name == "" {
    		return ErrEmptyName
    	}
    	if len(name) > MaxLength {
    		return ErrNameExceedsMaxLength
    	}
    
    	req := r.handler.newRequest(cmdNew, unix.NLM_F_REQUEST|unix.NLM_F_CREATE|unix.NLM_F_ACK)
    	req.AddData(nl.NewRtAttr(attrName, nl.ZeroTerminated(name)))
    	_, err := req.Execute(unix.NETLINK_NETFILTER, 0)
    	if err != nil {
    		return handleError(err)
    	}
    	return nil
    }
    
    // Get is part of the interface.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 06:47:50 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/providers/collections/kotlin/build.gradle.kts

        // Define a container for animals
        private val animals: ExtensiblePolymorphicDomainObjectContainer<Animal> = objectFactory.polymorphicDomainObjectContainer(Animal::class)
    
        // Add a dog to the container
        fun addDog(name: String, breed: String) {
            var dog : Dog = Dog(name, breed)
            animals.add(dog)
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 18:14:15 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  4. pkg/proxy/util/nfacct/handler.go

    type handler interface {
    	newRequest(cmd int, flags uint16) request
    }
    
    // request is an injectable interface representing a netlink request.
    type request interface {
    	Serialize() []byte
    	AddData(data nl.NetlinkRequestData)
    	AddRawData(data []byte)
    	Execute(sockType int, resType uint16) ([][]byte, error)
    }
    
    // netlinkHandler is an implementation of the handler interface. It maintains a netlink socket
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 06:47:50 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  5. src/time/genzabbrs.go

    // for location l.
    func getAbbrs(l *time.Location) (st, dt string) {
    	t := time.Date(time.Now().Year(), 0, 1, 0, 0, 0, 0, l)
    	abbr1, off1 := t.Zone()
    	for i := 0; i < 12; i++ {
    		t = t.AddDate(0, 1, 0)
    		abbr2, off2 := t.Zone()
    		if abbr1 != abbr2 {
    			if off2-off1 < 0 { // southern hemisphere
    				abbr1, abbr2 = abbr2, abbr1
    			}
    			return abbr1, abbr2
    		}
    	}
    	return abbr1, abbr1
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. cmd/signature-v4_test.go

    			expected: ErrUnsignedHeaders,
    		},
    		// (4) Should give an expired request if it has expired.
    		{
    			queryParams: map[string]string{
    				"X-Amz-Algorithm":      signV4Algorithm,
    				"X-Amz-Date":           now.AddDate(0, 0, -2).Format(iso8601Format),
    				"X-Amz-Expires":        "60",
    				"X-Amz-Signature":      "badsignature",
    				"X-Amz-SignedHeaders":  "host;x-amz-content-sha256;x-amz-date",
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  7. src/time/time.go

    	}
    	return t.Sub(Now())
    }
    
    // AddDate returns the time corresponding to adding the
    // given number of years, months, and days to t.
    // For example, AddDate(-1, 2, 3) applied to January 1, 2011
    // returns March 4, 2010.
    //
    // Note that dates are fundamentally coupled to timezones, and calendrical
    // periods like days don't have fixed durations. AddDate uses the Location of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 50.7K bytes
    - Viewed (0)
  8. internal/bucket/object/lock/lock.go

    			// Do not change any configuration
    			// upon NTP failure.
    			return r
    		}
    
    		if config.Rule.DefaultRetention.Days != nil {
    			r.Validity = t.AddDate(0, 0, int(*config.Rule.DefaultRetention.Days)).Sub(t)
    		} else {
    			r.Validity = t.AddDate(int(*config.Rule.DefaultRetention.Years), 0, 0).Sub(t)
    		}
    	}
    
    	return r
    }
    
    // Maximum 4KiB size per object lock config.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  9. pkg/printers/internalversion/printers_test.go

    					FieldPath: "spec.containers{foo}",
    				},
    				Reason:         "Event Reason",
    				Message:        "Message Data",
    				FirstTimestamp: metav1.Time{Time: time.Now().UTC().AddDate(0, 0, -3)},
    				LastTimestamp:  metav1.Time{Time: time.Now().UTC().AddDate(0, 0, -2)},
    				Count:          6,
    				Type:           api.EventTypeNormal,
    				ObjectMeta:     metav1.ObjectMeta{Name: "event1"},
    			},
    			options: printers.GenerateOptions{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 218.6K bytes
    - Viewed (0)
  10. pkg/proxy/util/nfacct/nfacct_linux_test.go

    	response [][]byte
    	err      error
    }
    
    // Serialize is part of request interface.
    func (fr *fakeRequest) Serialize() []byte { return nil }
    
    // AddData is part of request interface.
    func (fr *fakeRequest) AddData(data nl.NetlinkRequestData) {
    	fr.data = append(fr.data, data)
    }
    
    // AddRawData is part of request interface.
    func (fr *fakeRequest) AddRawData(_ []byte) {}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 06:47:50 UTC 2024
    - 18.8K bytes
    - Viewed (0)
Back to top