Documentation
¶
Index ¶
- type Client
- func (c *Client) CreateConnection(connection *ConnectionCreateRequest) (*Connection, error)
- func (c *Client) CreateGateway(gateway *GatewayCreateRequest) (*Gateway, error)
- func (c *Client) CreateTranslation(translation *TranslationCreateRequest) (*Translation, error)
- func (c *Client) DeleteConnection(connectionID string) error
- func (c *Client) DeleteGateway(mgwID string) error
- func (c *Client) DeleteTranslation(translationId string) error
- func (c *Client) GetConnection(connectionID string) (*Connection, error)
- func (c *Client) GetGateway(mgwID string) (*Gateway, error)
- func (c *Client) GetTranslation(translationId string) (*Translation, error)
- func (c *Client) UpdateConnection(connectionId string, connection *ConnectionUpdateRequest) (*Connection, error)
- func (c *Client) UpdateGateway(mgwID string, gateway *GatewayUpdateRequest) (*Gateway, error)
- func (c *Client) UpdateTranslation(translationId string, translation *TranslationUpdateRequest) (*Translation, error)
- type Connection
- type ConnectionCreateRequest
- type ConnectionUpdateRequest
- type Gateway
- type GatewayCreateRequest
- type GatewayUpdateRequest
- type Translation
- type TranslationCreateRequest
- type TranslationUpdateRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) CreateConnection ¶
func (c *Client) CreateConnection(connection *ConnectionCreateRequest) (*Connection, error)
CreateConnection - Create new connection
func (*Client) CreateGateway ¶
func (c *Client) CreateGateway(gateway *GatewayCreateRequest) (*Gateway, error)
CreateMgw - Create new mgw
func (*Client) CreateTranslation ¶
func (c *Client) CreateTranslation(translation *TranslationCreateRequest) (*Translation, error)
Create Translation
func (*Client) DeleteConnection ¶
Delete Connection - delete connection
func (*Client) DeleteTranslation ¶
func (*Client) GetConnection ¶
func (c *Client) GetConnection(connectionID string) (*Connection, error)
GetConnection - Returns a specific connection
func (*Client) GetGateway ¶
----------------------------------Gateway----------------------------------- GetGateway - Return a spcific gateway
func (*Client) GetTranslation ¶
func (c *Client) GetTranslation(translationId string) (*Translation, error)
Get Translation
func (*Client) UpdateConnection ¶
func (c *Client) UpdateConnection(connectionId string, connection *ConnectionUpdateRequest) (*Connection, error)
UpdateConnection - update a connection
func (*Client) UpdateGateway ¶
func (c *Client) UpdateGateway(mgwID string, gateway *GatewayUpdateRequest) (*Gateway, error)
UpdateMgw - update a mgw
func (*Client) UpdateTranslation ¶
func (c *Client) UpdateTranslation(translationId string, translation *TranslationUpdateRequest) (*Translation, error)
Update Translation
type Connection ¶
type Connection struct {
ID string `json:"connectionId,omitempty"`
MgwId string `json:"mgwId,omitempty"`
NameTag string `json:"nameTag,omitempty"`
CustomerPrimaryGwIp string `json:"customerPrimaryGwIp,omitempty"`
CustomerSecondaryGwIp string `json:"customerSecondaryGwIp"`
Status string `json:"deploymentState,omitempty"`
ConnectionProfile string `json:"connectionProfile,omitempty"`
IpsecPskA string `json:"ipsecPskA,omitempty"`
IpsecPskB string `json:"ipsecPskB,omitempty"`
CancomNetworks []string `json:"cancomNetworks"`
CustomerNetworks []string `json:"customerNetworks"`
}
type ConnectionCreateRequest ¶
type ConnectionCreateRequest struct {
ID string `json:"connectionId,omitempty"`
MgwId string `json:"mgwId,omitempty"`
NameTag string `json:"nameTag,omitempty"`
CustomerPrimaryGwIp string `json:"customerPrimaryGwIp,omitempty"`
CustomerSecondaryGwIp string `json:"customerSecondaryGwIp"`
ConnectionProfile string `json:"connectionProfile,omitempty"`
IpsecPskA string `json:"ipsecPskA,omitempty"`
IpsecPskB string `json:"ipsecPskB,omitempty"`
CancomNetworks []string `json:"cancomNetworks"`
CustomerNetworks []string `json:"customerNetworks"`
}
type ConnectionUpdateRequest ¶
type ConnectionUpdateRequest struct {
ID string `json:"connectionId,omitempty"`
//MgwId string `json:"mgwId,omitempty"`
NameTag string `json:"nameTag,omitempty"`
CustomerPrimaryGwIp string `json:"customerPrimaryGwIp,omitempty"`
CustomerSecondaryGwIp string `json:"customerSecondaryGwIp"`
ConnectionProfile string `json:"connectionProfile,omitempty"`
IpsecPskA string `json:"ipsecPskA,omitempty"`
IpsecPskB string `json:"ipsecPskB,omitempty"`
CancomNetworks []string `json:"cancomNetworks"`
CustomerNetworks []string `json:"customerNetworks"`
}
type Gateway ¶
type Gateway struct {
ID string `json:"mgwId"`
Message string `json:"message,omitempty"`
NameTag string `json:"nameTag,omitempty"`
Customer string `json:"customer,omitempty"`
State string `json:"state"`
CancomPrimaryGwIp string `json:"primaryGwPublicIp,omitempty"`
CancomSecondaryGwIp string `json:"secondaryGwPublicIp,omitempty"`
BastionNetwork string `json:"remoteBastionNetwork,omitempty"`
MgwSize string `json:"mgwSize,omitempty"`
Tag string `json:"tag,omitempty"`
NatTranslation bool `json:"natTranslation"`
BastionLiteLinux bool `json:"bastionLiteLinux"`
BastionLiteWindows bool `json:"bastionLiteWindows"`
NatNetwork string `json:"natNetwork,omitempty"`
}
type GatewayCreateRequest ¶
type GatewayCreateRequest struct {
ID string `json:"mgwId"`
NameTag string `json:"nameTag,omitempty"`
Customer string `json:"customer,omitempty"`
State string `json:"state"`
MgwSize string `json:"mgwSize,omitempty"`
Tag string `json:"tag,omitempty"`
NatTranslation bool `json:"natTranslation"`
BastionLiteLinux bool `json:"bastionLiteLinux"`
BastionLiteWindows bool `json:"bastionLiteWindows"`
}
type GatewayUpdateRequest ¶
type GatewayUpdateRequest struct {
ID string `json:"mgwId"`
NameTag string `json:"nameTag,omitempty"`
Customer string `json:"customer,omitempty"`
States string `json:"state"`
MgwSize string `json:"mgwSize,omitempty"`
Tag string `json:"tag,omitempty"`
NatTranslation bool `json:"natTranslation"`
BastionLiteLinux bool `json:"bastionLiteLinux"`
BastionLiteWindows bool `json:"bastionLiteWindows"`
}
type Translation ¶
type Translation struct {
ID string `json:"translationId,omitempty"`
MgwId string `json:"mgwId,omitempty"`
NameTag string `json:"nameTag,omitempty"`
SparkIp string `json:"sparkIp,omitempty"`
CustomerIp string `json:"customerIp,omitempty"`
DeploymentState string `json:"deploymentState,omitempty"`
DnsZone string `json:"dnsZone,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.