connections

package
v0.0.0-...-e794f14 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connections

type Connections struct {
	ID                  string       `json:"id"`
	Name                string       `json:"name"`
	Status              string       `json:"status"`
	VgwId               string       `json:"vgw_id"`
	VgwIp               string       `json:"vgw_ip"`
	Style               string       `json:"style"`
	CgwId               string       `json:"cgw_id"`
	PeerSubnets         []string     `json:"peer_subnets"`
	TunnelLocalAddress  string       `json:"tunnel_local_address"`
	TunnelPeerAddress   string       `json:"tunnel_peer_address"`
	EnableNqa           bool         `json:"enable_nqa"`
	PolicyRules         []PolicyRule `json:"policy_rules"`
	Ikepolicy           IkePolicy    `json:"ikepolicy"`
	Ipsecpolicy         IpsecPolicy  `json:"ipsecpolicy"`
	CreatedAt           string       `json:"created_at"`
	UpdatedAt           string       `json:"updated_at"`
	EnterpriseProjectID string       `json:"enterprise_project_id"`
	ConnectionMonitorID string       `json:"connection_monitor_id"`
	HaRole              string       `json:"ha_role"`
}

func List

func List(c *golangsdk.ServiceClient, opts ListOpts) ([]Connections, error)

type ConnectionsPage

type ConnectionsPage struct {
	pagination.MarkerPageBase
}

func (ConnectionsPage) IsEmpty

func (r ConnectionsPage) IsEmpty() (bool, error)

IsEmpty returns true if a ListResult is empty.

func (ConnectionsPage) LastMarker

func (r ConnectionsPage) LastMarker() (string, error)

LastMarker returns the last marker index in a ListResult.

type Dpd

type Dpd struct {
	Timeout  int    `json:"timeout"`
	Interval int    `json:"interval"`
	Msg      string `json:"msg"`
}

type IkePolicy

type IkePolicy struct {
	IkeVersion              string `json:"ike_version"`
	Phase1NegotiationMode   string `json:"phase1_negotiation_mode"`
	AuthenticationAlgorithm string `json:"authentication_algorithm"`
	EncryptionAlgorithm     string `json:"encryption_algorithm"`
	DhGroup                 string `json:"dh_group"`
	AuthenticationMethod    string `json:"authentication_method"`
	LifetimeSeconds         int    `json:"lifetime_seconds"`
	LocalIdType             string `json:"local_id_type"`
	LocalId                 string `json:"local_id"`
	PeerIdType              string `json:"peer_id_type"`
	PeerId                  string `json:"peer_id"`
	Dpd                     Dpd    `json:"dpd"`
}

type IpsecPolicy

type IpsecPolicy struct {
	AuthenticationAlgorithm string `json:"authentication_algorithm"`
	EncryptionAlgorithm     string `json:"encryption_algorithm"`
	Pfs                     string `json:"pfs"`
	TransformProtocol       string `json:"transform_protocol"`
	LifetimeSeconds         int64  `json:"lifetime_seconds"`
	EncapsulationMode       string `json:"encapsulation_mode"`
}

type ListOpts

type ListOpts struct {
	Limit  int    `q:"limit"`
	Marker string `q:"marker"`
}

type PolicyRule

type PolicyRule struct {
	RuleIndex   int      `json:"rule_index"`
	Source      string   `json:"source"`
	Destination []string `json:"destination"`
}

Jump to

Keyboard shortcuts

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