sqlc

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 Docker

type Docker struct {
	Name           string
	Directory      string
	ApiUrl         string
	GuiUrl         string
	BackofficeUrl  string
	ApiPort        int64
	GuiPort        int64
	BackofficePort int64
}

type InsertDockerParams

type InsertDockerParams struct {
	Name           string
	Directory      string
	ApiUrl         string
	GuiUrl         string
	BackofficeUrl  string
	GuiPort        int64
	ApiPort        int64
	BackofficePort int64
}

type InsertKubernetesParams

type InsertKubernetesParams struct {
	Name          string
	Directory     string
	Context       string
	ApiUrl        string
	GuiUrl        string
	BackofficeUrl string
	Protocol      string
}

type Kubernetes

type Kubernetes struct {
	Name          string
	Directory     string
	Context       string
	ApiUrl        string
	GuiUrl        string
	BackofficeUrl string
	Protocol      string
}

type LatestReleaseCache added in v0.8.0

type LatestReleaseCache struct {
	ID        int64
	TagName   string
	FetchedAt *time.Time
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) DeleteDocker

func (q *Queries) DeleteDocker(ctx context.Context, name string) error

func (*Queries) DeleteKubernetes

func (q *Queries) DeleteKubernetes(ctx context.Context, name string) error

func (*Queries) GetAllDocker

func (q *Queries) GetAllDocker(ctx context.Context) ([]Docker, error)

Docker queries

func (*Queries) GetAllKubernetes

func (q *Queries) GetAllKubernetes(ctx context.Context) ([]Kubernetes, error)

Kubernetes queries

func (*Queries) GetDockerByName

func (q *Queries) GetDockerByName(ctx context.Context, name string) (Docker, error)

func (*Queries) GetKubernetesByName

func (q *Queries) GetKubernetesByName(ctx context.Context, name string) (Kubernetes, error)

func (*Queries) GetLatestReleaseCache added in v0.8.0

func (q *Queries) GetLatestReleaseCache(ctx context.Context) (LatestReleaseCache, error)

func (*Queries) InsertDocker

func (q *Queries) InsertDocker(ctx context.Context, arg InsertDockerParams) (Docker, error)

func (*Queries) InsertKubernetes

func (q *Queries) InsertKubernetes(ctx context.Context, arg InsertKubernetesParams) (Kubernetes, error)

func (*Queries) UpsertLatestReleaseCache added in v0.8.0

func (q *Queries) UpsertLatestReleaseCache(ctx context.Context, arg UpsertLatestReleaseCacheParams) error

func (*Queries) WithTx

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

type UpsertLatestReleaseCacheParams added in v0.8.0

type UpsertLatestReleaseCacheParams struct {
	TagName   string
	FetchedAt *time.Time
}

Jump to

Keyboard shortcuts

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