vpn

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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 DeleteReq

type DeleteReq struct {
	VpnId string `valid:"required" URIParam:"yes"`
}

type Entity

type Entity struct {
	Id     string
	Local  LocalProperties
	Remote RemoteProperties
	Ike    Ike
	Ipsec  IpSec
	Links  []models.LinkEntity
}

type Ike

type Ike struct {
	Encryption         string
	Hashing            string
	DiffieHellmanGroup string
	Lifetime           int64
	Mode               string
	DeadPeerDetection  bool
	NatTraversal       bool
	RemoteIdentity     string
}

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"`
	PreSharedKey       string `valid:"required"`
	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"`
	PreSharedKey       string
	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 IpSec

type IpSec struct {
	Encryption string
	Hashing    string
	Protocol   string
	Pfs        string
	Lifetime   int64
}

type IpSecCreateReq

type IpSecCreateReq struct {
	Encryption string `oneOf:"aes128,aes192,aes256,tripleDES"`
	Hashing    string `oneOf:"sha1_96,sha1_256,md5"`
	Protocol   string `oneOf:"esp,ah"`
	Pfs        string `oneOf:"disabled,group1,group2,group5"`
	Lifetime   int64  `oneOf:"3600,28800,86400"`
}

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 ListReq

type ListReq struct{}

type LocalProperties

type LocalProperties struct {
	LocationAlias       string
	LocationDescription string
	Address             string
	Subnets             []string
}

type LocalPropertiesCreateReq

type LocalPropertiesCreateReq struct {
	Alias   string   `json:"locationAlias" valid:"required"`
	Subnets []string `valid:"required"`
}

type LocalPropertiesUpdateReq

type LocalPropertiesUpdateReq struct {
	Subnets []string
}

type RemoteProperties

type RemoteProperties struct {
	SiteName   string
	DeviceType string
	Address    string
	Subnets    []string
}

type RemotePropertiesCreateReq

type RemotePropertiesCreateReq struct {
	SiteName   string   `valid:"required"`
	DeviceType string   `valid:"required"`
	Address    string   `valid:"required"`
	Subnets    []string `valid:"required"`
}

type RemotePropertiesUpdateReq

type RemotePropertiesUpdateReq struct {
	SiteName   string
	DeviceType string
	Address    string
	Subnets    []string
}

type UpdateReq

type UpdateReq struct {
	VpnId string `json:"-" valid:"required" URIParam:"yes"`

	Local  LocalPropertiesUpdateReq
	Remote RemotePropertiesUpdateReq
	Ipsec  IpSecUpdateReq
	Ike    IkeUpdateReq
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL