-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrequest.go
38 lines (31 loc) · 1.02 KB
/
request.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package main
import (
"encoding/xml"
)
type Request struct {
XMLName xml.Name `xml:"Request"`
Subject Subject `xml:"Subject"`
Resource Resource `xml:"Resource"`
Action Action `xml:"Action"`
Environment Environment `xml:"Environment"`
}
type Subject struct {
XMLName xml.Name `xml:"Subject"`
Attribute []Attribute `xml:"Attribute"`
}
type Resource struct {
XMLName xml.Name `xml:"Resource"`
Attribute []Attribute `xml:"Attribute"`
}
type Action struct {
XMLName xml.Name `xml:"Action"`
Attribute []Attribute `xml:"Attribute"`
}
type Environment struct {
XMLName xml.Name `xml:"Environment"`
Attribute []Attribute `xml:"Attribute"`
}
type Attribute struct {
XMLName xml.Name `xml:"Attribute"`
AttributeValue string `xml:"AttributeValue"`
}