Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 1,250 for struct (0.06 sec)

  1. internal/bucket/replication/replication.go

    		return errReplicationNoRule
    	}
    
    	// Validate all the rules in the replication config
    	targetMap := make(map[string]struct{})
    	priorityMap := make(map[string]struct{})
    	var legacyArn bool
    	for _, r := range c.Rules {
    		if _, ok := targetMap[r.Destination.Bucket]; !ok {
    			targetMap[r.Destination.Bucket] = struct{}{}
    		}
    		if err := r.Validate(bucket, sameTarget); err != nil {
    			return err
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Mar 28 17:44:56 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  2. tests/serializer_test.go

    package tests_test
    
    import (
    	"bytes"
    	"context"
    	"fmt"
    	"reflect"
    	"strings"
    	"testing"
    	"time"
    
    	"gorm.io/gorm"
    	"gorm.io/gorm/schema"
    	. "gorm.io/gorm/utils/tests"
    )
    
    type SerializerStruct struct {
    	gorm.Model
    	Name                   []byte                 `gorm:"json"`
    	Roles                  Roles                  `gorm:"serializer:json"`
    	Roles2                 *Roles                 `gorm:"serializer:json"`
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Fri Apr 21 14:09:38 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  3. internal/kms/conn.go

    		return "MinIO KES"
    	case Builtin:
    		return "MinIO builtin"
    	default:
    		return "!INVALID:" + strconv.Itoa(int(t))
    	}
    }
    
    // Status describes the current state of a KMS.
    type Status struct {
    	Online  map[string]struct{}
    	Offline map[string]Error
    }
    
    // DEK is a data encryption key. It consists of a
    // plaintext-ciphertext pair and the ID of the key
    // used to generate the ciphertext.
    //
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 5K bytes
    - Viewed (0)
  4. schema/relationship_test.go

    	})
    }
    
    func TestEmbeddedBelongsTo(t *testing.T) {
    	type Country struct {
    		ID   int `gorm:"primaryKey"`
    		Name string
    	}
    	type Address struct {
    		CountryID int
    		Country   Country
    	}
    	type NestedAddress struct {
    		Address
    	}
    	type CountryMixin struct {
    		CountryID int
    		Country   Country
    	}
    	type Org struct {
    		ID              int
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Apr 15 03:20:20 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  5. cmd/batch-handlers_test.go

    package cmd
    
    import (
    	"slices"
    	"testing"
    
    	"gopkg.in/yaml.v3"
    )
    
    func TestBatchJobPrefix_UnmarshalYAML(t *testing.T) {
    	type args struct {
    		yamlStr string
    	}
    	type PrefixTemp struct {
    		Prefix BatchJobPrefix `yaml:"prefix"`
    	}
    	tests := []struct {
    		name    string
    		b       PrefixTemp
    		args    args
    		want    []string
    		wantErr bool
    	}{
    		{
    			name: "test1",
    			b:    PrefixTemp{},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 01 12:53:30 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  6. internal/event/targetidset_test.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package event
    
    import (
    	"reflect"
    	"testing"
    )
    
    func TestTargetIDSetClone(t *testing.T) {
    	testCases := []struct {
    		set           TargetIDSet
    		targetIDToAdd TargetID
    	}{
    		{NewTargetIDSet(), TargetID{"1", "webhook"}},
    		{NewTargetIDSet(TargetID{"1", "webhook"}), TargetID{"2", "webhook"}},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 3.9K bytes
    - Viewed (0)
  7. cni/pkg/util/pluginutil.go

    package util
    
    import (
    	"context"
    	"encoding/json"
    	"fmt"
    	"os"
    
    	"github.com/fsnotify/fsnotify"
    
    	"istio.io/istio/pkg/file"
    	"istio.io/istio/pkg/log"
    )
    
    type Watcher struct {
    	watcher *fsnotify.Watcher
    	Events  chan struct{}
    	Errors  chan error
    }
    
    // Waits until a file is modified (returns nil), the context is cancelled (returns context error), or returns error
    func (w *Watcher) Wait(ctx context.Context) error {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  8. internal/bucket/lifecycle/expiration.go

    type ExpireDeleteMarker struct {
    	Boolean
    }
    
    // Boolean signifies a boolean XML struct with custom marshaling
    type Boolean struct {
    	val    bool
    	set    bool
    	Unused struct{} // Needed for GOB compatibility
    }
    
    // Expiration - expiration actions for a rule in lifecycle configuration.
    type Expiration struct {
    	XMLName      xml.Name           `xml:"Expiration"`
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Feb 21 20:28:34 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/dcerpc/msrpc/samr.idl

    	[op(0x07)]
    	int SamrOpenDomain([in] policy_handle *handle,
    			[in] uint32_t access_mask,
    			[in] sid_t *sid,
    			[out] policy_handle *domain_handle);
    
    	typedef struct {
    		uint32_t idx;
    		unicode_string name;
    	} SamrSamEntry;
    
    	typedef struct {
    		uint32_t count;
    		[size_is(count)] SamrSamEntry *entries;
    	} SamrSamArray;
    
    	[op(0x0f)]
    	int SamrEnumerateAliasesInDomain([in] policy_handle *domain_handle,
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 3.1K bytes
    - Viewed (0)
  10. ci/official/containers/linux_arm64/builder.devtoolset/stringop_trunc.patch

     						src, n)) = '\0', __dest))     \
     		    : strncat (dest, src, n); }))
    -# elif __GNUC_PREREQ (3, 2)
    -#  define strncat(dest, src, n) __builtin_strncat (dest, src, n)
     # else
    -#  define strncat(dest, src, n) \
    -  (__extension__ (__builtin_constant_p (src) && __builtin_constant_p (n)      \
    -		  ? (strlen (src) < ((size_t) (n))			      \
    -		     ? strcat (dest, src)				      \
    -		     : strncat (dest, src, n))				      \
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Sep 18 14:52:45 UTC 2023
    - 42.9K bytes
    - Viewed (0)
Back to top