Documentation
¶
Index ¶
- type CreateReq
- type DeleteReq
- type Entity
- type Ike
- type IkeCreateReq
- type IkeUpdateReq
- type IpSec
- type IpSecCreateReq
- type IpSecUpdateReq
- type ListReq
- type LocalProperties
- type LocalPropertiesCreateReq
- type LocalPropertiesUpdateReq
- type RemoteProperties
- type RemotePropertiesCreateReq
- type RemotePropertiesUpdateReq
- type UpdateReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateReq ¶
type CreateReq struct {
Local LocalPropertiesCreateReq
Remote RemotePropertiesCreateReq
Ipsec IpSecCreateReq
Ike IkeCreateReq
}
type Entity ¶
type Entity struct {
Id string
Local LocalProperties
Remote RemoteProperties
Ike Ike
Ipsec IpSec
Links []models.LinkEntity
}
type IkeCreateReq ¶
type IkeCreateReq struct {
Encryption string `oneOf:"aes128,aes192,aes256,tripleDES"`
Hashing string `oneOf:"sha1_96,sha1_256,md5"`
DiffieHellmanGroup string `oneOf:"group1,group2,group5"`
Lifetime string `oneOf:"3600,28800,86400"`
Mode string `oneOf:"main,aggresive"`
DeadPeerDetection string `oneOf:"true,false,optional"`
NatTraversal string `oneOf:"true,false,optional"`
RemoteIdentity string
}
func (*IkeCreateReq) Validate ¶
func (r *IkeCreateReq) Validate() error
type IkeUpdateReq ¶
type IkeUpdateReq struct {
Encryption string `oneOf:"aes128,aes192,aes256,tripleDES"`
Hashing string `oneOf:"sha1_96,sha1_256,md5,optional"`
DiffieHellmanGroup string `oneOf:"group1,group2,group5"`
Lifetime string `oneOf:"3600,28800,86400"`
Mode string `oneOf:"main,aggresive"`
DeadPeerDetection string `oneOf:"true,false,optional"`
NatTraversal string `oneOf:"true,false,optional"`
RemoteIdentity string
}
type IpSecCreateReq ¶
type IpSecUpdateReq ¶
type IpSecUpdateReq struct {
Encryption string `oneOf:"aes128,aes192,aes256,tripleDES,optional"`
Hashing string `oneOf:"sha1_96,sha1_256,md5,optional"`
Protocol string `oneOf:"esp,ah,optional"`
Pfs string `oneOf:"disabled,group1,group2,group5,optional"`
Lifetime string `oneOf:"3600,28800,86400,optional"`
}
type LocalProperties ¶
type LocalPropertiesUpdateReq ¶
type LocalPropertiesUpdateReq struct {
Subnets []string
}
type RemoteProperties ¶
type UpdateReq ¶
type UpdateReq struct {
VpnId string `json:"-" valid:"required" URIParam:"yes"`
Local LocalPropertiesUpdateReq
Remote RemotePropertiesUpdateReq
Ipsec IpSecUpdateReq
Ike IkeUpdateReq
}
Click to show internal directories.
Click to hide internal directories.