Versions in this module Expand all Collapse all v0 v0.5.0 Oct 18, 2026 v0.4.0 Oct 18, 2026 v0.3.0 Oct 18, 2026 v0.2.1 Oct 18, 2026 v0.2.0 Oct 18, 2026 v0.1.0 Oct 18, 2026 Changes in this version + func Migrate(ctx context.Context, pool *pgxpool.Pool) error + type AcceptInviteParams struct + AcceptedAt *time.Time + AcceptedBy *string + ID string + type AddAuditParams struct + Action string + ActorID string + CreatedAt time.Time + Detail string + Target string + type AddDeployParams struct + DeployedAt time.Time + DeployedBy string + ProjectID string + ServerID string + Signature []byte + SignerDevice string + Version int32 + type AddDeviceEnvironmentParams struct + Branch string + ConfigVersion int32 + DeviceID string + EnvID string + Error string + Kind string + Name string + Overrides []string + PendingVersion int32 + Phase string + Project string + RejectedOverrides []string + Url string + UserID string + type AddKeyWrapParams struct + CreatedAt time.Time + DeviceID string + Generation int32 + UserID string + Wrapped []byte + WrappedBy string + type AddMemberParams struct + JoinedAt time.Time + Role string + UserID string + type AddOwnerParams struct + JoinedAt time.Time + UserID string + type AddProjectVersionParams struct + AuthorID string + Config string + CreatedAt time.Time + Message string + ProjectID string + Version int32 + type AddWorkspaceKeyParams struct + CreatedAt time.Time + CreatedBy string + Generation int32 + PublicKey string + type Audit struct + Action string + ActorID string + CreatedAt time.Time + Detail string + ID int64 + Target string + type AuditRow struct + Action string + Actor string + ActorID string + CreatedAt time.Time + Detail string + ID int64 + Target string + type CertifySigningKeyParams struct + Certificate []byte + DeviceID string + UserID string + type ClearDeviceEnvironmentsParams struct + DeviceID string + UserID string + type CreateInviteParams struct + CodeHash []byte + CreatedAt time.Time + CreatedBy string + Email string + ExpiresAt time.Time + ID string + Role string + type CreateProjectParams struct + CreatedAt time.Time + CreatedBy string + ID string + Name string + type CreateServerParams struct + CreatedAt time.Time + CreatedBy string + ID string + JoinExpires *time.Time + JoinHash *string + Name string + type CreateWorkspaceParams struct + CreatedAt time.Time + ID string + Name string + OwnerEmail string + type DBTX interface + Exec func(context.Context, string, ...interface{}) (pgconn.CommandTag, error) + Query func(context.Context, string, ...interface{}) (pgx.Rows, error) + QueryRow func(context.Context, string, ...interface{}) pgx.Row + type DeleteDeviceWrapsParams struct + DeviceID string + UserID string + type DeleteProjectRoleParams struct + ProjectID string + UserID string + type DeleteSecretParams struct + Name string + ProjectID string + type DeleteServerEnvironmentParams struct + ProjectID string + ServerID string + type Device struct + AgentVersion string + DeviceID string + LastSeen time.Time + Name string + UserID string + type DeviceEnvironment struct + Branch string + ConfigVersion int32 + DeviceID string + EnvID string + Error string + Kind string + Name string + Overrides []string + PendingVersion int32 + Phase string + Project string + RejectedOverrides []string + Url string + UserID string + type DeviceKey struct + CreatedAt time.Time + DeviceID string + Name string + PublicKey string + UserID string + type DeviceKeyParams struct + DeviceID string + UserID string + type DevicesRow struct + AgentVersion string + DeviceID string + Email string + LastSeen time.Time + Name string + UserID string + type DomainTakenParams struct + Domain string + ProjectID string + ServerID string + type Invite struct + AcceptedAt *time.Time + AcceptedBy *string + CodeHash []byte + CreatedAt time.Time + CreatedBy string + Email string + ExpiresAt time.Time + ID string + RevokedAt *time.Time + Role string + type JoinServerParams struct + ID string + JoinedAt *time.Time + TokenHash *string + type KeyWrap struct + CreatedAt time.Time + DeviceID string + Generation int32 + UserID string + Wrapped []byte + WrappedBy string + type KeyWrapParams struct + DeviceID string + Generation int32 + UserID string + type LastDeployParams struct + ProjectID string + ServerID string + type LastDeployRow struct + DeployedAt time.Time + DeployedBy string + Deployer string + ProjectID string + Seq int64 + ServerID string + Signature []byte + SignerDevice string + Version int32 + type MayEnterParams struct + Email string + ExpiresAt time.Time + type Member struct + JoinedAt time.Time + Role string + UserID string + type MembersRow struct + Email string + JoinedAt time.Time + Role string + UserID string + type OpenInvitesForParams struct + Email string + ExpiresAt time.Time + type OpenInvitesRow struct + AcceptedAt *time.Time + AcceptedBy *string + CodeHash []byte + CreatedAt time.Time + CreatedBy string + Email string + ExpiresAt time.Time + ID string + InvitedBy string + RevokedAt *time.Time + Role string + type PendingDevicesRow struct + DeviceID string + Email string + Name string + PublicKey string + UserID string + type ProductionDeploy struct + DeployedAt time.Time + DeployedBy string + ProjectID string + Seq int64 + ServerID string + Signature []byte + SignerDevice string + Version int32 + type Project struct + CreatedAt time.Time + CreatedBy string + ID string + Name string + Version int32 + type ProjectMember struct + ProjectID string + Role string + UserID string + type ProjectRolesRow struct + Project string + ProjectID string + Role string + UserID string + type ProjectSecretsRow struct + Ciphertext []byte + Generation int32 + Name string + ProjectID string + UpdatedAt time.Time + UpdatedBy string + UpdatedByEmail string + type ProjectVersion struct + AuthorID string + Config string + CreatedAt time.Time + Message string + ProjectID string + Signature []byte + SignerDevice string + Version int32 + type ProjectVersionParams struct + ProjectID string + Version int32 + type ProjectVersionRow struct + Author string + AuthorID string + Config string + CreatedAt time.Time + Message string + ProjectID string + Signature []byte + SignerDevice string + Version int32 + type ProjectVersionsParams struct + Limit int32 + ProjectID string + type ProjectVersionsRow struct + Author string + CreatedAt time.Time + Message string + Signed bool + Version int32 + type Queries struct + func New(db DBTX) *Queries + func (q *Queries) AcceptInvite(ctx context.Context, arg AcceptInviteParams) error + func (q *Queries) AddAudit(ctx context.Context, arg AddAuditParams) error + func (q *Queries) AddDeploy(ctx context.Context, arg AddDeployParams) error + func (q *Queries) AddDeviceEnvironment(ctx context.Context, arg AddDeviceEnvironmentParams) error + func (q *Queries) AddKeyWrap(ctx context.Context, arg AddKeyWrapParams) error + func (q *Queries) AddMember(ctx context.Context, arg AddMemberParams) error + func (q *Queries) AddOwner(ctx context.Context, arg AddOwnerParams) (int64, error) + func (q *Queries) AddProjectVersion(ctx context.Context, arg AddProjectVersionParams) error + func (q *Queries) AddWorkspaceKey(ctx context.Context, arg AddWorkspaceKeyParams) error + func (q *Queries) Audit(ctx context.Context, limit int32) ([]AuditRow, error) + func (q *Queries) CertifySigningKey(ctx context.Context, arg CertifySigningKeyParams) error + func (q *Queries) ClearDeviceEnvironments(ctx context.Context, arg ClearDeviceEnvironmentsParams) error + func (q *Queries) CreateInvite(ctx context.Context, arg CreateInviteParams) (Invite, error) + func (q *Queries) CreateProject(ctx context.Context, arg CreateProjectParams) (Project, error) + func (q *Queries) CreateServer(ctx context.Context, arg CreateServerParams) error + func (q *Queries) CreateWorkspace(ctx context.Context, arg CreateWorkspaceParams) error + func (q *Queries) DeleteDeviceWraps(ctx context.Context, arg DeleteDeviceWrapsParams) error + func (q *Queries) DeleteOldWraps(ctx context.Context, generation int32) error + func (q *Queries) DeleteProject(ctx context.Context, id string) error + func (q *Queries) DeleteProjectMembersOf(ctx context.Context, userID string) error + func (q *Queries) DeleteProjectRole(ctx context.Context, arg DeleteProjectRoleParams) error + func (q *Queries) DeleteSecret(ctx context.Context, arg DeleteSecretParams) (int64, error) + func (q *Queries) DeleteServerEnvironment(ctx context.Context, arg DeleteServerEnvironmentParams) error + func (q *Queries) DeviceEnvironments(ctx context.Context) ([]DeviceEnvironment, error) + func (q *Queries) DeviceKey(ctx context.Context, arg DeviceKeyParams) (DeviceKey, error) + func (q *Queries) Devices(ctx context.Context) ([]DevicesRow, error) + func (q *Queries) DomainTaken(ctx context.Context, arg DomainTakenParams) (bool, error) + func (q *Queries) Invite(ctx context.Context, id string) (Invite, error) + func (q *Queries) JoinServer(ctx context.Context, arg JoinServerParams) error + func (q *Queries) KeyWrap(ctx context.Context, arg KeyWrapParams) (KeyWrap, error) + func (q *Queries) LastDeploy(ctx context.Context, arg LastDeployParams) (LastDeployRow, error) + func (q *Queries) MayEnter(ctx context.Context, arg MayEnterParams) (*bool, error) + func (q *Queries) Member(ctx context.Context, userID string) (Member, error) + func (q *Queries) Members(ctx context.Context) ([]MembersRow, error) + func (q *Queries) OpenInvites(ctx context.Context, expiresAt time.Time) ([]OpenInvitesRow, error) + func (q *Queries) OpenInvitesFor(ctx context.Context, arg OpenInvitesForParams) ([]Invite, error) + func (q *Queries) PendingDevices(ctx context.Context, generation int32) ([]PendingDevicesRow, error) + func (q *Queries) ProjectByName(ctx context.Context, name string) (Project, error) + func (q *Queries) ProjectByNameForUpdate(ctx context.Context, name string) (Project, error) + func (q *Queries) ProjectRoles(ctx context.Context) ([]ProjectRolesRow, error) + func (q *Queries) ProjectSecrets(ctx context.Context, projectID string) ([]ProjectSecretsRow, error) + func (q *Queries) ProjectVersion(ctx context.Context, arg ProjectVersionParams) (ProjectVersionRow, error) + func (q *Queries) ProjectVersions(ctx context.Context, arg ProjectVersionsParams) ([]ProjectVersionsRow, error) + func (q *Queries) Projects(ctx context.Context) ([]Project, error) + func (q *Queries) RemoveMember(ctx context.Context, userID string) error + func (q *Queries) RemoveProjectRole(ctx context.Context, arg RemoveProjectRoleParams) (int64, error) + func (q *Queries) RevokeInvite(ctx context.Context, arg RevokeInviteParams) error + func (q *Queries) ServerByJoin(ctx context.Context, joinHash *string) (Server, error) + func (q *Queries) ServerByName(ctx context.Context, name string) (Server, error) + func (q *Queries) ServerByToken(ctx context.Context, tokenHash *string) (Server, error) + func (q *Queries) ServerEnvironment(ctx context.Context, arg ServerEnvironmentParams) (ServerEnvironment, error) + func (q *Queries) ServerEnvironments(ctx context.Context) ([]ServerEnvironmentsRow, error) + func (q *Queries) Servers(ctx context.Context) ([]ServersRow, error) + func (q *Queries) SetKeyGeneration(ctx context.Context, keyGeneration int32) error + func (q *Queries) SetMemberRole(ctx context.Context, arg SetMemberRoleParams) error + func (q *Queries) SetProjectRole(ctx context.Context, arg SetProjectRoleParams) error + func (q *Queries) SetProjectVersion(ctx context.Context, arg SetProjectVersionParams) error + func (q *Queries) SetSecret(ctx context.Context, arg SetSecretParams) error + func (q *Queries) SetTrustRoot(ctx context.Context, arg SetTrustRootParams) error + func (q *Queries) SignProjectVersion(ctx context.Context, arg SignProjectVersionParams) error + func (q *Queries) SigningKey(ctx context.Context, arg SigningKeyParams) (SigningKey, error) + func (q *Queries) SigningKeys(ctx context.Context) ([]SigningKeysRow, error) + func (q *Queries) UpsertDevice(ctx context.Context, arg UpsertDeviceParams) error + func (q *Queries) UpsertDeviceKey(ctx context.Context, arg UpsertDeviceKeyParams) error + func (q *Queries) UpsertServerEnvironment(ctx context.Context, arg UpsertServerEnvironmentParams) error + func (q *Queries) UpsertSigningKey(ctx context.Context, arg UpsertSigningKeyParams) error + func (q *Queries) UpsertUser(ctx context.Context, arg UpsertUserParams) error + func (q *Queries) UserByEmail(ctx context.Context, email string) (User, error) + func (q *Queries) UserProjectRoles(ctx context.Context, userID string) ([]UserProjectRolesRow, error) + func (q *Queries) WithTx(tx pgx.Tx) *Queries + func (q *Queries) Workspace(ctx context.Context) (Workspace, error) + func (q *Queries) WorkspaceAdmin(ctx context.Context) (User, error) + func (q *Queries) WorkspaceDeviceKeys(ctx context.Context) ([]DeviceKey, error) + func (q *Queries) WorkspaceForUpdate(ctx context.Context) (Workspace, error) + func (q *Queries) WorkspaceKey(ctx context.Context) (WorkspaceKey, error) + func (q *Queries) WorkspaceSecrets(ctx context.Context) ([]WorkspaceSecretsRow, error) + type RemoveProjectRoleParams struct + ProjectID string + UserID string + type RevokeInviteParams struct + ID string + RevokedAt *time.Time + type Secret struct + Ciphertext []byte + Generation int32 + Name string + ProjectID string + UpdatedAt time.Time + UpdatedBy string + type Server struct + CreatedAt time.Time + CreatedBy string + ID string + JoinExpires *time.Time + JoinHash *string + JoinedAt *time.Time + Name string + TokenHash *string + type ServerEnvironment struct + CreatedAt time.Time + CreatedBy string + Domain string + Kind string + ProjectID string + ServerID string + Signature []byte + SignerDevice string + type ServerEnvironmentParams struct + ProjectID string + ServerID string + type ServerEnvironmentsRow struct + CreatedAt time.Time + CreatedBy string + Creator string + Domain string + Kind string + Project string + ProjectID string + Server string + ServerID string + Signature []byte + SignerDevice string + type ServersRow struct + AgentVersion *string + CreatedAt time.Time + CreatedBy string + ID string + JoinExpires *time.Time + JoinHash *string + JoinedAt *time.Time + LastSeen *time.Time + Name string + Projects []string + TokenHash *string + type SetMemberRoleParams struct + Role string + UserID string + type SetProjectRoleParams struct + ProjectID string + Role string + UserID string + type SetProjectVersionParams struct + ID string + Version int32 + type SetSecretParams struct + Ciphertext []byte + Generation int32 + Name string + ProjectID string + UpdatedAt time.Time + UpdatedBy string + type SetTrustRootParams struct + TrustRoot []byte + TrustRootDevice string + TrustRootUser string + type SignProjectVersionParams struct + ProjectID string + Signature []byte + SignerDevice string + Version int32 + type SigningKey struct + Certificate []byte + CreatedAt time.Time + DeviceID string + Name string + PublicKey []byte + UserID string + type SigningKeyParams struct + DeviceID string + UserID string + type SigningKeysRow struct + Certificate []byte + CreatedAt time.Time + DeviceID string + Email string + Name string + PublicKey []byte + Role string + UserID string + type UpsertDeviceKeyParams struct + CreatedAt time.Time + DeviceID string + Name string + PublicKey string + UserID string + type UpsertDeviceParams struct + AgentVersion string + DeviceID string + LastSeen time.Time + Name string + UserID string + type UpsertServerEnvironmentParams struct + CreatedAt time.Time + CreatedBy string + Domain string + Kind string + ProjectID string + ServerID string + Signature []byte + SignerDevice string + type UpsertSigningKeyParams struct + CreatedAt time.Time + DeviceID string + Name string + PublicKey []byte + UserID string + type UpsertUserParams struct + Email string + ID string + SeenAt time.Time + type User struct + Email string + ID string + SeenAt time.Time + type UserProjectRolesRow struct + Project string + ProjectID string + Role string + UserID string + type Workspace struct + CreatedAt time.Time + ID string + KeyGeneration int32 + Name string + OwnerEmail string + TrustRoot []byte + TrustRootDevice string + TrustRootUser string + type WorkspaceKey struct + CreatedAt time.Time + CreatedBy string + Generation int32 + PublicKey string + type WorkspaceSecretsRow struct + Ciphertext []byte + Generation int32 + Name string + Project string + ProjectID string + UpdatedAt time.Time + UpdatedBy string