Documentation
¶
Index ¶
- type AddProjectMemberParams
- type AuditLog
- type CreateAuditLogParams
- type CreateEnvironmentParams
- type CreateProjectParams
- type CreateRefreshTokenParams
- type CreateUserParams
- type CreateVariableParams
- type DBTX
- type DeleteVariableParams
- type Environment
- type GetProjectMemberParams
- type ListProjectMembersRow
- type ListProjectsRow
- type Project
- type ProjectMember
- type Querier
- type Queries
- func (q *Queries) AddProjectMember(ctx context.Context, arg AddProjectMemberParams) (ProjectMember, error)
- func (q *Queries) CreateAuditLog(ctx context.Context, arg CreateAuditLogParams) (AuditLog, error)
- func (q *Queries) CreateEnvironment(ctx context.Context, arg CreateEnvironmentParams) (Environment, error)
- func (q *Queries) CreateProject(ctx context.Context, arg CreateProjectParams) (Project, error)
- func (q *Queries) CreateRefreshToken(ctx context.Context, arg CreateRefreshTokenParams) (RefreshToken, error)
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (User, error)
- func (q *Queries) CreateVariable(ctx context.Context, arg CreateVariableParams) (Variable, error)
- func (q *Queries) DeleteEnvironment(ctx context.Context, id pgtype.UUID) error
- func (q *Queries) DeleteProject(ctx context.Context, id pgtype.UUID) error
- func (q *Queries) DeleteRefreshToken(ctx context.Context, token string) error
- func (q *Queries) DeleteUser(ctx context.Context, id pgtype.UUID) error
- func (q *Queries) DeleteVariable(ctx context.Context, arg DeleteVariableParams) error
- func (q *Queries) GetEnvironment(ctx context.Context, id pgtype.UUID) (Environment, error)
- func (q *Queries) GetProject(ctx context.Context, id pgtype.UUID) (Project, error)
- func (q *Queries) GetProjectMember(ctx context.Context, arg GetProjectMemberParams) (ProjectMember, error)
- func (q *Queries) GetRefreshToken(ctx context.Context, token string) (RefreshToken, error)
- func (q *Queries) GetUser(ctx context.Context, id pgtype.UUID) (User, error)
- func (q *Queries) GetUserByEmail(ctx context.Context, email string) (User, error)
- func (q *Queries) GetUserByResetToken(ctx context.Context, passwordResetToken pgtype.Text) (User, error)
- func (q *Queries) ListActiveRefreshTokensForUser(ctx context.Context, userID pgtype.UUID) ([]RefreshToken, error)
- func (q *Queries) ListEnvironments(ctx context.Context, projectID pgtype.UUID) ([]Environment, error)
- func (q *Queries) ListProjectMembers(ctx context.Context, projectID pgtype.UUID) ([]ListProjectMembersRow, error)
- func (q *Queries) ListProjects(ctx context.Context, userID pgtype.UUID) ([]ListProjectsRow, error)
- func (q *Queries) ListUsers(ctx context.Context) ([]User, error)
- func (q *Queries) ListVariables(ctx context.Context, environmentID pgtype.UUID) ([]Variable, error)
- func (q *Queries) RemoveProjectMember(ctx context.Context, arg RemoveProjectMemberParams) error
- func (q *Queries) RevokeRefreshToken(ctx context.Context, token string) error
- func (q *Queries) SetPasswordResetToken(ctx context.Context, arg SetPasswordResetTokenParams) error
- func (q *Queries) UpdateEnvironment(ctx context.Context, arg UpdateEnvironmentParams) (Environment, error)
- func (q *Queries) UpdatePassword(ctx context.Context, arg UpdatePasswordParams) error
- func (q *Queries) UpdateProject(ctx context.Context, arg UpdateProjectParams) (Project, error)
- func (q *Queries) UpdateUser(ctx context.Context, arg UpdateUserParams) (User, error)
- func (q *Queries) UpdateVariable(ctx context.Context, arg UpdateVariableParams) (Variable, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type RefreshToken
- type RemoveProjectMemberParams
- type SetPasswordResetTokenParams
- type UpdateEnvironmentParams
- type UpdatePasswordParams
- type UpdateProjectParams
- type UpdateUserParams
- type UpdateVariableParams
- type User
- type Variable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddProjectMemberParams ¶
type CreateAuditLogParams ¶
type CreateEnvironmentParams ¶
type CreateProjectParams ¶
type CreateRefreshTokenParams ¶
type CreateRefreshTokenParams struct {
UserID pgtype.UUID `json:"user_id"`
Token string `json:"token"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
}
type CreateUserParams ¶
type CreateVariableParams ¶
type DeleteVariableParams ¶
type Environment ¶
type Environment struct {
ID pgtype.UUID `json:"id"`
ProjectID pgtype.UUID `json:"project_id"`
Name string `json:"name"`
Slug string `json:"slug"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type GetProjectMemberParams ¶
type ListProjectMembersRow ¶
type ListProjectsRow ¶
type Project ¶
type Project struct {
ID pgtype.UUID `json:"id"`
Name string `json:"name"`
Slug string `json:"slug"`
Description pgtype.Text `json:"description"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type ProjectMember ¶
type Querier ¶
type Querier interface {
AddProjectMember(ctx context.Context, arg AddProjectMemberParams) (ProjectMember, error)
CreateAuditLog(ctx context.Context, arg CreateAuditLogParams) (AuditLog, error)
CreateEnvironment(ctx context.Context, arg CreateEnvironmentParams) (Environment, error)
CreateProject(ctx context.Context, arg CreateProjectParams) (Project, error)
CreateRefreshToken(ctx context.Context, arg CreateRefreshTokenParams) (RefreshToken, error)
CreateUser(ctx context.Context, arg CreateUserParams) (User, error)
CreateVariable(ctx context.Context, arg CreateVariableParams) (Variable, error)
DeleteEnvironment(ctx context.Context, id pgtype.UUID) error
DeleteProject(ctx context.Context, id pgtype.UUID) error
DeleteRefreshToken(ctx context.Context, token string) error
DeleteUser(ctx context.Context, id pgtype.UUID) error
DeleteVariable(ctx context.Context, arg DeleteVariableParams) error
GetEnvironment(ctx context.Context, id pgtype.UUID) (Environment, error)
GetProject(ctx context.Context, id pgtype.UUID) (Project, error)
GetProjectMember(ctx context.Context, arg GetProjectMemberParams) (ProjectMember, error)
GetRefreshToken(ctx context.Context, token string) (RefreshToken, error)
GetUser(ctx context.Context, id pgtype.UUID) (User, error)
GetUserByEmail(ctx context.Context, email string) (User, error)
GetUserByResetToken(ctx context.Context, passwordResetToken pgtype.Text) (User, error)
ListActiveRefreshTokensForUser(ctx context.Context, userID pgtype.UUID) ([]RefreshToken, error)
ListEnvironments(ctx context.Context, projectID pgtype.UUID) ([]Environment, error)
ListProjectMembers(ctx context.Context, projectID pgtype.UUID) ([]ListProjectMembersRow, error)
ListProjects(ctx context.Context, userID pgtype.UUID) ([]ListProjectsRow, error)
ListUsers(ctx context.Context) ([]User, error)
ListVariables(ctx context.Context, environmentID pgtype.UUID) ([]Variable, error)
RemoveProjectMember(ctx context.Context, arg RemoveProjectMemberParams) error
RevokeRefreshToken(ctx context.Context, token string) error
SetPasswordResetToken(ctx context.Context, arg SetPasswordResetTokenParams) error
UpdateEnvironment(ctx context.Context, arg UpdateEnvironmentParams) (Environment, error)
UpdatePassword(ctx context.Context, arg UpdatePasswordParams) error
UpdateProject(ctx context.Context, arg UpdateProjectParams) (Project, error)
UpdateUser(ctx context.Context, arg UpdateUserParams) (User, error)
UpdateVariable(ctx context.Context, arg UpdateVariableParams) (Variable, error)
}
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AddProjectMember ¶
func (q *Queries) AddProjectMember(ctx context.Context, arg AddProjectMemberParams) (ProjectMember, error)
func (*Queries) CreateAuditLog ¶
func (*Queries) CreateEnvironment ¶
func (q *Queries) CreateEnvironment(ctx context.Context, arg CreateEnvironmentParams) (Environment, error)
func (*Queries) CreateProject ¶
func (*Queries) CreateRefreshToken ¶
func (q *Queries) CreateRefreshToken(ctx context.Context, arg CreateRefreshTokenParams) (RefreshToken, error)
func (*Queries) CreateUser ¶
func (*Queries) CreateVariable ¶
func (*Queries) DeleteEnvironment ¶
func (*Queries) DeleteProject ¶
func (*Queries) DeleteRefreshToken ¶
func (*Queries) DeleteUser ¶
func (*Queries) DeleteVariable ¶
func (q *Queries) DeleteVariable(ctx context.Context, arg DeleteVariableParams) error
func (*Queries) GetEnvironment ¶
func (*Queries) GetProject ¶
func (*Queries) GetProjectMember ¶
func (q *Queries) GetProjectMember(ctx context.Context, arg GetProjectMemberParams) (ProjectMember, error)
func (*Queries) GetRefreshToken ¶
func (*Queries) GetUserByEmail ¶
func (*Queries) GetUserByResetToken ¶
func (*Queries) ListActiveRefreshTokensForUser ¶
func (*Queries) ListEnvironments ¶
func (*Queries) ListProjectMembers ¶
func (*Queries) ListProjects ¶
func (*Queries) ListVariables ¶
func (*Queries) RemoveProjectMember ¶
func (q *Queries) RemoveProjectMember(ctx context.Context, arg RemoveProjectMemberParams) error
func (*Queries) RevokeRefreshToken ¶
func (*Queries) SetPasswordResetToken ¶
func (q *Queries) SetPasswordResetToken(ctx context.Context, arg SetPasswordResetTokenParams) error
func (*Queries) UpdateEnvironment ¶
func (q *Queries) UpdateEnvironment(ctx context.Context, arg UpdateEnvironmentParams) (Environment, error)
func (*Queries) UpdatePassword ¶
func (q *Queries) UpdatePassword(ctx context.Context, arg UpdatePasswordParams) error
func (*Queries) UpdateProject ¶
func (*Queries) UpdateUser ¶
func (*Queries) UpdateVariable ¶
type RefreshToken ¶
type RefreshToken struct {
ID pgtype.UUID `json:"id"`
UserID pgtype.UUID `json:"user_id"`
Token string `json:"token"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
Revoked pgtype.Bool `json:"revoked"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type SetPasswordResetTokenParams ¶
type SetPasswordResetTokenParams struct {
Email string `json:"email"`
PasswordResetToken pgtype.Text `json:"password_reset_token"`
PasswordResetExpiresAt pgtype.Timestamptz `json:"password_reset_expires_at"`
}
type UpdateEnvironmentParams ¶
type UpdatePasswordParams ¶
type UpdateProjectParams ¶
type UpdateUserParams ¶
type UpdateVariableParams ¶
type User ¶
type User struct {
ID pgtype.UUID `json:"id"`
Email string `json:"email"`
PasswordHash string `json:"password_hash"`
FullName string `json:"full_name"`
PasswordResetToken pgtype.Text `json:"password_reset_token"`
PasswordResetExpiresAt pgtype.Timestamptz `json:"password_reset_expires_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type Variable ¶
type Variable struct {
ID pgtype.UUID `json:"id"`
EnvironmentID pgtype.UUID `json:"environment_id"`
Key string `json:"key"`
Value string `json:"value"`
IsSecret pgtype.Bool `json:"is_secret"`
Path string `json:"path"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
Click to show internal directories.
Click to hide internal directories.