Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FloatingIP ¶
type FloatingIP struct {
bun.BaseModel `bun:"table:openstack_floating_ip"`
coremodels.Model
FloatingIPID string `bun:"floating_ip_id,notnull,unique:openstack_floating_ip_key"`
ProjectID string `bun:"project_id,notnull,unique:openstack_floating_ip_key"`
Domain string `bun:"domain,notnull"`
Region string `bun:"region,notnull"`
FloatingIP net.IP `bun:"floating_ip,notnull"`
FloatingNetworkID string `bun:"floating_network_id,notnull"`
PortID string `bun:"port_id,notnull"`
RouterID string `bun:"router_id,notnull"`
FixedIP net.IP `bun:"fixed_ip,notnull"`
Description string `bun:"description,notnull"`
TimeCreated time.Time `bun:"ip_created_at,notnull"`
TimeUpdated time.Time `bun:"ip_updated_at,notnull"`
}
FloatingIP represents an OpenStack Floating IP.
type LoadBalancer ¶
type LoadBalancer struct {
bun.BaseModel `bun:"table:openstack_loadbalancer"`
coremodels.Model
LoadBalancerID string `bun:"loadbalancer_id,notnull,unique:openstack_loadbalancer_key"`
Name string `bun:"name,notnull"`
ProjectID string `bun:"project_id,notnull,unique:openstack_loadbalancer_key"`
Domain string `bun:"domain,notnull"`
Region string `bun:"region,notnull"`
Status string `bun:"status,notnull"`
Provider string `bun:"provider,notnull"`
VipAddress string `bun:"vip_address,notnull"`
VipNetworkID string `bun:"vip_network_id,notnull"`
VipSubnetID string `bun:"vip_subnet_id,notnull"`
Description string `bun:"description,notnull"`
TimeCreated time.Time `bun:"loadbalancer_created_at,notnull"`
TimeUpdated time.Time `bun:"loadbalancer_updated_at,notnull"`
Subnet *Subnet `bun:"rel:has-one,join:vip_subnet_id=subnet_id,join:project_id=project_id"`
}
LoadBalancer represents an OpenStack LoadBalancer.
type LoadBalancerToSubnet ¶
type LoadBalancerToSubnet struct {
bun.BaseModel `bun:"table:l_openstack_loadbalancer_to_subnet"`
coremodels.Model
LoadBalancerID uuid.UUID `bun:"lb_id,notnull"`
SubnetID uuid.UUID `bun:"subnet_id,notnull"`
}
LoadBalancerToSubnet represents a link table connecting LoadBalancers with Subnets.
type Network ¶
type Network struct {
bun.BaseModel `bun:"table:openstack_network"`
coremodels.Model
NetworkID string `bun:"network_id,notnull,unique:openstack_network_key"`
Name string `bun:"name,notnull"`
ProjectID string `bun:"project_id,notnull,unique:openstack_network_key"`
Domain string `bun:"domain,notnull"`
Region string `bun:"region,notnull"`
Status string `bun:"status,notnull"`
Description string `bun:"description,notnull"`
TimeCreated time.Time `bun:"network_created_at,notnull"`
TimeUpdated time.Time `bun:"network_updated_at,notnull"`
}
Network represents an OpenStack Network.
type Server ¶
type Server struct {
bun.BaseModel `bun:"table:openstack_server"`
coremodels.Model
ServerID string `bun:"server_id,notnull,unique:openstack_server_key"`
Name string `bun:"name,notnull"`
ProjectID string `bun:"project_id,notnull,unique:openstack_server_key"`
Domain string `bun:"domain,notnull"`
Region string `bun:"region,notnull"`
UserID string `bun:"user_id,notnull"`
AvailabilityZone string `bun:"availability_zone,notnull"`
Status string `bun:"status,notnull"`
ImageID string `bun:"image_id,notnull"`
TimeCreated time.Time `bun:"server_created_at,notnull"`
TimeUpdated time.Time `bun:"server_updated_at,notnull"`
}
Server represents an OpenStack Server.
type Subnet ¶
type Subnet struct {
bun.BaseModel `bun:"table:openstack_subnet"`
coremodels.Model
SubnetID string `bun:"subnet_id,notnull,unique:openstack_subnet_key"`
Name string `bun:"name,notnull"`
ProjectID string `bun:"project_id,notnull,unique:openstack_subnet_key"`
Domain string `bun:"domain,notnull"`
Region string `bun:"region,notnull"`
NetworkID string `bun:"network_id,notnull"`
GatewayIP string `bun:"gateway_ip,notnull"`
CIDR string `bun:"cidr,notnull"`
SubnetPoolID string `bun:"subnet_pool_id,notnull"`
EnableDHCP bool `bun:"enable_dhcp,notnull"`
IPVersion int `bun:"ip_version,notnull"`
Description string `bun:"description,notnull"`
Network *Network `bun:"rel:has-one,join:network_id=network_id,join:project_id=project_id"`
}
Subnet represents an OpenStack Subnet.
type SubnetToNetwork ¶
type SubnetToNetwork struct {
bun.BaseModel `bun:"table:l_openstack_subnet_to_network"`
coremodels.Model
SubnetID uuid.UUID `bun:"subnet_id,notnull"`
NetworkID uuid.UUID `bun:"network_id,notnull"`
}
SubnetToNetwork represents a link table connecting Subnets with Networks.
Click to show internal directories.
Click to hide internal directories.