Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 132 for Piller (0.19 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/storage-rest-server.go

    				// concurrently, check for it before we
    				// write the filler byte.
    				select {
    				case err := <-doneCh:
    					if err != nil {
    						write([]byte{1})
    						write([]byte(err.Error()))
    					} else {
    						write([]byte{0})
    					}
    					return
    				default:
    				}
    
    				// Response not ready, write a filler byte.
    				write([]byte{32})
    				if canWrite {
    					w.(http.Flusher).Flush()
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 44.8K 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/grid/stream.go

    	"errors"
    )
    
    // A Stream is a two-way stream.
    // All responses *must* be read by the caller.
    // If the call is canceled through the context,
    // the appropriate error will be returned.
    type Stream struct {
    	// responses from the remote server.
    	// Channel will be closed after error or when remote closes.
    	// All responses *must* be read by the caller until either an error is returned or the channel is closed.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Feb 28 18:05:18 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  6. 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)
  7. internal/rest/client.go

    func (c *Client) dumpHTTP(req *http.Request, resp *http.Response) {
    	// Starts http dump.
    	_, err := fmt.Fprintln(c.TraceOutput, "---------START-HTTP---------")
    	if err != nil {
    		return
    	}
    
    	// Filter out Signature field from Authorization header.
    	origAuth := req.Header.Get("Authorization")
    	if origAuth != "" {
    		req.Header.Set("Authorization", "**REDACTED**")
    	}
    
    	// Only display request header.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 14K bytes
    - Viewed (0)
  8. internal/grid/manager.go

    	local string
    
    	// Validate incoming requests.
    	authRequest func(r *http.Request) error
    }
    
    // ManagerOptions are options for creating a new grid manager.
    type ManagerOptions struct {
    	Dialer       ContextDialer               // Outgoing dialer.
    	Local        string                      // Local host name.
    	Hosts        []string                    // All hosts, including local in the grid.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top