Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for is_empty (0.21 sec)

  1. internal/bucket/lifecycle/filter.go

    			default:
    				return errUnknownXMLTag
    			}
    		}
    	}
    	return nil
    }
    
    // IsEmpty returns true if Filter is not specified in the XML
    func (f Filter) IsEmpty() bool {
    	return !f.set
    }
    
    // Validate - validates the filter element
    func (f Filter) Validate() error {
    	if f.IsEmpty() {
    		return errXMLNotWellFormed
    	}
    	// A Filter must have exactly one of Prefix, Tag,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Feb 27 00:01:20 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  2. cmd/net.go

    	}
    	nonInterIPV6s := mustGetLocalIP6().Intersection(hostIPs)
    
    	// If intersection of two IP sets is not empty, then the host is localhost.
    	isLocalv4 := !nonInterIPV4s.IsEmpty()
    	isLocalv6 := !nonInterIPV6s.IsEmpty()
    	if port != "" {
    		return (isLocalv4 || isLocalv6) && (port == localPort), nil
    	}
    	return isLocalv4 || isLocalv6, nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Mar 26 15:00:38 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  3. internal/event/target/nsq.go

    	QueueDir   string `json:"queueDir"`
    	QueueLimit uint64 `json:"queueLimit"`
    }
    
    // Validate NSQArgs fields
    func (n NSQArgs) Validate() error {
    	if !n.Enable {
    		return nil
    	}
    
    	if n.NSQDAddress.IsEmpty() {
    		return errors.New("empty nsqdAddress")
    	}
    
    	if n.Topic == "" {
    		return errors.New("empty topic")
    	}
    	if n.QueueDir != "" {
    		if !filepath.IsAbs(n.QueueDir) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Oct 07 15:07:38 GMT 2023
    - 7.1K bytes
    - Viewed (0)
  4. internal/s3select/csv/reader.go

    			}
    		}()
    	}
    	return nil
    }
    
    // NewReader - creates new CSV reader using readCloser.
    func NewReader(readCloser io.ReadCloser, args *ReaderArgs) (*Reader, error) {
    	if args == nil || args.IsEmpty() {
    		panic(fmt.Errorf("empty args passed %v", args))
    	}
    	csvIn := io.Reader(readCloser)
    	if args.RecordDelimiter != "\n" {
    		csvIn = &recordTransform{
    			reader:          readCloser,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  5. internal/event/target/elasticsearch.go

    	Password   string          `json:"password"`
    }
    
    // Validate ElasticsearchArgs fields
    func (a ElasticsearchArgs) Validate() error {
    	if !a.Enable {
    		return nil
    	}
    	if a.URL.IsEmpty() {
    		return errors.New("empty URL")
    	}
    	if a.Format != "" {
    		f := strings.ToLower(a.Format)
    		if f != event.NamespaceFormat && f != event.AccessFormat {
    			return errors.New("format value unrecognized")
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 15K bytes
    - Viewed (0)
  6. cmd/site-replication.go

    		}
    	}
    	if selfIdx == -1 {
    		return madmin.ReplicateAddStatus{}, errSRBackendIssue(fmt.Errorf("global deployment ID %s mismatch, expected one of %s", globalDeploymentID(), deploymentIDsSet))
    	}
    	if !currDeploymentIDsSet.IsEmpty() {
    		// If current cluster is already SR enabled and no new site being added ,fail.
    		if currDeploymentIDsSet.Equals(deploymentIDsSet) {
    			return madmin.ReplicateAddStatus{}, errSRCannotJoin
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 184.2K bytes
    - Viewed (1)
  7. internal/event/targetidset.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package event
    
    // 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 {
    	setCopy := NewTargetIDSet()
    	for k, v := range set {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  8. cmd/bucket-lifecycle.go

    	S3 S3Location `xml:"S3,omitempty"`
    }
    
    // IsEmpty returns true if output location not specified.
    func (o *OutputLocation) IsEmpty() bool {
    	return o.S3.BucketName == ""
    }
    
    // SelectParameters specifies sql select parameters
    type SelectParameters struct {
    	s3select.S3Select
    }
    
    // IsEmpty returns true if no select parameters set
    func (sp *SelectParameters) IsEmpty() bool {
    	return sp == nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 17 05:09:58 GMT 2024
    - 33.1K bytes
    - Viewed (0)
  9. cmd/iam-store.go

    		newPolicySet = existingPolicySet.Difference(policiesToUpdate)
    	}
    	// We return an error if the requested policy update will have no effect.
    	if policiesToUpdate.IsEmpty() {
    		err = errNoPolicyToAttachOrDetach
    		return
    	}
    
    	newPolicies := newPolicySet.ToSlice()
    	newPolicyMapping.Policies = strings.Join(newPolicies, ",")
    	newPolicyMapping.UpdatedAt = UTCNow()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Apr 27 10:04:10 GMT 2024
    - 75.2K bytes
    - Viewed (2)
  10. internal/event/target/postgresql.go

    func NewPostgreSQLTarget(id string, args PostgreSQLArgs, loggerOnce logger.LogOnce) (*PostgreSQLTarget, error) {
    	params := []string{args.ConnectionString}
    	if args.ConnectionString == "" {
    		params = []string{}
    		if !args.Host.IsEmpty() {
    			params = append(params, "host="+args.Host.String())
    		}
    		if args.Port != "" {
    			params = append(params, "port="+args.Port)
    		}
    		if args.Username != "" {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 17:51:07 GMT 2024
    - 13.3K bytes
    - Viewed (0)
Back to top