Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for xml$ (0.14 sec)

  1. internal/bucket/lifecycle/rule.go

    	Filter              Filter              `xml:"Filter,omitempty"`
    	Prefix              Prefix              `xml:"Prefix,omitempty"`
    	Expiration          Expiration          `xml:"Expiration,omitempty"`
    	Transition          Transition          `xml:"Transition,omitempty"`
    	DelMarkerExpiration DelMarkerExpiration `xml:"DelMarkerExpiration,omitempty"`
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  2. internal/event/name.go

    		return "s3:Scanner:BigPrefix"
    	}
    
    	return ""
    }
    
    // MarshalXML - encodes to XML data.
    func (name Name) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
    	return e.EncodeElement(name.String(), start)
    }
    
    // UnmarshalXML - decodes XML data.
    func (name *Name) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
    	var s string
    	if err := d.DecodeElement(&s, &start); err != nil {
    		return err
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  3. cmd/data-scanner_test.go

    					NewerNoncurrentVersions: 1,
    				},
    			},
    		},
    	}
    	lcXML, err := xml.Marshal(lc)
    	if err != nil {
    		t.Fatalf("Failed to marshal lifecycle config: %v", err)
    	}
    	vcfg := versioning.Versioning{
    		Status: "Enabled",
    	}
    	vcfgXML, err := xml.Marshal(vcfg)
    	if err != nil {
    		t.Fatalf("Failed to marshal versioning config: %v", err)
    	}
    
    	bucket := "bucket"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 11:18:58 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  4. cmd/api-errors.go

    type APIErrorResponse struct {
    	XMLName          xml.Name `xml:"Error" json:"-"`
    	Code             string
    	Message          string
    	Key              string `xml:"Key,omitempty" json:"Key,omitempty"`
    	BucketName       string `xml:"BucketName,omitempty" json:"BucketName,omitempty"`
    	Resource         string
    	Region           string `xml:"Region,omitempty" json:"Region,omitempty"`
    	RequestID        string `xml:"RequestId" json:"RequestId"`
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 91.4K bytes
    - Viewed (7)
  5. cmd/object-handlers.go

    		Host:         handlers.GetSourceIP(r),
    	})
    }
    
    // ObjectTagSet key value tags
    type ObjectTagSet struct {
    	Tags []tags.Tag `xml:"Tag"`
    }
    
    type objectTagging struct {
    	XMLName xml.Name      `xml:"Tagging"`
    	TagSet  *ObjectTagSet `xml:"TagSet"`
    }
    
    // GetObjectTaggingHandler - GET object tagging
    func (api objectAPIHandlers) GetObjectTaggingHandler(w http.ResponseWriter, r *http.Request) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 20:15:54 GMT 2024
    - 125.2K bytes
    - Viewed (0)
  6. cmd/admin-bucket-handlers.go

    				continue
    			}
    
    			configData, err := xml.Marshal(bucketLifecycle)
    			if err != nil {
    				rpt.SetStatus(bucket, fileName, err)
    				continue
    			}
    
    			bucketMap[bucket].LifecycleConfigXML = configData
    			bucketMap[bucket].LifecycleConfigUpdatedAt = updatedAt
    			rpt.SetStatus(bucket, fileName, nil)
    		case bucketSSEConfig:
    			// Parse bucket encryption xml
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  7. internal/event/name_test.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package event
    
    import (
    	"encoding/json"
    	"encoding/xml"
    	"reflect"
    	"testing"
    )
    
    func TestNameExpand(t *testing.T) {
    	testCases := []struct {
    		name           Name
    		expectedResult []Name
    	}{
    		{BucketCreated, []Name{BucketCreated}},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  8. internal/bucket/lifecycle/delmarker-expiration.go

    package lifecycle
    
    import (
    	"encoding/xml"
    	"time"
    )
    
    var errInvalidDaysDelMarkerExpiration = Errorf("Days must be a positive integer with DelMarkerExpiration")
    
    // DelMarkerExpiration used to xml encode/decode ILM action by the same name
    type DelMarkerExpiration struct {
    	XMLName xml.Name `xml:"DelMarkerExpiration"`
    	Days    int      `xml:"Days,omitempty"`
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  9. cmd/common-main.go

    	// Fetch console address option
    	ctxt.ConsoleAddr = ctx.GlobalString("console-address")
    	if ctxt.ConsoleAddr == "" {
    		ctxt.ConsoleAddr = ctx.String("console-address")
    	}
    
    	if cxml := ctx.String("crossdomain-xml"); cxml != "" {
    		buf, err := os.ReadFile(cxml)
    		if err != nil {
    			return err
    		}
    		ctxt.CrossDomainXML = string(buf)
    	}
    
    	// Check "no-compat" flag from command line argument.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 35.8K bytes
    - Viewed (2)
  10. cmd/test-utils_test.go

    			t.Fatal(failTestStr(anonTestStr, fmt.Sprintf("Failed parsing response body: <ERROR> %v", err)))
    		}
    
    		actualError := &APIErrorResponse{}
    		if err = xml.Unmarshal(actualContent, actualError); err != nil {
    			t.Fatal(failTestStr(anonTestStr, "error response failed to parse error XML"))
    		}
    
    		if actualError.BucketName != bucketName {
    			t.Fatal(failTestStr(anonTestStr, "error response bucket name differs from expected value"))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
Back to top