neutron

package
v0.0.0-...-2ab8be3 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	model.Resource
	Binary           string `json:"binary"`
	Host             string `json:"host,omitempty"`
	Topic            string `json:"topic,omitempty"`
	AgentType        string `json:"agent_type,omitempty"`
	AvailabilityZone string `json:"availability_zone"`
	Alive            bool   `json:"alive,omitempty"`
	AdminStateUp     bool   `json:"admin_state_up,omitempty"`
}

type AllocationPool

type AllocationPool struct {
	Start string `json:"start,omitempty"`
	End   string `json:"end,omitempty"`
}

type FixedIp

type FixedIp struct {
	SubnetId  string `json:"subnet_id"`
	IpAddress string `json:"ip_address"`
}

type Network

type Network struct {
	model.Resource
	AdminStateUp            bool     `json:"admin_state_up"`
	Shared                  bool     `json:"shared"`
	Subnets                 []string `json:"subnets"`
	AvailabilityZones       []string `json:"availability_zones"`
	AvailabilityZoneHints   []string `json:"availability_zone_hints,omitempty"`
	Mtu                     int      `json:"mtu"`
	Tags                    []string `json:"tags,omitempty"`
	RouterExternal          bool     `json:"router:external,omitempty"`
	ProviderSegmentation    int      `json:"provider:segmentation_id,omitempty"`
	ProviderNetworkType     string   `json:"provider:network_type,omitempty"`
	ProviderPhysicalNetwork string   `json:"provider:physical_network,omitempty"`
	QosPolicyId             string   `json:"qos_policy_id,omitempty"`
	IsDefault               bool     `json:"is_default,omitempty"`
	PortSecurityEnabled     bool     `json:"port_security_enabled,omitempty"`
}

type Networks

type Networks []Network

type Port

type Port struct {
	model.Resource
	MACAddress      string                 `json:"mac_address"`
	BindingHostId   string                 `json:"binding:host_id,omitempty"`
	BindingVnicType string                 `json:"binding:vnic_type,omitempty"`
	BindingVifType  string                 `json:"binding:vif_type,omitempty"`
	BindingDetails  map[string]interface{} `json:"binding:vif_details,omitempty"`
	QosPolicyId     string                 `json:"qos_policy_id:host_id,omitempty"`
	FixedIps        []FixedIp              `json:"fixed_ips"`
	DeviceOwner     string                 `json:"device_owner"`
	DeviceId        string                 `json:"device_id"`
	SecurityGroups  []string               `json:"security_groups"`
	RevsionNumber   int                    `json:"revision_number"`
	TenantId        string                 `json:"tenant_id,omitempty"`
}

func (Port) IsActive

func (port Port) IsActive() bool

func (Port) MarshalVifDetails

func (port Port) MarshalVifDetails() string

func (Port) VifDetailList

func (port Port) VifDetailList() []string

type Ports

type Ports []Port

type Router

type Router struct {
	model.Resource
	AdminStateUp          bool                   `json:"admin_state_up,omitempty"`
	Distributed           bool                   `json:"distributed,omitempty"`
	HA                    bool                   `json:"ha,omitempty"`
	Routes                []string               `json:"routes,omitempty"`
	RevsionNumber         int                    `json:"revision_number,omitempty"`
	ExternalGatewayInfo   map[string]interface{} `json:"external_gateway_info,omitempty"`
	AvailabilityZones     []string               `json:"availability_zones,omitempty"`
	AvailabilityZoneHints []string               `json:"availability_zone_hints,omitempty"`
	Tags                  []string               `json:"tags,omitempty"`
}

func (Router) MarshalExternalGatewayInfo

func (router Router) MarshalExternalGatewayInfo() string

type Routers

type Routers []Router

type SecurityGroup

type SecurityGroup struct {
	model.Resource
}

type SecurityGroups

type SecurityGroups []SecurityGroup

type Subnet

type Subnet struct {
	model.Resource
	NetworkId       string           `json:"network_id,omitempty"`
	Cidr            string           `json:"cidr,omitempty"`
	HostRouters     []string         `json:"host_routes,omitempty"`
	RevisionNumber  int              `json:"revision_number,omitempty"`
	IpVersion       int              `json:"ip_version,omitempty"`
	Tags            []string         `json:"tags,omitempty"`
	EnableDhcp      bool             `json:"enable_dhcp,omitempty"`
	GatewayIp       string           `json:"gateway_ip,omitempty"`
	AllocationPools []AllocationPool `json:"allocation_pools,omitempty"`
}

func (Subnet) GetAllocationPoolsList

func (subnet Subnet) GetAllocationPoolsList() []string

Jump to

Keyboard shortcuts

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