Documentation ¶
Index ¶
- func InsertAssignment(db *sql.DB, assignmentID string) error
- func InsertAssignments(db *sql.DB, n int) error
- func InsertBranchEni(db *sql.DB, branchEni string, securitGroups []string, mac string) error
- func InsertBranchEniAttachment(db *sql.DB, branchEni, state string) error
- func InsertBranchEniAttachments(db *sql.DB, start, end int, state string) error
- func InsertBranchEnis(db *sql.DB, n int) error
- func InsertSecurityGroup(db *sql.DB, groupID string) error
- func InsertSubnet(db *sql.DB, subnetID string) error
- func InsertSubnets(db *sql.DB, n int) error
- func RandomPort() (string, error)
- type PostgresContainer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertBranchEni ¶
func InsertBranchEniAttachments ¶
Insert rows into branch_eni_attachments table for branch ENIs in range ["eni-<start>", "eni-<end>")
func InsertBranchEnis ¶
Insert N branc ENIs with id being eni-0, eni-1, ...
func InsertSubnets ¶
Insert N subnets with id being subnet-0, subnet-1, ...
func RandomPort ¶
Types ¶
type PostgresContainer ¶
type PostgresContainer struct {
// contains filtered or unexported fields
}
func StartPostgresContainer ¶
func StartPostgresContainer(ctx context.Context, name string) (*PostgresContainer, error)
Start a postgres container locally for testing.
func (*PostgresContainer) DBURL ¶
func (c *PostgresContainer) DBURL() string
Click to show internal directories.
Click to hide internal directories.