Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for _new (0.07 sec)

  1. internal/config/identity/plugin/config.go

    		CloseRespFn: closeRespFn,
    		RolePolicy:  rolePolicy,
    		RoleARN:     roleArn,
    	}
    	if err = args.Validate(); err != nil {
    		return args, err
    	}
    	return args, nil
    }
    
    // New - initializes Authorization Management Plugin.
    func New(shutdownCtx context.Context, args Args) *AuthNPlugin {
    	if args.URL == nil || args.URL.Scheme == "" && args.AuthToken == "" {
    		return nil
    	}
    	plugin := AuthNPlugin{
    		args:        args,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. cmd/config.go

    }
    
    // data is optional. If nil it will be loaded from backend.
    func readServerConfig(ctx context.Context, objAPI ObjectLayer, data []byte) (config.Config, error) {
    	srvCfg := config.New()
    	var err error
    	if len(data) == 0 {
    		configFile := path.Join(minioConfigPrefix, minioConfigFile)
    		data, err = readConfig(ctx, objAPI, configFile)
    		if err != nil {
    			if errors.Is(err, errConfigNotFound) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 23 10:07:06 UTC 2023
    - 6K bytes
    - Viewed (0)
  3. internal/config/policy/opa/config.go

    		AuthToken:   authToken,
    		Transport:   transport,
    		CloseRespFn: closeRespFn,
    	}
    	if err = args.Validate(); err != nil {
    		return args, err
    	}
    	return args, nil
    }
    
    // New - initializes opa policy engine connector.
    func New(args Args) *Opa {
    	// No opa args.
    	if args.URL == nil || args.URL.Scheme == "" && args.AuthToken == "" {
    		return nil
    	}
    	return &Opa{
    		args:   args,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 10 20:16:44 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  4. internal/logger/config.go

    	EnvKafkaQueueSize     = "MINIO_AUDIT_KAFKA_QUEUE_SIZE"
    
    	loggerTargetNamePrefix = "logger-"
    	auditTargetNamePrefix  = "audit-"
    )
    
    var (
    	errInvalidQueueSize = errors.New("invalid queue_size value")
    	errInvalidBatchSize = errors.New("invalid batch_size value")
    )
    
    // Default KVS for loggerHTTP and loggerAuditHTTP
    var (
    	DefaultLoggerWebhookKVS = config.KVS{
    		config.KV{
    			Key:   config.Enable,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 20 16:02:50 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  5. internal/config/subnet/config.go

    		os.Setenv("CONSOLE_SUBNET_API_KEY", c.APIKey)
    	}
    	if c.Proxy != "" {
    		os.Setenv("CONSOLE_SUBNET_PROXY", c.Proxy)
    	}
    	os.Setenv("CONSOLE_SUBNET_URL", c.BaseURL)
    }
    
    // Update - in-place update with new license and registration information.
    func (c *Config) Update(ncfg Config, isDevEnv bool) {
    	configLock.Lock()
    	defer configLock.Unlock()
    
    	c.License = ncfg.License
    	c.APIKey = ncfg.APIKey
    	c.Proxy = ncfg.Proxy
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  6. internal/kms/config.go

    	switch {
    	case kmsPresent && kesPresent:
    		return false, errors.New("kms: configuration for MinIO KMS and MinIO KES is present")
    	case kmsPresent && staticKeyPresent:
    		return false, errors.New("kms: configuration for MinIO KMS and static KMS key is present")
    	case kesPresent && staticKeyPresent:
    		return false, errors.New("kms: configuration for MinIO KES and static KMS key is present")
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 11:46:39 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  7. internal/config/config.go

    				for _, key := range keys {
    					ckvs.Delete(key)
    				}
    			}
    			cp[subSys][tgt] = ckvs
    		}
    	}
    
    	return cp
    }
    
    // New - initialize a new server config.
    func New() Config {
    	srvCfg := make(Config)
    	for _, k := range SubSystems.ToSlice() {
    		srvCfg[k] = map[string]KVS{}
    		srvCfg[k][Default] = DefaultKVS[k]
    	}
    	return srvCfg
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 03 18:23:41 UTC 2024
    - 37.7K bytes
    - Viewed (0)
  8. internal/config/policy/plugin/config.go

    		Transport:   transport,
    		CloseRespFn: closeRespFn,
    	}
    	if err = args.Validate(); err != nil {
    		return args, err
    	}
    	return args, nil
    }
    
    // New - initializes Authorization Management Plugin.
    func New(args Args) *AuthZPlugin {
    	if args.URL == nil || args.URL.Scheme == "" && args.AuthToken == "" {
    		return nil
    	}
    	return &AuthZPlugin{
    		args:   args,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  9. internal/config/identity/tls/config.go

    		return 0, auth.ErrInvalidDuration
    	}
    
    	dur := time.Duration(d) * time.Second
    
    	if dur < minExpiry || dur > maxExpiry {
    		return 0, auth.ErrInvalidDuration
    	}
    	return dur, nil
    }
    
    // Lookup returns a new Config by merging the given K/V config
    // system with environment variables.
    func Lookup(kvs config.KVS) (Config, error) {
    	if err := config.CheckValidKeys(config.IdentityTLSSubSys, kvs, DefaultKVS); err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  10. internal/config/identity/ldap/config.go

    			Name:    cfg,
    			Enabled: l.Enabled(),
    		})
    	}
    
    	return res, nil
    }
    
    // ErrProviderConfigNotFound - represents a non-existing provider error.
    var ErrProviderConfigNotFound = errors.New("provider configuration not found")
    
    // GetConfigInfo - returns config details for an LDAP configuration.
    func (l *Config) GetConfigInfo(s config.Config, cfgName string) ([]madmin.IDPCfgInfo, error) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 07 12:59:47 UTC 2024
    - 8.4K bytes
    - Viewed (0)
Back to top