network

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSP

type CSP struct {
	Name          string          `json:"name"`
	VPC           []VPC           `json:"vpc"`
	NLB           []NLB           `json:"nlb"`
	SecurityGroup []SecurityGroup `json:"security_group"`
}

CSP TODO

type DNS

type DNS struct {
	DNSServer []string `json:"dns_server"` // IPv4 or IPv6 DNS Server Addresses
}

DNS TODO

type FirewallRule

type FirewallRule struct {
	Priority  uint   `json:"priority"` // Lower has higher priority
	Src       string `json:"src"`
	Dst       string `json:"dst"`
	SrcPorts  string `json:"src_ports"`
	DstPorts  string `json:"dst_ports"`
	Protocol  string `json:"protocol"`  // TCP, UDP, ICMP
	Direction string `json:"direction"` // inbound, outbound
	Action    string `json:"action"`    // allow, deny
}

type Host

type Host struct {
	NetworkInterface []NIC          `json:"network_interface"`
	DNS              DNS            `json:"dns"`
	Route            []Route        `json:"route"`
	FirewallRule     []FirewallRule `json:"firewall_rule"`
}

type NIC

type NIC struct {
	Interface  string   `json:"interface"`
	Address    []string `json:"address"`
	Gateway    []string `json:"gateway"`
	MACAddress string   `json:"mac_address"`
	MTU        int      `json:"mtu"`
}

type NLB

type NLB struct {
	ID            string `json:"id"`
	Name          string `json:"name"`
	Description   string `json:"description"`
	Listener      string `json:"listener"`
	TargetGroup   string `json:"target_group"`
	HealthChecker string `json:"health_checker"`
}

NLB TODO

type Network

type Network struct {
	Host Host `json:"host"`
	CSP  CSP  `json:"csp"`
}

type Route

type Route struct {
	Destination string `json:"destination"`
	Netmask     string `json:"netmask"`
	NextHop     string `json:"next_hop"`
}

type SecurityGroup

type SecurityGroup struct {
	ID           string         `json:"id"`
	Name         string         `json:"name"`
	Description  string         `json:"description"`
	VnetID       string         `json:"vnet_id"`
	FirewallRule []FirewallRule `json:"firewall_rule"`
}

SecurityGroup TODO

type Subnet

type Subnet struct {
	Name     string `json:"name"`
	IPv4CIDR string `json:"ipv4_cidr"` // IPv4 Network Address with CIDR Prefix Length
	IPv6CIDR string `json:"ipv6_cidr"` // IPv6 Network Address with CIDR Prefix Length
}

Subnet TODO

type VPC

type VPC struct {
	ID           string   `json:"id"`
	Region       string   `json:"region"`
	AddressSpace []string `json:"address_space"` // IPv4 CIDR or IPv6 CIDR
	Subnet       []Subnet `json:"subnet"`
	DNSServer    []DNS    `json:"dns_server"`
}

VPC TODO

Jump to

Keyboard shortcuts

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