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 FixedIp ¶
type HostRouter ¶
type Network ¶
type Network struct { model.Resource AdminStateUp bool `json:"admin_state_up"` 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 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) MarshalBindingProfile ¶
func (Port) MarshalVifDetails ¶
func (Port) VifDetailList ¶
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 ¶
type SecurityGroup ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.