grpcdeploymentsql

package
v0.0.0-...-e127d2b Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateDeploymentK8sResourceParams

type CreateDeploymentK8sResourceParams struct {
	DeploymentID         uuid.UUID
	ExternalDeploymentID *string
	Group                string
	Version              string
	Kind                 string
	Name                 string
	Namespace            string
}

type CreateDeploymentParams

type CreateDeploymentParams struct {
	ExternalID       *string
	CreatedAt        pgtype.Timestamptz
	TeamSlug         slug.Slug
	Repository       *string
	EnvironmentName  string
	CommitSha        *string
	DeployerUsername *string
	TriggerUrl       *string
}

type CreateDeploymentStatusParams

type CreateDeploymentStatusParams struct {
	CreatedAt            pgtype.Timestamptz
	DeploymentID         uuid.UUID
	ExternalDeploymentID *string
	State                DeploymentState
	Message              string
}

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 DeploymentState

type DeploymentState string
const (
	DeploymentStateSuccess    DeploymentState = "success"
	DeploymentStateError      DeploymentState = "error"
	DeploymentStateFailure    DeploymentState = "failure"
	DeploymentStateInactive   DeploymentState = "inactive"
	DeploymentStateInProgress DeploymentState = "in_progress"
	DeploymentStateQueued     DeploymentState = "queued"
	DeploymentStatePending    DeploymentState = "pending"
)

func AllDeploymentStateValues

func AllDeploymentStateValues() []DeploymentState

func (*DeploymentState) Scan

func (e *DeploymentState) Scan(src interface{}) error

func (DeploymentState) Valid

func (e DeploymentState) Valid() bool

type NullDeploymentState

type NullDeploymentState struct {
	DeploymentState DeploymentState
	Valid           bool // Valid is true if DeploymentState is not NULL
}

func (*NullDeploymentState) Scan

func (ns *NullDeploymentState) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullDeploymentState) Value

func (ns NullDeploymentState) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type Querier

type Querier interface {
	CreateDeployment(ctx context.Context, arg CreateDeploymentParams) (uuid.UUID, error)
	CreateDeploymentK8sResource(ctx context.Context, arg CreateDeploymentK8sResourceParams) (uuid.UUID, error)
	CreateDeploymentStatus(ctx context.Context, arg CreateDeploymentStatusParams) (uuid.UUID, error)
	TeamExists(ctx context.Context, argSlug slug.Slug) (bool, error)
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) CreateDeployment

func (q *Queries) CreateDeployment(ctx context.Context, arg CreateDeploymentParams) (uuid.UUID, error)

func (*Queries) CreateDeploymentK8sResource

func (q *Queries) CreateDeploymentK8sResource(ctx context.Context, arg CreateDeploymentK8sResourceParams) (uuid.UUID, error)

func (*Queries) CreateDeploymentStatus

func (q *Queries) CreateDeploymentStatus(ctx context.Context, arg CreateDeploymentStatusParams) (uuid.UUID, error)

func (*Queries) TeamExists

func (q *Queries) TeamExists(ctx context.Context, argSlug slug.Slug) (bool, error)

func (*Queries) WithTx

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

Jump to

Keyboard shortcuts

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