sqlc

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 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 DeleteIngestedFilesByEnvironmentParams

type DeleteIngestedFilesByEnvironmentParams struct {
	EnvironmentType string
	EnvironmentName string
}

type Docker

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

type GetIngestedFilesByEnvironmentParams

type GetIngestedFilesByEnvironmentParams struct {
	EnvironmentType string
	EnvironmentName string
}

type GetIngestedFilesByEnvironmentRow

type GetIngestedFilesByEnvironmentRow struct {
	FilePath   string
	IngestedAt *time.Time
}

type IngestedFile

type IngestedFile struct {
	EnvironmentType string
	EnvironmentName string
	FilePath        string
	IngestedAt      *time.Time
}

type InsertDockerParams

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

type InsertIngestedFileParams

type InsertIngestedFileParams struct {
	EnvironmentType string
	EnvironmentName string
	FilePath        string
}

type InsertK8sParams

type InsertK8sParams struct {
	Name          string
	Directory     string
	Context       string
	ApiUrl        string
	GuiUrl        string
	BackofficeUrl string
	Protocol      string
	TlsEnabled    bool
}

type K8s

type K8s struct {
	Name          string
	Directory     string
	Context       string
	ApiUrl        string
	GuiUrl        string
	BackofficeUrl string
	Protocol      string
	TlsEnabled    bool
}

type LatestReleaseCache

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) DeleteIngestedFilesByEnvironment

func (q *Queries) DeleteIngestedFilesByEnvironment(ctx context.Context, arg DeleteIngestedFilesByEnvironmentParams) error

func (*Queries) DeleteK8s

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

func (*Queries) GetAllDocker

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

Docker queries

func (*Queries) GetAllK8s

func (q *Queries) GetAllK8s(ctx context.Context) ([]K8s, error)

K8s queries

func (*Queries) GetDockerByName

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

func (*Queries) GetK8sByName

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

func (*Queries) GetLatestReleaseCache

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) InsertIngestedFile

func (q *Queries) InsertIngestedFile(ctx context.Context, arg InsertIngestedFileParams) error

func (*Queries) InsertK8s

func (q *Queries) InsertK8s(ctx context.Context, arg InsertK8sParams) (K8s, error)

func (*Queries) UpsertLatestReleaseCache

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

func (*Queries) WithTx

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

type UpsertLatestReleaseCacheParams

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