Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 1,002 for Struct (0.2 sec)

  1. cmd/data-usage-cache.go

    type dataUsageCacheV2 struct {
    	Info  dataUsageCacheInfo
    	Cache map[string]dataUsageEntryV2
    }
    
    // dataUsageCacheV3 contains a cache of data usage entries version 3.
    type dataUsageCacheV3 struct {
    	Info  dataUsageCacheInfo
    	Cache map[string]dataUsageEntryV3
    }
    
    // dataUsageCacheV4 contains a cache of data usage entries version 4.
    type dataUsageCacheV4 struct {
    	Info  dataUsageCacheInfo
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 34.7K bytes
    - Viewed (0)
  2. cmd/bucket-targets.go

    	defaultHealthCheckReloadDuration = 30 * time.Minute
    )
    
    type arnTarget struct {
    	Client      *TargetClient
    	lastRefresh time.Time
    }
    
    // arnErrs represents number of errors seen for a ARN and if update is in progress
    // to refresh remote targets from bucket metadata.
    type arnErrs struct {
    	count            int64
    	updateInProgress bool
    	bucket           string
    }
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 20.9K bytes
    - Viewed (0)
  3. schema/constraint_test.go

    package schema_test
    
    import (
    	"reflect"
    	"sync"
    	"testing"
    
    	"gorm.io/gorm/schema"
    	"gorm.io/gorm/utils/tests"
    )
    
    type UserCheck struct {
    	Name  string `gorm:"check:name_checker,name <> 'jinzhu'"`
    	Name2 string `gorm:"check:name <> 'jinzhu'"`
    	Name3 string `gorm:"check:,name <> 'jinzhu'"`
    }
    
    func TestParseCheck(t *testing.T) {
    	user, err := schema.Parse(&UserCheck{}, &sync.Map{}, schema.NamingStrategy{})
    	if err != nil {
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sun Feb 04 07:49:19 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  4. schema/schema.go

    	if field, ok := schema.FieldsByDBName[namerColumnName]; ok {
    		return field
    	}
    
    	return nil
    }
    
    // LookUpFieldByBindName looks for the closest field in the embedded struct.
    //
    //	type Struct struct {
    //		Embedded struct {
    //			ID string // is selected by LookUpFieldByBindName([]string{"Embedded", "ID"}, "ID")
    //		}
    //		ID string // is selected by LookUpFieldByBindName([]string{"ID"}, "ID")
    //	}
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Fri Oct 31 12:13:56 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  5. internal/bucket/lifecycle/prefix.go

    package lifecycle
    
    import (
    	"encoding/xml"
    )
    
    // Prefix holds the prefix xml tag in <Rule> and <Filter>
    type Prefix struct {
    	string
    	set    bool
    	Unused struct{} // Needed for GOB compatibility
    }
    
    // UnmarshalXML - decodes XML data.
    func (p *Prefix) UnmarshalXML(d *xml.Decoder, start xml.StartElement) (err error) {
    	var s string
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue Aug 15 14:45:25 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  6. internal/config/lambda/event/event.go

    package event
    
    import "net/http"
    
    // Identity represents access key who caused the event.
    type Identity struct {
    	Type        string `json:"type"`
    	PrincipalID string `json:"principalId"`
    	AccessKeyID string `json:"accessKeyId"`
    }
    
    // UserRequest user request headers
    type UserRequest struct {
    	URL     string      `json:"url"`
    	Headers http.Header `json:"headers"`
    }
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue Mar 07 16:12:41 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  7. internal/bucket/object/lock/lock_test.go

    	years := uint64(2)
    	yearsPtr := &years
    
    	tests := []struct {
    		name string
    		c    Config
    		want string
    	}{
    		{
    			name: "happy case",
    			c: Config{
    				ObjectLockEnabled: "Enabled",
    			},
    			want: "Enabled: true",
    		},
    		{
    			name: "with default retention days",
    			c: Config{
    				ObjectLockEnabled: "Enabled",
    				Rule: &struct {
    					DefaultRetention DefaultRetention `xml:"DefaultRetention"`
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 18.4K bytes
    - Viewed (0)
  8. cmd/service.go

    	globalServiceFreezeMu.Lock()
    	// Close when we reach 0
    	globalServiceFreezeCnt--
    	if globalServiceFreezeCnt <= 0 {
    		// Set to a nil channel.
    		var _ch chan struct{}
    		if val := globalServiceFreeze.Swap(_ch); val != nil {
    			if ch, ok := val.(chan struct{}); ok && ch != nil {
    				// Close previous non-nil channel.
    				xioutil.SafeClose(ch)
    			}
    		}
    		globalServiceFreezeCnt = 0 // Don't risk going negative.
    	}
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Wed Feb 28 07:02:14 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  9. internal/crypto/header_test.go

    		}
    		got = got && SSEC.IsRequested(test.Header)
    		if got != test.Expected {
    			t.Errorf("SSE-C: Test %d: Wanted %v but got %v", i, test.Expected, got)
    		}
    	}
    }
    
    var kmsIsRequestedTests = []struct {
    	Header   http.Header
    	Expected bool
    }{
    	{Header: http.Header{}, Expected: false},                                                                                     // 0
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Wed Jul 13 14:52:15 UTC 2022
    - 21.4K bytes
    - Viewed (0)
  10. internal/config/lambda/event/targetidset.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package event
    
    import "maps"
    
    // TargetIDSet - Set representation of TargetIDs.
    type TargetIDSet map[TargetID]struct{}
    
    // IsEmpty returns true if the set is empty.
    func (set TargetIDSet) IsEmpty() bool {
    	return len(set) != 0
    }
    
    // Clone - returns copy of this set.
    func (set TargetIDSet) Clone() TargetIDSet {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 1.9K bytes
    - Viewed (0)
Back to top