Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 98 for bolter (0.16 sec)

  1. internal/bucket/replication/filter.go

    )
    
    var errInvalidFilter = Errorf("Filter must have exactly one of Prefix, Tag, or And specified")
    
    // Filter - a filter for a replication configuration Rule.
    type Filter struct {
    	XMLName xml.Name `xml:"Filter" json:"Filter"`
    	Prefix  string
    	And     And
    	Tag     Tag
    
    	// Caching tags, only once
    	cachedTags map[string]string
    }
    
    // IsEmpty returns true if filter is not set
    func (f Filter) IsEmpty() bool {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Sep 28 18:25:46 GMT 2022
    - 3.5K bytes
    - Viewed (2)
  2. cmd/kms-router.go

    	kmsAPIVersion       = "v1"
    	kmsAPIVersionPrefix = SlashSeparator + kmsAPIVersion
    )
    
    type kmsAPIHandlers struct{}
    
    // registerKMSRouter - Registers KMS APIs
    func registerKMSRouter(router *mux.Router) {
    	kmsAPI := kmsAPIHandlers{}
    	kmsRouter := router.PathPrefix(kmsPathPrefix).Subrouter()
    
    	KMSVersions := []string{
    		kmsAPIVersionPrefix,
    	}
    
    	gz, err := gzhttp.NewWrapper(gzhttp.MinSize(1000), gzhttp.CompressionLevel(gzip.BestSpeed))
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Aug 19 14:37:53 GMT 2023
    - 4.5K bytes
    - Viewed (0)
  3. internal/bucket/replication/rule.go

    }
    
    func (r Rule) validateFilter() error {
    	return r.Filter.Validate()
    }
    
    // Prefix - a rule can either have prefix under <filter></filter> or under
    // <filter><and></and></filter>. This method returns the prefix from the
    // location where it is available
    func (r Rule) Prefix() string {
    	if r.Filter.Prefix != "" {
    		return r.Filter.Prefix
    	}
    	return r.Filter.And.Prefix
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Jan 24 23:22:20 GMT 2022
    - 8.3K bytes
    - Viewed (0)
  4. internal/event/config.go

    type FilterRule struct {
    	Name  string `xml:"Name"`
    	Value string `xml:"Value"`
    }
    
    func (filter FilterRule) isEmpty() bool {
    	return filter.Name == "" && filter.Value == ""
    }
    
    // MarshalXML implements a custom marshaller to support `omitempty` feature.
    func (filter FilterRule) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
    	if filter.isEmpty() {
    		return nil
    	}
    	type filterRuleWrapper FilterRule
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Nov 16 17:28:29 GMT 2021
    - 8.4K bytes
    - Viewed (0)
  5. internal/config/identity/ldap/help.go

    			Type:        "list",
    		},
    		config.HelpKV{
    			Key:         UserDNSearchFilter,
    			Description: `Search filter to lookup user DN` + defaultHelpPostfix(UserDNSearchFilter),
    			Optional:    true,
    			Type:        "string",
    		},
    		config.HelpKV{
    			Key:         GroupSearchFilter,
    			Description: `search filter for groups e.g. "(&(objectclass=groupOfNames)(memberUid=%s))"` + defaultHelpPostfix(GroupSearchFilter),
    			Optional:    true,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Jun 23 14:45:27 GMT 2023
    - 3.6K bytes
    - Viewed (0)
  6. internal/bucket/lifecycle/prefix.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    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.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Aug 15 14:45:25 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  7. internal/bucket/replication/tag.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package replication
    
    import (
    	"encoding/xml"
    	"unicode/utf8"
    )
    
    // Tag - a tag for a replication configuration Rule filter.
    type Tag struct {
    	XMLName xml.Name `xml:"Tag" json:"Tag"`
    	Key     string   `xml:"Key,omitempty" json:"Key,omitempty"`
    	Value   string   `xml:"Value,omitempty" json:"Value,omitempty"`
    }
    
    var (
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 1.6K bytes
    - Viewed (0)
  8. internal/bucket/lifecycle/tag.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package lifecycle
    
    import (
    	"encoding/xml"
    	"io"
    	"unicode/utf8"
    )
    
    // Tag - a tag for a lifecycle configuration Rule filter.
    type Tag struct {
    	XMLName xml.Name `xml:"Tag"`
    	Key     string   `xml:"Key,omitempty"`
    	Value   string   `xml:"Value,omitempty"`
    }
    
    var (
    	errInvalidTagKey   = Errorf("The TagKey you have provided is invalid")
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Mar 06 16:56:10 GMT 2023
    - 2.4K bytes
    - Viewed (0)
  9. cmd/object-api-listobjects_test.go

    		name            string
    		content         string
    		meta            map[string]string
    		addDeleteMarker bool
    	}{
    		{testBuckets[0], "unique/folder/", "", nil, true},
    		{testBuckets[0], "unique/folder/1.txt", "content", nil, false},
    		{testBuckets[1], "unique/folder/1.txt", "content", nil, true},
    	}
    	for _, object := range testObjects {
    		md5Bytes := md5.Sum([]byte(object.content))
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  10. cmd/metacache-server-pool.go

    					c.status = scanStateError
    					rpc.UpdateMetacacheListing(ctx, *c)
    				}
    			}
    		}()
    		o.ID = ""
    	}
    
    	// Do listing in-place.
    	// Create output for our results.
    	// Create filter for results.
    	o.debugln("Raw List", o)
    	filterCh := make(chan metaCacheEntry, o.Limit)
    	listCtx, cancelList := context.WithCancel(ctx)
    	filteredResults := o.gatherResults(listCtx, filterCh)
    	var wg sync.WaitGroup
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 12.8K bytes
    - Viewed (0)
Back to top