keystone

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: Apache-2.0 Imports: 2 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 ListDomains = `` /* 182-byte string literal not displayed */
View Source
const ListGroups = `-- name: ListGroups :many
SELECT 
    id,
    domain_id,
    name,
    COALESCE(description, '') as description
FROM ` + "`" + `group` + "`" + `
`
View Source
const ListProjects = `` /* 434-byte string literal not displayed */
View Source
const ListRegions = `` /* 156-byte string literal not displayed */
View Source
const ListUsers = `` /* 174-byte string literal not displayed */

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 Group

type Group struct {
	ID          string
	DomainID    string
	Name        string
	Description sql.NullString
	Extra       sql.NullString
}

type ListDomainsRow

type ListDomainsRow struct {
	ID          string
	Name        string
	Description string
	Enabled     sql.NullBool
}

type ListGroupsRow

type ListGroupsRow struct {
	ID          string
	DomainID    string
	Name        string
	Description string
}

type ListProjectsRow

type ListProjectsRow struct {
	ID          string
	Name        string
	Description string
	Enabled     sql.NullBool
	DomainID    string
	ParentID    string
	IsDomain    bool
	Tags        interface{}
}

type ListRegionsRow

type ListRegionsRow struct {
	ID             string
	Description    string
	ParentRegionID string
}

type ListUsersRow

type ListUsersRow struct {
	ID               string
	Enabled          sql.NullBool
	DomainID         string
	DefaultProjectID string
	CreatedAt        sql.NullTime
	LastActiveAt     sql.NullTime
}

type Project

type Project struct {
	ID          string
	Name        string
	Extra       sql.NullString
	Description sql.NullString
	Enabled     sql.NullBool
	DomainID    string
	ParentID    sql.NullString
	IsDomain    bool
}

type ProjectTag

type ProjectTag struct {
	ProjectID string
	Name      string
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) ListDomains

func (q *Queries) ListDomains(ctx context.Context) ([]ListDomainsRow, error)

func (*Queries) ListGroups

func (q *Queries) ListGroups(ctx context.Context) ([]ListGroupsRow, error)

func (*Queries) ListProjects

func (q *Queries) ListProjects(ctx context.Context) ([]ListProjectsRow, error)

func (*Queries) ListRegions

func (q *Queries) ListRegions(ctx context.Context) ([]ListRegionsRow, error)

func (*Queries) ListUsers

func (q *Queries) ListUsers(ctx context.Context) ([]ListUsersRow, error)

func (*Queries) WithTx

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

type Region

type Region struct {
	ID             string
	Description    string
	ParentRegionID sql.NullString
	Extra          sql.NullString
}

type User

type User struct {
	ID               string
	Extra            sql.NullString
	Enabled          sql.NullBool
	DefaultProjectID sql.NullString
	CreatedAt        sql.NullTime
	LastActiveAt     sql.NullTime
	DomainID         string
}

Jump to

Keyboard shortcuts

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