designate

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const RecordsetCountByZone = `` /* 257-byte string literal not displayed */
View Source
const RecordsetGetAllWithStatus = `` /* 699-byte string literal not displayed */
View Source
const ZoneGetAll = `-- name: zoneGetAll :many
SELECT id, name, tenant_id, status, type
FROM zones
WHERE deleted = '0'
`

Variables

This section is empty.

Functions

This section is empty.

Types

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 Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) RecordsetCountByZone

func (q *Queries) RecordsetCountByZone(ctx context.Context) ([]RecordsetCountByZoneRow, error)

RecordsetCountByZone returns counts for non-deleted zones, including empty zones.

func (*Queries) RecordsetGetAllWithStatus

func (q *Queries) RecordsetGetAllWithStatus(ctx context.Context) ([]RecordsetGetAllWithStatusRow, error)

RecordsetGetAllWithStatus returns recordsets in non-deleted zones. Status follows Designate's child record precedence and defaults to ACTIVE.

func (*Queries) WithTx

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

func (*Queries) ZoneGetAll

func (q *Queries) ZoneGetAll(ctx context.Context) ([]ZoneGetAllRow, error)

ZoneGetAll returns non-deleted zones with API-format UUIDs.

type Record

type Record struct {
	ID          string
	RecordsetID string
	Status      string
}

type Recordset

type Recordset struct {
	ID     string
	ZoneID string
	Name   string
	Type   string
}

type RecordsetCountByZoneRow

type RecordsetCountByZoneRow = recordsetCountByZoneRow

type RecordsetGetAllWithStatusRow

type RecordsetGetAllWithStatusRow = recordsetGetAllWithStatusRow

type Zone

type Zone struct {
	ID       string
	Name     string
	TenantID sql.NullString
	Status   string
	Type     string
	Deleted  string
}

type ZoneGetAllRow

type ZoneGetAllRow = zoneGetAllRow

Jump to

Keyboard shortcuts

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