Search Options

Results per page
Sort
Preferred Languages
Advance

Results 901 - 910 of 1,250 for struct (0.12 sec)

  1. internal/logger/logger.go

    		return
    	}
    	entry := logToEntry(ctx, subsystem, fmt.Sprintf(msg, args...), EventKind)
    	sendLog(ctx, entry)
    }
    
    // ErrCritical is the value panic'd whenever CriticalIf is called.
    var ErrCritical struct{}
    
    // CriticalIf logs the provided error on the console. It fails the
    // current go-routine by causing a `panic(ErrCritical)`.
    func CriticalIf(ctx context.Context, err error, errKind ...interface{}) {
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 22 09:43:48 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  2. cmd/xl-storage.go

    	if err != nil {
    		return err
    	}
    	foundDirs := make(map[string]struct{}, len(xl.versions))
    	err = readDirFn(baseDir, func(name string, typ os.FileMode) error {
    		if !typ.IsDir() {
    			return nil
    		}
    		// See if directory has a UUID name.
    		base := filepath.Base(name)
    		_, err := uuid.Parse(base)
    		if err == nil {
    			foundDirs[base] = struct{}{}
    		}
    		return nil
    	})
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
  3. cmd/metrics-v2.go

    // MetricDescription describes the metric
    type MetricDescription struct {
    	Namespace MetricNamespace `json:"MetricNamespace"`
    	Subsystem MetricSubsystem `json:"Subsystem"`
    	Name      MetricName      `json:"MetricName"`
    	Help      string          `json:"Help"`
    	Type      MetricTypeV2    `json:"Type"`
    }
    
    // MetricV2 captures the details for a metric
    type MetricV2 struct {
    	Description          MetricDescription `json:"Description"`
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 131.9K bytes
    - Viewed (0)
  4. cmd/metrics.go

    	return &minioCollector{
    		desc: prometheus.NewDesc("minio_stats", "Statistics exposed by MinIO server", nil, nil),
    	}
    }
    
    // minioCollector is the Custom Collector
    type minioCollector struct {
    	desc *prometheus.Desc
    }
    
    // Describe sends the super-set of all possible descriptors of metrics
    func (c *minioCollector) Describe(ch chan<- *prometheus.Desc) {
    	ch <- c.desc
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  5. cmd/bucket-metadata-sys.go

    	"github.com/minio/pkg/v3/policy"
    	"github.com/minio/pkg/v3/sync/errgroup"
    	"golang.org/x/sync/singleflight"
    )
    
    // BucketMetadataSys captures all bucket metadata for a given cluster.
    type BucketMetadataSys struct {
    	objAPI ObjectLayer
    
    	sync.RWMutex
    	initialized bool
    	group       *singleflight.Group
    	metadataMap map[string]BucketMetadata
    }
    
    // Count returns number of bucket metadata map entries.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  6. istioctl/pkg/kubeinject/kubeinject.go

    	"istio.io/istio/pkg/log"
    	"istio.io/istio/pkg/version"
    )
    
    const (
    	configMapKey       = "mesh"
    	injectConfigMapKey = "config"
    	valuesConfigMapKey = "values"
    )
    
    type ExternalInjector struct {
    	client          kube.CLIClient
    	clientConfig    *admissionregistration.WebhookClientConfig
    	injectorAddress string
    }
    
    func (e ExternalInjector) Inject(pod *corev1.Pod, deploymentNS string) ([]byte, error) {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 15 16:31:46 UTC 2024
    - 21K bytes
    - Viewed (0)
  7. tests/delete_test.go

    		t.Errorf("should returns record not found error, but got %v", err)
    	}
    }
    
    func TestDeleteWithTable(t *testing.T) {
    	type UserWithDelete struct {
    		gorm.Model
    		Name string
    	}
    
    	DB.Table("deleted_users").Migrator().DropTable(UserWithDelete{})
    	DB.Table("deleted_users").AutoMigrate(UserWithDelete{})
    
    	user := UserWithDelete{Name: "delete1"}
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Oct 10 07:03:34 UTC 2023
    - 9.4K bytes
    - Viewed (0)
  8. cmd/notification.go

    // external systems, see event-notification.go
    
    // NotificationSys - notification system.
    type NotificationSys struct {
    	peerClients    []*peerRESTClient // Excludes self
    	allPeerClients []*peerRESTClient // Includes nil client for self
    }
    
    // NotificationPeerErr returns error associated for a remote peer.
    type NotificationPeerErr struct {
    	Host xnet.Host // Remote host on which the rpc call was initiated
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 09 16:58:30 UTC 2024
    - 46.2K bytes
    - Viewed (0)
  9. cmd/iam-etcd-store.go

    func extractPathPrefixAndSuffix(s string, prefix string, suffix string) string {
    	return pathClean(strings.TrimSuffix(strings.TrimPrefix(s, prefix), suffix))
    }
    
    // IAMEtcdStore implements IAMStorageAPI
    type IAMEtcdStore struct {
    	sync.RWMutex
    
    	*iamCache
    
    	usersSysType UsersSysType
    
    	client *etcd.Client
    }
    
    func newIAMEtcdStore(client *etcd.Client, usersSysType UsersSysType) *IAMEtcdStore {
    	return &IAMEtcdStore{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 01:29:20 UTC 2024
    - 14K bytes
    - Viewed (0)
  10. internal/auth/credentials.go

    	// AccountOn indicates that credentials are enabled
    	AccountOn = "on"
    	// AccountOff indicates that credentials are disabled
    	AccountOff = "off"
    )
    
    // Credentials holds access and secret keys.
    type Credentials struct {
    	AccessKey    string                 `xml:"AccessKeyId" json:"accessKey,omitempty" yaml:"accessKey"`
    	SecretKey    string                 `xml:"SecretAccessKey" json:"secretKey,omitempty" yaml:"secretKey"`
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 28 17:14:16 UTC 2024
    - 12K bytes
    - Viewed (0)
Back to top