octavia

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const GetAllAmphora = `` /* 201-byte string literal not displayed */
View Source
const GetAllLoadBalancersWithVip = `` /* 316-byte string literal not displayed */
View Source
const GetAllPools = `` /* 225-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

type Amphora

type Amphora struct {
	ID             string
	ComputeID      sql.NullString
	Status         string
	LoadBalancerID sql.NullString
	LbNetworkIp    sql.NullString
	VrrpIp         sql.NullString
	HaIp           sql.NullString
	VrrpPortID     sql.NullString
	HaPortID       sql.NullString
	Role           sql.NullString
	CertExpiration sql.NullTime
	CertBusy       bool
	VrrpInterface  sql.NullString
	VrrpID         sql.NullInt32
	VrrpPriority   sql.NullInt32
	CachedZone     sql.NullString
	CreatedAt      sql.NullTime
	UpdatedAt      sql.NullTime
	ImageID        sql.NullString
	ComputeFlavor  sql.NullString
}

type DBTX

type DBTX interface {
	ExecContext(context.Context, string, ...interface{}) (sql.Result, error)
	PrepareContext(context.Context, string) (*sql.Stmt, error)
	QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
	QueryRowContext(context.Context, string, ...interface{}) *sql.Row
}

type GetAllAmphoraRow

type GetAllAmphoraRow struct {
	ID             string
	ComputeID      sql.NullString
	Status         string
	LoadBalancerID sql.NullString
	LbNetworkIp    sql.NullString
	HaIp           sql.NullString
	Role           sql.NullString
	CertExpiration sql.NullTime
}

type GetAllLoadBalancersWithVipRow

type GetAllLoadBalancersWithVipRow struct {
	ID                 string
	ProjectID          sql.NullString
	Name               sql.NullString
	ProvisioningStatus string
	OperatingStatus    string
	Provider           sql.NullString
	VipAddress         sql.NullString
}

type GetAllPoolsRow

type GetAllPoolsRow struct {
	ID                 string
	ProjectID          sql.NullString
	Name               sql.NullString
	Protocol           string
	LbAlgorithm        string
	OperatingStatus    string
	LoadBalancerID     sql.NullString
	ProvisioningStatus string
}

type LoadBalancer

type LoadBalancer struct {
	ProjectID          sql.NullString
	ID                 string
	Name               sql.NullString
	Description        sql.NullString
	ProvisioningStatus string
	OperatingStatus    string
	Enabled            bool
	Topology           sql.NullString
	ServerGroupID      sql.NullString
	CreatedAt          sql.NullTime
	UpdatedAt          sql.NullTime
	Provider           sql.NullString
	FlavorID           sql.NullString
	AvailabilityZone   sql.NullString
}

type Pool

type Pool struct {
	ProjectID          sql.NullString
	ID                 string
	Name               sql.NullString
	Description        sql.NullString
	Protocol           string
	LbAlgorithm        string
	OperatingStatus    string
	Enabled            bool
	LoadBalancerID     sql.NullString
	CreatedAt          sql.NullTime
	UpdatedAt          sql.NullTime
	ProvisioningStatus string
	TlsCertificateID   sql.NullString
	CaTlsCertificateID sql.NullString
	CrlContainerID     sql.NullString
	TlsEnabled         bool
	TlsCiphers         sql.NullString
	TlsVersions        sql.NullString
	AlpnProtocols      sql.NullString
}

type Queries

type Queries struct {
	// contains filtered or unexported fields
}

func New

func New(db DBTX) *Queries

func (*Queries) GetAllAmphora

func (q *Queries) GetAllAmphora(ctx context.Context) ([]GetAllAmphoraRow, error)

func (*Queries) GetAllLoadBalancersWithVip

func (q *Queries) GetAllLoadBalancersWithVip(ctx context.Context) ([]GetAllLoadBalancersWithVipRow, error)

func (*Queries) GetAllPools

func (q *Queries) GetAllPools(ctx context.Context) ([]GetAllPoolsRow, error)

func (*Queries) WithTx

func (q *Queries) WithTx(tx *sql.Tx) *Queries

type Vip

type Vip struct {
	LoadBalancerID string
	IpAddress      sql.NullString
	PortID         sql.NullString
	SubnetID       sql.NullString
	NetworkID      sql.NullString
	QosPolicyID    sql.NullString
	OctaviaOwned   sql.NullBool
	VnicType       string
}

Jump to

Keyboard shortcuts

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