client_cmsmgw

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client client.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

func (c *Client) DeleteConnection(connectionID string) error

Delete Connection - delete connection

func (*Client) DeleteGateway

func (c *Client) DeleteGateway(mgwID string) error

Delete mgw

func (*Client) DeleteTranslation

func (c *Client) DeleteTranslation(translationId string) error

func (*Client) GetConnection

func (c *Client) GetConnection(connectionID string) (*Connection, error)

GetConnection - Returns a specific connection

func (*Client) GetGateway

func (c *Client) GetGateway(mgwID string) (*Gateway, error)

----------------------------------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"`
}

type TranslationCreateRequest

type TranslationCreateRequest struct {
	MgwId      string `json:"mgwId,omitempty"`
	NameTag    string `json:"nameTag,omitempty"`
	SparkIp    string `json:"sparkIp,omitempty"`
	CustomerIp string `json:"customerIp,omitempty"`
	DnsZone    string `json:"dnsZone,omitempty"`
}

type TranslationUpdateRequest

type TranslationUpdateRequest struct {
	MgwId      string `json:"mgwId,omitempty"`
	NameTag    string `json:"nameTag,omitempty"`
	SparkIp    string `json:"sparkIp,omitempty"`
	CustomerIp string `json:"customerIp,omitempty"`
	DnsZone    string `json:"dnsZone,omitempty"`
}

Jump to

Keyboard shortcuts

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