Documentation
¶
Index ¶
- type DBTX
- type Deployment
- type DeploymentK8sResource
- type DeploymentState
- type DeploymentStatus
- type LatestDeploymentTimestampForWorkloadParams
- type ListByTeamSlugParams
- type ListByTeamSlugRow
- type ListForWorkloadParams
- type ListForWorkloadRow
- type ListParams
- type ListResourcesForDeploymentParams
- type ListResourcesForDeploymentRow
- type ListRow
- type ListStatusesForDeploymentParams
- type ListStatusesForDeploymentRow
- type NullDeploymentState
- type Querier
- type Queries
- func (q *Queries) CleanupNaisVerification(ctx context.Context) (pgconn.CommandTag, error)
- func (q *Queries) LatestDeploymentTimestampForWorkload(ctx context.Context, arg LatestDeploymentTimestampForWorkloadParams) (pgtype.Timestamptz, error)
- func (q *Queries) List(ctx context.Context, arg ListParams) ([]*ListRow, error)
- func (q *Queries) ListByIDs(ctx context.Context, ids []uuid.UUID) ([]*Deployment, error)
- func (q *Queries) ListByTeamSlug(ctx context.Context, arg ListByTeamSlugParams) ([]*ListByTeamSlugRow, error)
- func (q *Queries) ListDeploymentResourcesByIDs(ctx context.Context, ids []uuid.UUID) ([]*DeploymentK8sResource, error)
- func (q *Queries) ListDeploymentStatusesByIDs(ctx context.Context, ids []uuid.UUID) ([]*DeploymentStatus, error)
- func (q *Queries) ListForWorkload(ctx context.Context, arg ListForWorkloadParams) ([]*ListForWorkloadRow, error)
- func (q *Queries) ListResourcesForDeployment(ctx context.Context, arg ListResourcesForDeploymentParams) ([]*ListResourcesForDeploymentRow, error)
- func (q *Queries) ListStatusesForDeployment(ctx context.Context, arg ListStatusesForDeploymentParams) ([]*ListStatusesForDeploymentRow, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deployment ¶
type DeploymentK8sResource ¶
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 DeploymentStatus ¶
type DeploymentStatus struct {
ID uuid.UUID
CreatedAt pgtype.Timestamptz
DeploymentID uuid.UUID
State DeploymentState
Message string
}
type ListByTeamSlugParams ¶
type ListByTeamSlugRow ¶
type ListByTeamSlugRow struct {
Deployment Deployment
TotalCount int64
}
type ListForWorkloadParams ¶
type ListForWorkloadRow ¶
type ListForWorkloadRow struct {
Deployment Deployment
TotalCount int64
}
type ListParams ¶
type ListResourcesForDeploymentRow ¶
type ListResourcesForDeploymentRow struct {
DeploymentK8sResource DeploymentK8sResource
TotalCount int64
}
type ListRow ¶
type ListRow struct {
Deployment Deployment
TotalCount int64
}
type ListStatusesForDeploymentRow ¶
type ListStatusesForDeploymentRow struct {
DeploymentStatus DeploymentStatus
TotalCount int64
}
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.
type Querier ¶
type Querier interface {
CleanupNaisVerification(ctx context.Context) (pgconn.CommandTag, error)
LatestDeploymentTimestampForWorkload(ctx context.Context, arg LatestDeploymentTimestampForWorkloadParams) (pgtype.Timestamptz, error)
List(ctx context.Context, arg ListParams) ([]*ListRow, error)
ListByIDs(ctx context.Context, ids []uuid.UUID) ([]*Deployment, error)
ListByTeamSlug(ctx context.Context, arg ListByTeamSlugParams) ([]*ListByTeamSlugRow, error)
ListDeploymentResourcesByIDs(ctx context.Context, ids []uuid.UUID) ([]*DeploymentK8sResource, error)
ListDeploymentStatusesByIDs(ctx context.Context, ids []uuid.UUID) ([]*DeploymentStatus, error)
ListForWorkload(ctx context.Context, arg ListForWorkloadParams) ([]*ListForWorkloadRow, error)
ListResourcesForDeployment(ctx context.Context, arg ListResourcesForDeploymentParams) ([]*ListResourcesForDeploymentRow, error)
ListStatusesForDeployment(ctx context.Context, arg ListStatusesForDeploymentParams) ([]*ListStatusesForDeploymentRow, error)
}
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CleanupNaisVerification ¶
func (*Queries) LatestDeploymentTimestampForWorkload ¶
func (q *Queries) LatestDeploymentTimestampForWorkload(ctx context.Context, arg LatestDeploymentTimestampForWorkloadParams) (pgtype.Timestamptz, error)
func (*Queries) ListByTeamSlug ¶
func (q *Queries) ListByTeamSlug(ctx context.Context, arg ListByTeamSlugParams) ([]*ListByTeamSlugRow, error)
func (*Queries) ListDeploymentResourcesByIDs ¶
func (*Queries) ListDeploymentStatusesByIDs ¶
func (*Queries) ListForWorkload ¶
func (q *Queries) ListForWorkload(ctx context.Context, arg ListForWorkloadParams) ([]*ListForWorkloadRow, error)
func (*Queries) ListResourcesForDeployment ¶
func (q *Queries) ListResourcesForDeployment(ctx context.Context, arg ListResourcesForDeploymentParams) ([]*ListResourcesForDeploymentRow, error)
func (*Queries) ListStatusesForDeployment ¶
func (q *Queries) ListStatusesForDeployment(ctx context.Context, arg ListStatusesForDeploymentParams) ([]*ListStatusesForDeploymentRow, error)
Click to show internal directories.
Click to hide internal directories.