repo

package
v0.0.0-...-4ae6852 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateEnvironmentEntriesParams

type CreateEnvironmentEntriesParams struct {
	EnvironmentID uuid.UUID
	Names         []string
	Values        []string
}

type CreateEnvironmentParams

type CreateEnvironmentParams struct {
	OrganizationID string
	ProjectID      uuid.UUID
	Name           string
	Slug           string
	Description    pgtype.Text
}

type DBTX

type DBTX interface {
	Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error)
	Query(context.Context, string, ...interface{}) (pgx.Rows, error)
	QueryRow(context.Context, string, ...interface{}) pgx.Row
}

type DeleteEnvironmentEntryParams

type DeleteEnvironmentEntryParams struct {
	EnvironmentID uuid.UUID
	Name          string
}

type DeleteEnvironmentParams

type DeleteEnvironmentParams struct {
	Slug      string
	ProjectID uuid.UUID
}

type Environment

type Environment struct {
	ID             uuid.UUID
	OrganizationID string
	ProjectID      uuid.UUID
	Name           string
	Slug           string
	Description    pgtype.Text
	CreatedAt      pgtype.Timestamptz
	UpdatedAt      pgtype.Timestamptz
	DeletedAt      pgtype.Timestamptz
	Deleted        bool
}

type EnvironmentEntry

type EnvironmentEntry struct {
	Name          string
	Value         string
	EnvironmentID uuid.UUID
	CreatedAt     pgtype.Timestamptz
	UpdatedAt     pgtype.Timestamptz
}

type GetEnvironmentByIDParams

type GetEnvironmentByIDParams struct {
	ID        uuid.UUID
	ProjectID uuid.UUID
}

type GetEnvironmentBySlugParams

type GetEnvironmentBySlugParams struct {
	Slug      string
	ProjectID uuid.UUID
}

type ListEnvironmentEntriesParams

type ListEnvironmentEntriesParams struct {
	ProjectID     uuid.UUID
	EnvironmentID uuid.UUID
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) CreateEnvironment

func (q *Queries) CreateEnvironment(ctx context.Context, arg CreateEnvironmentParams) (Environment, error)

func (*Queries) CreateEnvironmentEntries

func (q *Queries) CreateEnvironmentEntries(ctx context.Context, arg CreateEnvironmentEntriesParams) ([]EnvironmentEntry, error)

func (*Queries) DeleteEnvironment

func (q *Queries) DeleteEnvironment(ctx context.Context, arg DeleteEnvironmentParams) error

func (*Queries) DeleteEnvironmentEntry

func (q *Queries) DeleteEnvironmentEntry(ctx context.Context, arg DeleteEnvironmentEntryParams) error

func (*Queries) GetEnvironmentByID

func (q *Queries) GetEnvironmentByID(ctx context.Context, arg GetEnvironmentByIDParams) (Environment, error)

func (*Queries) GetEnvironmentBySlug

func (q *Queries) GetEnvironmentBySlug(ctx context.Context, arg GetEnvironmentBySlugParams) (Environment, error)

returns: GetEnvironmentByIDRow

func (*Queries) ListEnvironmentEntries

func (q *Queries) ListEnvironmentEntries(ctx context.Context, arg ListEnvironmentEntriesParams) ([]EnvironmentEntry, error)

func (*Queries) ListEnvironments

func (q *Queries) ListEnvironments(ctx context.Context, projectID uuid.UUID) ([]Environment, error)

func (*Queries) UpdateEnvironment

func (q *Queries) UpdateEnvironment(ctx context.Context, arg UpdateEnvironmentParams) (Environment, error)

func (*Queries) UpsertEnvironmentEntry

func (q *Queries) UpsertEnvironmentEntry(ctx context.Context, arg UpsertEnvironmentEntryParams) (EnvironmentEntry, error)

func (*Queries) WithTx

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

type UpdateEnvironmentParams

type UpdateEnvironmentParams struct {
	Name        string
	Description pgtype.Text
	Slug        string
	ProjectID   uuid.UUID
}

type UpsertEnvironmentEntryParams

type UpsertEnvironmentEntryParams struct {
	EnvironmentID uuid.UUID
	Name          string
	Value         string
}

Jump to

Keyboard shortcuts

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