neutron

package
v0.0.0-...-78eb850 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 5 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,omitempty"`
	IpAddress string `json:"ip_address,omitempty"`
}

func (FixedIp) String

func (fixedIp FixedIp) String() string

type HostRouter

type HostRouter struct {
	NextHop     string `json:"nexthop,omitempty"`
	Destination string `json:"destination,omitempty"`
}

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
	AdminStateUp    bool                   `json:"admin_state_up,omitempty"`
	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"`
	BindingProfile  map[string]interface{} `json:"binding:profile,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"`
}

func (Port) GetFixedIpaddress

func (port Port) GetFixedIpaddress() []string

func (Port) IsActive

func (port Port) IsActive() bool

func (Port) IsUnbound

func (port Port) IsUnbound() bool

func (Port) MarshalBindingProfile

func (port Port) MarshalBindingProfile() string

func (Port) MarshalVifDetails

func (port Port) MarshalVifDetails() string

func (Port) VifDetailList

func (port Port) VifDetailList() []string

type Ports

type Ports []Port

type QosPolicy

type QosPolicy struct {
	model.Resource
	Shared  bool      `json:"shared,omitempty"`
	Default bool      `json:"default,omitempty"`
	Rules   []QosRule `json:"rules"`
}

type QosRule

type QosRule struct {
	model.Resource
	QosPolicyId  string `json:"qos_policy_id,omitempty"`
	Type         string `json:"type,omitempty"`
	Direction    string `json:"direction,omitempty"`
	MaxKbps      int    `json:"max_kbps,omitempty"`
	MinKbps      int    `json:"min_kbps,omitempty"`
	MaxBurstKbps int    `json:"max_burst_kbps,omitempty"`
}

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
	Tags           []string            `json:"tags,omitempty"`
	Default        bool                `json:"default,omitempty"`
	RevisionNumber int                 `json:"revision_number,omitempty"`
	Rules          []SecurityGroupRule `json:"security_group_rules,omitempty"`
}

type SecurityGroupRule

type SecurityGroupRule struct {
	model.Resource
	SecurityGroupId string `json:"security_group_id,omitempty"`
	Direction       string `json:"direction,omitempty"`
	Ethertype       string `json:"ethertype,omitempty"`
	PortRangeMin    int    `json:"port_range_min,omitempty"`
	PortRangeMax    int    `json:"port_range_max,omitempty"`
	Protocol        string `json:"protocol,omitempty"`
	RemoteGroupId   string `json:"remote_group_id"`
	RemoteIpPrefix  string `json:"remote_ip_prefix,omitempty"`
	RevisionNumber  int    `json:"revision_number,omitempty"`
}

func (SecurityGroupRule) PortRange

func (rule SecurityGroupRule) PortRange() string

func (SecurityGroupRule) String

func (rule SecurityGroupRule) String() string

type SecurityGroups

type SecurityGroups []SecurityGroup

type Subnet

type Subnet struct {
	model.Resource
	NetworkId       string           `json:"network_id,omitempty"`
	Cidr            string           `json:"cidr,omitempty"`
	HostRouters     []HostRouter     `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