Documentation
¶
Index ¶
- type AccessCredentialParams
- type AddApprovalRequestParams
- type AddApprovalRequestRow
- type AddExecutionLogParams
- type AddGroupToUserByUUIDParams
- type Approval
- type ApprovalDecisionResult
- type ApprovalDecisionTxParams
- type ApprovalStatus
- type ApproveRequestByUUIDParams
- type ApproveRequestByUUIDRow
- type AssignGroupNamespaceRoleParams
- type AssignGroupPrefixAccessParams
- type AssignUserNamespaceRoleParams
- type AssignUserPrefixAccessParams
- type AuthenticationMethod
- type CasbinRule
- type ConnectionType
- type CreateCredentialParams
- type CreateCronScheduleParams
- type CreateFlowParams
- type CreateFlowPrefixParams
- type CreateFlowSecretParams
- type CreateFlowTxParams
- type CreateGroupParams
- type CreateNamespaceSecretParams
- type CreateNodeParams
- type CreateSchedulerTaskParams
- type CreateUserParams
- type CreateUserScheduleParams
- type CreateUserTxParams
- type Credential
- type CronSchedule
- type DBTX
- type DeleteCredentialParams
- type DeleteFlowParams
- type DeleteFlowPrefixParams
- type DeleteFlowSecretParams
- type DeleteNamespaceSecretParams
- type DeleteNodeParams
- type DeleteUserScheduleByUUIDParams
- type ExecutionExistsForFlowParams
- type ExecutionLog
- type ExecutionStatus
- type Flow
- type FlowPrefix
- type FlowSecret
- type GetAllCronSchedulesRow
- type GetAllExecutionsPaginatedParams
- type GetAllExecutionsPaginatedRow
- type GetAllNamespaceMembersRow
- type GetAllPrefixAccessesRow
- type GetApprovalByUUIDParams
- type GetApprovalByUUIDRow
- type GetApprovalRequestForActionAndExecParams
- type GetApprovalRequestForExecParams
- type GetApprovalRequestForExecRow
- type GetApprovalWithInputsByUUIDParams
- type GetApprovalWithInputsByUUIDRow
- type GetApprovalsPaginatedParams
- type GetApprovalsPaginatedRow
- type GetCredentialByIDParams
- type GetCredentialByIDRow
- type GetCredentialByUUIDParams
- type GetCredentialByUUIDRow
- type GetDecryptedNamespaceSecretsRow
- type GetDistinctPrefixesRow
- type GetExecutionActionRetriesParams
- type GetExecutionByExecIDParams
- type GetExecutionByExecIDRow
- type GetExecutionByExecIDWithNamespaceParams
- type GetExecutionByExecIDWithNamespaceRow
- type GetExecutionByIDParams
- type GetExecutionByIDRow
- type GetExecutionsByFlowPaginatedParams
- type GetExecutionsByFlowPaginatedRow
- type GetExecutionsByFlowParams
- type GetExecutionsByFlowRow
- type GetFlowBySlugParams
- type GetFlowFromExecIDParams
- type GetFlowFromExecIDWithNamespaceParams
- type GetFlowPrefixByNameParams
- type GetFlowPrefixByUUIDParams
- type GetFlowSecretByUUIDParams
- type GetFlowSecretByUUIDRow
- type GetFlowsByNamespaceRow
- type GetFlowsByPrefixParams
- type GetFlowsByPrefixRow
- type GetFlowsByPrefixUUIDParams
- type GetFlowsByPrefixUUIDRow
- type GetGroupMembersByNameRow
- type GetInputForExecByUUIDParams
- type GetMemberPrefixesParams
- type GetMemberPrefixesRow
- type GetNamespaceMemberByUUIDParams
- type GetNamespaceMemberByUUIDRow
- type GetNamespaceMembersRow
- type GetNamespaceSecretByUUIDParams
- type GetNamespaceSecretByUUIDRow
- type GetNodeByNameParams
- type GetNodeByNameRow
- type GetNodeByUUIDParams
- type GetNodeByUUIDRow
- type GetNodeStatsRow
- type GetNodesByNamesParams
- type GetNodesByNamesRow
- type GetNodesByTagsParams
- type GetNodesByTagsRow
- type GetPrefixMembersParams
- type GetPrefixMembersRow
- type GetScheduleByFlowAndCronParams
- type GetScheduledExecutionsByFlowParams
- type GetScheduledExecutionsByFlowRow
- type GetScheduledFlowsRow
- type GetUserAccessiblePrefixesParams
- type GetUserNamespacesWithRolesRow
- type GetUserScheduleByUUIDParams
- type GetUserScheduleByUUIDRow
- type Group
- type GroupMembership
- type GroupView
- type IncrementActionRetryParams
- type IncrementActionRetryRow
- type ListFlowSecretsParams
- type ListFlowSecretsRow
- type ListFlowsPaginatedFilteredParams
- type ListFlowsPaginatedFilteredRow
- type ListFlowsPaginatedParams
- type ListFlowsPaginatedRow
- type ListFlowsParams
- type ListFlowsRow
- type ListNamespaceSecretsRow
- type ListNamespacesParams
- type ListNamespacesRow
- type ListSchedulesParams
- type ListSchedulesRow
- type MarkFlowActiveParams
- type Namespace
- type NamespaceMember
- type NamespaceSecret
- type Node
- type NullApprovalStatus
- type NullAuthenticationMethod
- type NullConnectionType
- type NullExecutionStatus
- type NullTriggerType
- type NullUserLoginType
- type NullUserRoleType
- type PostgresStore
- func (p *PostgresStore) CreateFlowTx(ctx context.Context, params CreateFlowTxParams) (Flow, error)
- func (p *PostgresStore) CreateUserTx(ctx context.Context, params CreateUserTxParams) (UserView, error)
- func (p *PostgresStore) ProcessApprovalDecisionTx(ctx context.Context, params ApprovalDecisionTxParams) (ApprovalDecisionResult, error)
- func (p *PostgresStore) RequestApprovalTx(ctx context.Context, execID string, namespaceUUID uuid.UUID, ...) (AddApprovalRequestRow, error)
- func (p *PostgresStore) UpdateFlowTx(ctx context.Context, params UpdateFlowTxParams) (Flow, error)
- func (p *PostgresStore) UpdateUserTx(ctx context.Context, params UpdateUserTxParams) (UserView, error)
- type PrefixAccess
- type Querier
- type Queries
- func (q *Queries) AccessCredential(ctx context.Context, arg AccessCredentialParams) (Credential, error)
- func (q *Queries) AddApprovalRequest(ctx context.Context, arg AddApprovalRequestParams) (AddApprovalRequestRow, error)
- func (q *Queries) AddExecutionLog(ctx context.Context, arg AddExecutionLogParams) (ExecutionLog, error)
- func (q *Queries) AddGroupToUserByUUID(ctx context.Context, arg AddGroupToUserByUUIDParams) error
- func (q *Queries) ApproveRequestByUUID(ctx context.Context, arg ApproveRequestByUUIDParams) (ApproveRequestByUUIDRow, error)
- func (q *Queries) AssignGroupNamespaceRole(ctx context.Context, arg AssignGroupNamespaceRoleParams) (NamespaceMember, error)
- func (q *Queries) AssignGroupPrefixAccess(ctx context.Context, arg AssignGroupPrefixAccessParams) error
- func (q *Queries) AssignUserNamespaceRole(ctx context.Context, arg AssignUserNamespaceRoleParams) (NamespaceMember, error)
- func (q *Queries) AssignUserPrefixAccess(ctx context.Context, arg AssignUserPrefixAccessParams) error
- func (q *Queries) CancelTasksByExecID(ctx context.Context, execID string) error
- func (q *Queries) CreateCredential(ctx context.Context, arg CreateCredentialParams) (Credential, error)
- func (q *Queries) CreateCronSchedule(ctx context.Context, arg CreateCronScheduleParams) (CronSchedule, error)
- func (q *Queries) CreateFlow(ctx context.Context, arg CreateFlowParams) (Flow, error)
- func (q *Queries) CreateFlowPrefix(ctx context.Context, arg CreateFlowPrefixParams) (FlowPrefix, error)
- func (q *Queries) CreateFlowSecret(ctx context.Context, arg CreateFlowSecretParams) (FlowSecret, error)
- func (q *Queries) CreateGroup(ctx context.Context, arg CreateGroupParams) (Group, error)
- func (q *Queries) CreateNamespace(ctx context.Context, name string) (Namespace, error)
- func (q *Queries) CreateNamespaceSecret(ctx context.Context, arg CreateNamespaceSecretParams) (NamespaceSecret, error)
- func (q *Queries) CreateNode(ctx context.Context, arg CreateNodeParams) (Node, error)
- func (q *Queries) CreateSchedulerTask(ctx context.Context, arg CreateSchedulerTaskParams) (SchedulerTask, error)
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (User, error)
- func (q *Queries) CreateUserSchedule(ctx context.Context, arg CreateUserScheduleParams) (CronSchedule, error)
- func (q *Queries) DeleteAllFlows(ctx context.Context) error
- func (q *Queries) DeleteCredential(ctx context.Context, arg DeleteCredentialParams) error
- func (q *Queries) DeleteFlow(ctx context.Context, arg DeleteFlowParams) error
- func (q *Queries) DeleteFlowPrefix(ctx context.Context, arg DeleteFlowPrefixParams) error
- func (q *Queries) DeleteFlowSecret(ctx context.Context, arg DeleteFlowSecretParams) error
- func (q *Queries) DeleteGroupByUUID(ctx context.Context, argUuid uuid.UUID) error
- func (q *Queries) DeleteNamespace(ctx context.Context, argUuid uuid.UUID) error
- func (q *Queries) DeleteNamespaceSecret(ctx context.Context, arg DeleteNamespaceSecretParams) error
- func (q *Queries) DeleteNode(ctx context.Context, arg DeleteNodeParams) error
- func (q *Queries) DeleteSystemCronsByFlowID(ctx context.Context, flowID int32) error
- func (q *Queries) DeleteUserByUUID(ctx context.Context, argUuid uuid.UUID) error
- func (q *Queries) DeleteUserScheduleByUUID(ctx context.Context, arg DeleteUserScheduleByUUIDParams) (int64, error)
- func (q *Queries) DisableUserSchedulesForFlow(ctx context.Context, flowID int32) error
- func (q *Queries) ExecutionExistsForFlow(ctx context.Context, arg ExecutionExistsForFlowParams) (bool, error)
- func (q *Queries) GetAllCronSchedules(ctx context.Context) ([]GetAllCronSchedulesRow, error)
- func (q *Queries) GetAllExecutionsPaginated(ctx context.Context, arg GetAllExecutionsPaginatedParams) ([]GetAllExecutionsPaginatedRow, error)
- func (q *Queries) GetAllGroups(ctx context.Context) ([]Group, error)
- func (q *Queries) GetAllGroupsWithUsers(ctx context.Context) ([]GroupView, error)
- func (q *Queries) GetAllNamespaceMembers(ctx context.Context) ([]GetAllNamespaceMembersRow, error)
- func (q *Queries) GetAllNamespaces(ctx context.Context) ([]Namespace, error)
- func (q *Queries) GetAllPrefixAccesses(ctx context.Context) ([]GetAllPrefixAccessesRow, error)
- func (q *Queries) GetAllUsersWithGroups(ctx context.Context) ([]UserView, error)
- func (q *Queries) GetApprovalByUUID(ctx context.Context, arg GetApprovalByUUIDParams) (GetApprovalByUUIDRow, error)
- func (q *Queries) GetApprovalRequestForActionAndExec(ctx context.Context, arg GetApprovalRequestForActionAndExecParams) (Approval, error)
- func (q *Queries) GetApprovalRequestForExec(ctx context.Context, arg GetApprovalRequestForExecParams) (GetApprovalRequestForExecRow, error)
- func (q *Queries) GetApprovalWithInputsByUUID(ctx context.Context, arg GetApprovalWithInputsByUUIDParams) (GetApprovalWithInputsByUUIDRow, error)
- func (q *Queries) GetApprovalsPaginated(ctx context.Context, arg GetApprovalsPaginatedParams) ([]GetApprovalsPaginatedRow, error)
- func (q *Queries) GetCredentialByID(ctx context.Context, arg GetCredentialByIDParams) (GetCredentialByIDRow, error)
- func (q *Queries) GetCredentialByUUID(ctx context.Context, arg GetCredentialByUUIDParams) (GetCredentialByUUIDRow, error)
- func (q *Queries) GetCronSchedulesByFlowID(ctx context.Context, flowID int32) ([]CronSchedule, error)
- func (q *Queries) GetDecryptedNamespaceSecrets(ctx context.Context, argUuid uuid.UUID) ([]GetDecryptedNamespaceSecretsRow, error)
- func (q *Queries) GetDistinctPrefixes(ctx context.Context, argUuid uuid.UUID) ([]GetDistinctPrefixesRow, error)
- func (q *Queries) GetExecutionActionRetries(ctx context.Context, arg GetExecutionActionRetriesParams) (pqtype.NullRawMessage, error)
- func (q *Queries) GetExecutionByExecID(ctx context.Context, arg GetExecutionByExecIDParams) (GetExecutionByExecIDRow, error)
- func (q *Queries) GetExecutionByExecIDWithNamespace(ctx context.Context, arg GetExecutionByExecIDWithNamespaceParams) (GetExecutionByExecIDWithNamespaceRow, error)
- func (q *Queries) GetExecutionByID(ctx context.Context, arg GetExecutionByIDParams) (GetExecutionByIDRow, error)
- func (q *Queries) GetExecutionsByFlow(ctx context.Context, arg GetExecutionsByFlowParams) ([]GetExecutionsByFlowRow, error)
- func (q *Queries) GetExecutionsByFlowPaginated(ctx context.Context, arg GetExecutionsByFlowPaginatedParams) ([]GetExecutionsByFlowPaginatedRow, error)
- func (q *Queries) GetFlowBySlug(ctx context.Context, arg GetFlowBySlugParams) (Flow, error)
- func (q *Queries) GetFlowCountByPrefix(ctx context.Context, prefixID sql.NullInt32) (int64, error)
- func (q *Queries) GetFlowFromExecID(ctx context.Context, arg GetFlowFromExecIDParams) (Flow, error)
- func (q *Queries) GetFlowFromExecIDWithNamespace(ctx context.Context, arg GetFlowFromExecIDWithNamespaceParams) (Flow, error)
- func (q *Queries) GetFlowPrefixByName(ctx context.Context, arg GetFlowPrefixByNameParams) (FlowPrefix, error)
- func (q *Queries) GetFlowPrefixByUUID(ctx context.Context, arg GetFlowPrefixByUUIDParams) (FlowPrefix, error)
- func (q *Queries) GetFlowSecretByUUID(ctx context.Context, arg GetFlowSecretByUUIDParams) (GetFlowSecretByUUIDRow, error)
- func (q *Queries) GetFlowsByNamespace(ctx context.Context, argUuid uuid.UUID) ([]GetFlowsByNamespaceRow, error)
- func (q *Queries) GetFlowsByPrefix(ctx context.Context, arg GetFlowsByPrefixParams) ([]GetFlowsByPrefixRow, error)
- func (q *Queries) GetFlowsByPrefixUUID(ctx context.Context, arg GetFlowsByPrefixUUIDParams) ([]GetFlowsByPrefixUUIDRow, error)
- func (q *Queries) GetGroupByID(ctx context.Context, id int32) (Group, error)
- func (q *Queries) GetGroupByName(ctx context.Context, name string) (Group, error)
- func (q *Queries) GetGroupByUUID(ctx context.Context, argUuid uuid.UUID) (Group, error)
- func (q *Queries) GetGroupByUUIDWithUsers(ctx context.Context, argUuid uuid.UUID) (GroupView, error)
- func (q *Queries) GetGroupMembersByName(ctx context.Context, name string) ([]GetGroupMembersByNameRow, error)
- func (q *Queries) GetInputForExecByUUID(ctx context.Context, arg GetInputForExecByUUIDParams) (json.RawMessage, error)
- func (q *Queries) GetMemberPrefixes(ctx context.Context, arg GetMemberPrefixesParams) ([]GetMemberPrefixesRow, error)
- func (q *Queries) GetNamespaceByName(ctx context.Context, name string) (Namespace, error)
- func (q *Queries) GetNamespaceByUUID(ctx context.Context, argUuid uuid.UUID) (Namespace, error)
- func (q *Queries) GetNamespaceMemberByUUID(ctx context.Context, arg GetNamespaceMemberByUUIDParams) (GetNamespaceMemberByUUIDRow, error)
- func (q *Queries) GetNamespaceMembers(ctx context.Context, argUuid uuid.UUID) ([]GetNamespaceMembersRow, error)
- func (q *Queries) GetNamespaceSecretByUUID(ctx context.Context, arg GetNamespaceSecretByUUIDParams) (GetNamespaceSecretByUUIDRow, error)
- func (q *Queries) GetNodeByName(ctx context.Context, arg GetNodeByNameParams) (GetNodeByNameRow, error)
- func (q *Queries) GetNodeByUUID(ctx context.Context, arg GetNodeByUUIDParams) (GetNodeByUUIDRow, error)
- func (q *Queries) GetNodeStats(ctx context.Context, argUuid uuid.UUID) (GetNodeStatsRow, error)
- func (q *Queries) GetNodesByNames(ctx context.Context, arg GetNodesByNamesParams) ([]GetNodesByNamesRow, error)
- func (q *Queries) GetNodesByTags(ctx context.Context, arg GetNodesByTagsParams) ([]GetNodesByTagsRow, error)
- func (q *Queries) GetPendingTasks(ctx context.Context, limit int32) ([]SchedulerTask, error)
- func (q *Queries) GetPrefixMembers(ctx context.Context, arg GetPrefixMembersParams) ([]GetPrefixMembersRow, error)
- func (q *Queries) GetScheduleByFlowAndCron(ctx context.Context, arg GetScheduleByFlowAndCronParams) (CronSchedule, error)
- func (q *Queries) GetScheduledExecutionsByFlow(ctx context.Context, arg GetScheduledExecutionsByFlowParams) ([]GetScheduledExecutionsByFlowRow, error)
- func (q *Queries) GetScheduledFlows(ctx context.Context) ([]GetScheduledFlowsRow, error)
- func (q *Queries) GetUserAccessiblePrefixes(ctx context.Context, arg GetUserAccessiblePrefixesParams) ([]string, error)
- func (q *Queries) GetUserByID(ctx context.Context, id int32) (User, error)
- func (q *Queries) GetUserByUUID(ctx context.Context, argUuid uuid.UUID) (User, error)
- func (q *Queries) GetUserByUUIDWithGroups(ctx context.Context, argUuid uuid.UUID) (UserView, error)
- func (q *Queries) GetUserByUsername(ctx context.Context, username string) (User, error)
- func (q *Queries) GetUserByUsernameWithGroups(ctx context.Context, username string) (UserView, error)
- func (q *Queries) GetUserGroups(ctx context.Context, argUuid uuid.UUID) ([]Group, error)
- func (q *Queries) GetUserNamespacesWithRoles(ctx context.Context, argUuid uuid.UUID) ([]GetUserNamespacesWithRolesRow, error)
- func (q *Queries) GetUserScheduleByUUID(ctx context.Context, arg GetUserScheduleByUUIDParams) (GetUserScheduleByUUIDRow, error)
- func (q *Queries) GetUsersByRole(ctx context.Context, role UserRoleType) ([]User, error)
- func (q *Queries) IncrementActionRetry(ctx context.Context, arg IncrementActionRetryParams) (IncrementActionRetryRow, error)
- func (q *Queries) ListFlowPrefixes(ctx context.Context, argUuid uuid.UUID) ([]FlowPrefix, error)
- func (q *Queries) ListFlowSecrets(ctx context.Context, arg ListFlowSecretsParams) ([]ListFlowSecretsRow, error)
- func (q *Queries) ListFlows(ctx context.Context, arg ListFlowsParams) ([]ListFlowsRow, error)
- func (q *Queries) ListFlowsPaginated(ctx context.Context, arg ListFlowsPaginatedParams) ([]ListFlowsPaginatedRow, error)
- func (q *Queries) ListFlowsPaginatedFiltered(ctx context.Context, arg ListFlowsPaginatedFilteredParams) ([]ListFlowsPaginatedFilteredRow, error)
- func (q *Queries) ListNamespaceSecrets(ctx context.Context, argUuid uuid.UUID) ([]ListNamespaceSecretsRow, error)
- func (q *Queries) ListNamespaces(ctx context.Context, arg ListNamespacesParams) ([]ListNamespacesRow, error)
- func (q *Queries) ListSchedules(ctx context.Context, arg ListSchedulesParams) ([]ListSchedulesRow, error)
- func (q *Queries) MarkAllFlowsInactiveForNamespace(ctx context.Context, argUuid uuid.UUID) error
- func (q *Queries) MarkFlowActive(ctx context.Context, arg MarkFlowActiveParams) error
- func (q *Queries) RejectRequestByUUID(ctx context.Context, arg RejectRequestByUUIDParams) (RejectRequestByUUIDRow, error)
- func (q *Queries) RemoveAllGroupsForUserByUUID(ctx context.Context, userUuid uuid.UUID) error
- func (q *Queries) RemoveNamespaceMember(ctx context.Context, arg RemoveNamespaceMemberParams) (NamespaceMember, error)
- func (q *Queries) RevokeAllMemberPrefixAccess(ctx context.Context, arg RevokeAllMemberPrefixAccessParams) error
- func (q *Queries) RevokeGroupPrefixAccess(ctx context.Context, arg RevokeGroupPrefixAccessParams) error
- func (q *Queries) RevokeUserPrefixAccess(ctx context.Context, arg RevokeUserPrefixAccessParams) error
- func (q *Queries) SearchCredentials(ctx context.Context, arg SearchCredentialsParams) ([]SearchCredentialsRow, error)
- func (q *Queries) SearchExecutionsPaginated(ctx context.Context, arg SearchExecutionsPaginatedParams) ([]SearchExecutionsPaginatedRow, error)
- func (q *Queries) SearchFlowsPaginated(ctx context.Context, arg SearchFlowsPaginatedParams) ([]SearchFlowsPaginatedRow, error)
- func (q *Queries) SearchFlowsPaginatedFiltered(ctx context.Context, arg SearchFlowsPaginatedFilteredParams) ([]SearchFlowsPaginatedFilteredRow, error)
- func (q *Queries) SearchGroup(ctx context.Context, arg SearchGroupParams) ([]SearchGroupRow, error)
- func (q *Queries) SearchNodes(ctx context.Context, arg SearchNodesParams) ([]SearchNodesRow, error)
- func (q *Queries) SearchUsersWithGroups(ctx context.Context, arg SearchUsersWithGroupsParams) ([]SearchUsersWithGroupsRow, error)
- func (q *Queries) UpdateApprovalStatusByUUID(ctx context.Context, arg UpdateApprovalStatusByUUIDParams) (UpdateApprovalStatusByUUIDRow, error)
- func (q *Queries) UpdateCredential(ctx context.Context, arg UpdateCredentialParams) (Credential, error)
- func (q *Queries) UpdateExecutionActionID(ctx context.Context, arg UpdateExecutionActionIDParams) (ExecutionLog, error)
- func (q *Queries) UpdateExecutionActionRetries(ctx context.Context, arg UpdateExecutionActionRetriesParams) error
- func (q *Queries) UpdateExecutionStartedAt(ctx context.Context, arg UpdateExecutionStartedAtParams) error
- func (q *Queries) UpdateExecutionStatus(ctx context.Context, arg UpdateExecutionStatusParams) (ExecutionLog, error)
- func (q *Queries) UpdateFlow(ctx context.Context, arg UpdateFlowParams) (Flow, error)
- func (q *Queries) UpdateFlowPrefix(ctx context.Context, arg UpdateFlowPrefixParams) (FlowPrefix, error)
- func (q *Queries) UpdateFlowSecret(ctx context.Context, arg UpdateFlowSecretParams) (FlowSecret, error)
- func (q *Queries) UpdateGroupByUUID(ctx context.Context, arg UpdateGroupByUUIDParams) (Group, error)
- func (q *Queries) UpdateNamespace(ctx context.Context, arg UpdateNamespaceParams) (Namespace, error)
- func (q *Queries) UpdateNamespaceMember(ctx context.Context, arg UpdateNamespaceMemberParams) (NamespaceMember, error)
- func (q *Queries) UpdateNamespaceSecret(ctx context.Context, arg UpdateNamespaceSecretParams) (NamespaceSecret, error)
- func (q *Queries) UpdateNode(ctx context.Context, arg UpdateNodeParams) (Node, error)
- func (q *Queries) UpdateTaskStatus(ctx context.Context, arg UpdateTaskStatusParams) error
- func (q *Queries) UpdateUserByUUID(ctx context.Context, arg UpdateUserByUUIDParams) (User, error)
- func (q *Queries) UpdateUserPasswordByUsername(ctx context.Context, arg UpdateUserPasswordByUsernameParams) (User, error)
- func (q *Queries) UpdateUserScheduleByUUID(ctx context.Context, arg UpdateUserScheduleByUUIDParams) (CronSchedule, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type RejectRequestByUUIDParams
- type RejectRequestByUUIDRow
- type RemoveNamespaceMemberParams
- type RequestApprovalParam
- type RevokeAllMemberPrefixAccessParams
- type RevokeGroupPrefixAccessParams
- type RevokeUserPrefixAccessParams
- type SchedulerTask
- type SearchCredentialsParams
- type SearchCredentialsRow
- type SearchExecutionsPaginatedParams
- type SearchExecutionsPaginatedRow
- type SearchFlowsPaginatedFilteredParams
- type SearchFlowsPaginatedFilteredRow
- type SearchFlowsPaginatedParams
- type SearchFlowsPaginatedRow
- type SearchGroupParams
- type SearchGroupRow
- type SearchNodesParams
- type SearchNodesRow
- type SearchUsersWithGroupsParams
- type SearchUsersWithGroupsRow
- type Session
- type Store
- type TriggerType
- type UpdateApprovalStatusByUUIDParams
- type UpdateApprovalStatusByUUIDRow
- type UpdateCredentialParams
- type UpdateExecutionActionIDParams
- type UpdateExecutionActionRetriesParams
- type UpdateExecutionStartedAtParams
- type UpdateExecutionStatusParams
- type UpdateFlowParams
- type UpdateFlowPrefixParams
- type UpdateFlowSecretParams
- type UpdateFlowTxParams
- type UpdateGroupByUUIDParams
- type UpdateNamespaceMemberParams
- type UpdateNamespaceParams
- type UpdateNamespaceSecretParams
- type UpdateNodeParams
- type UpdateTaskStatusParams
- type UpdateUserByUUIDParams
- type UpdateUserPasswordByUsernameParams
- type UpdateUserScheduleByUUIDParams
- type UpdateUserTxParams
- type User
- type UserLoginType
- type UserRoleType
- type UserView
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessCredentialParams ¶
type AddApprovalRequestRow ¶
type AddApprovalRequestRow struct {
ID int32 `db:"id" json:"id"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
ExecLogID int32 `db:"exec_log_id" json:"exec_log_id"`
ActionID string `db:"action_id" json:"action_id"`
Status ApprovalStatus `db:"status" json:"status"`
DecidedBy sql.NullInt32 `db:"decided_by" json:"decided_by"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
RequestedBy string `db:"requested_by" json:"requested_by"`
}
type AddExecutionLogParams ¶
type AddExecutionLogParams struct {
ExecID string `db:"exec_id" json:"exec_id"`
FlowID int32 `db:"flow_id" json:"flow_id"`
Input json.RawMessage `db:"input" json:"input"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
Uuid_2 uuid.UUID `db:"uuid_2" json:"uuid_2"`
TriggerType TriggerType `db:"trigger_type" json:"trigger_type"`
ScheduledAt sql.NullTime `db:"scheduled_at" json:"scheduled_at"`
}
type Approval ¶
type Approval struct {
ID int32 `db:"id" json:"id"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
ExecLogID int32 `db:"exec_log_id" json:"exec_log_id"`
ActionID string `db:"action_id" json:"action_id"`
Status ApprovalStatus `db:"status" json:"status"`
DecidedBy sql.NullInt32 `db:"decided_by" json:"decided_by"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
}
type ApprovalDecisionResult ¶
type ApprovalStatus ¶
type ApprovalStatus string
const ( ApprovalStatusPending ApprovalStatus = "pending" ApprovalStatusApproved ApprovalStatus = "approved" ApprovalStatusRejected ApprovalStatus = "rejected" )
func (*ApprovalStatus) Scan ¶
func (e *ApprovalStatus) Scan(src interface{}) error
type ApproveRequestByUUIDRow ¶
type ApproveRequestByUUIDRow struct {
ID int32 `db:"id" json:"id"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
ExecLogID int32 `db:"exec_log_id" json:"exec_log_id"`
ActionID string `db:"action_id" json:"action_id"`
Status ApprovalStatus `db:"status" json:"status"`
DecidedBy sql.NullInt32 `db:"decided_by" json:"decided_by"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
RequestedBy string `db:"requested_by" json:"requested_by"`
}
type AssignGroupPrefixAccessParams ¶ added in v0.8.0
type AssignUserPrefixAccessParams ¶ added in v0.8.0
type AuthenticationMethod ¶
type AuthenticationMethod string
const ( AuthenticationMethodPrivateKey AuthenticationMethod = "private_key" AuthenticationMethodPassword AuthenticationMethod = "password" )
func (*AuthenticationMethod) Scan ¶
func (e *AuthenticationMethod) Scan(src interface{}) error
type CasbinRule ¶
type CasbinRule struct {
ID int32 `db:"id" json:"id"`
Ptype sql.NullString `db:"ptype" json:"ptype"`
V0 sql.NullString `db:"v0" json:"v0"`
V1 sql.NullString `db:"v1" json:"v1"`
V2 sql.NullString `db:"v2" json:"v2"`
V3 sql.NullString `db:"v3" json:"v3"`
V4 sql.NullString `db:"v4" json:"v4"`
V5 sql.NullString `db:"v5" json:"v5"`
}
type ConnectionType ¶
type ConnectionType string
const ( ConnectionTypeSsh ConnectionType = "ssh" ConnectionTypeQssh ConnectionType = "qssh" )
func (*ConnectionType) Scan ¶
func (e *ConnectionType) Scan(src interface{}) error
type CreateCredentialParams ¶
type CreateFlowParams ¶
type CreateFlowParams struct {
Slug string `db:"slug" json:"slug"`
Name string `db:"name" json:"name"`
Description sql.NullString `db:"description" json:"description"`
Checksum string `db:"checksum" json:"checksum"`
FilePath string `db:"file_path" json:"file_path"`
Name_2 string `db:"name_2" json:"name_2"`
PrefixID sql.NullInt32 `db:"prefix_id" json:"prefix_id"`
}
type CreateFlowPrefixParams ¶ added in v0.8.0
type CreateFlowSecretParams ¶
type CreateFlowTxParams ¶
type CreateGroupParams ¶
type CreateGroupParams struct {
Name string `db:"name" json:"name"`
Description sql.NullString `db:"description" json:"description"`
}
type CreateNodeParams ¶
type CreateNodeParams struct {
Name string `db:"name" json:"name"`
Hostname string `db:"hostname" json:"hostname"`
Port int32 `db:"port" json:"port"`
Username string `db:"username" json:"username"`
OsFamily string `db:"os_family" json:"os_family"`
Tags []string `db:"tags" json:"tags"`
AuthMethod AuthenticationMethod `db:"auth_method" json:"auth_method"`
ConnectionType ConnectionType `db:"connection_type" json:"connection_type"`
CredentialID sql.NullInt32 `db:"credential_id" json:"credential_id"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
}
type CreateUserParams ¶
type CreateUserParams struct {
Username string `db:"username" json:"username"`
Password sql.NullString `db:"password" json:"password"`
LoginType UserLoginType `db:"login_type" json:"login_type"`
Role UserRoleType `db:"role" json:"role"`
Name string `db:"name" json:"name"`
}
type CreateUserScheduleParams ¶ added in v0.5.0
type CreateUserTxParams ¶
type CreateUserTxParams struct {
Name string
Username string
LoginType UserLoginType
Role UserRoleType
Groups []string
}
type Credential ¶
type Credential struct {
ID int32 `db:"id" json:"id"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
Name string `db:"name" json:"name"`
KeyType string `db:"key_type" json:"key_type"`
KeyData string `db:"key_data" json:"key_data"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
LastAccessed sql.NullTime `db:"last_accessed" json:"last_accessed"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
}
type CronSchedule ¶
type CronSchedule struct {
ID int32 `db:"id" json:"id"`
FlowID int32 `db:"flow_id" json:"flow_id"`
Cron string `db:"cron" json:"cron"`
Timezone string `db:"timezone" json:"timezone"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
Inputs pqtype.NullRawMessage `db:"inputs" json:"inputs"`
CreatedBy int32 `db:"created_by" json:"created_by"`
IsUserCreated bool `db:"is_user_created" json:"is_user_created"`
IsActive bool `db:"is_active" json:"is_active"`
}
type DeleteCredentialParams ¶
type DeleteFlowParams ¶
type DeleteFlowPrefixParams ¶ added in v0.8.0
type DeleteFlowSecretParams ¶
type DeleteNodeParams ¶
type DeleteUserScheduleByUUIDParams ¶ added in v0.5.0
type ExecutionLog ¶
type ExecutionLog struct {
ID int32 `db:"id" json:"id"`
ExecID string `db:"exec_id" json:"exec_id"`
FlowID int32 `db:"flow_id" json:"flow_id"`
Version int32 `db:"version" json:"version"`
Input json.RawMessage `db:"input" json:"input"`
Error sql.NullString `db:"error" json:"error"`
CurrentActionID sql.NullString `db:"current_action_id" json:"current_action_id"`
Status ExecutionStatus `db:"status" json:"status"`
TriggerType TriggerType `db:"trigger_type" json:"trigger_type"`
TriggeredBy int32 `db:"triggered_by" json:"triggered_by"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
CompletedAt sql.NullTime `db:"completed_at" json:"completed_at"`
ActionRetries pqtype.NullRawMessage `db:"action_retries" json:"action_retries"`
ScheduledAt sql.NullTime `db:"scheduled_at" json:"scheduled_at"`
StartedAt sql.NullTime `db:"started_at" json:"started_at"`
}
type ExecutionStatus ¶
type ExecutionStatus string
const ( ExecutionStatusCancelled ExecutionStatus = "cancelled" ExecutionStatusCompleted ExecutionStatus = "completed" ExecutionStatusErrored ExecutionStatus = "errored" ExecutionStatusPending ExecutionStatus = "pending" ExecutionStatusPendingApproval ExecutionStatus = "pending_approval" ExecutionStatusRunning ExecutionStatus = "running" )
func (*ExecutionStatus) Scan ¶
func (e *ExecutionStatus) Scan(src interface{}) error
type Flow ¶
type Flow struct {
ID int32 `db:"id" json:"id"`
Slug string `db:"slug" json:"slug"`
Name string `db:"name" json:"name"`
Checksum string `db:"checksum" json:"checksum"`
Description sql.NullString `db:"description" json:"description"`
FilePath string `db:"file_path" json:"file_path"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
IsActive bool `db:"is_active" json:"is_active"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
PrefixID sql.NullInt32 `db:"prefix_id" json:"prefix_id"`
}
type FlowPrefix ¶ added in v0.8.0
type FlowPrefix struct {
ID int32 `db:"id" json:"id"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
Name string `db:"name" json:"name"`
Description string `db:"description" json:"description"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
}
type FlowSecret ¶
type FlowSecret struct {
ID int32 `db:"id" json:"id"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
FlowID int32 `db:"flow_id" json:"flow_id"`
Key string `db:"key" json:"key"`
EncryptedValue string `db:"encrypted_value" json:"encrypted_value"`
Description sql.NullString `db:"description" json:"description"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
}
type GetAllCronSchedulesRow ¶
type GetAllCronSchedulesRow struct {
ID int32 `db:"id" json:"id"`
FlowID int32 `db:"flow_id" json:"flow_id"`
Cron string `db:"cron" json:"cron"`
Timezone string `db:"timezone" json:"timezone"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
Inputs pqtype.NullRawMessage `db:"inputs" json:"inputs"`
CreatedBy int32 `db:"created_by" json:"created_by"`
IsUserCreated bool `db:"is_user_created" json:"is_user_created"`
IsActive bool `db:"is_active" json:"is_active"`
FlowSlug string `db:"flow_slug" json:"flow_slug"`
FlowName string `db:"flow_name" json:"flow_name"`
NamespaceUuid uuid.UUID `db:"namespace_uuid" json:"namespace_uuid"`
}
type GetAllExecutionsPaginatedRow ¶
type GetAllExecutionsPaginatedRow struct {
ID int32 `db:"id" json:"id"`
ExecID string `db:"exec_id" json:"exec_id"`
FlowID int32 `db:"flow_id" json:"flow_id"`
Version int32 `db:"version" json:"version"`
Input json.RawMessage `db:"input" json:"input"`
Error sql.NullString `db:"error" json:"error"`
CurrentActionID sql.NullString `db:"current_action_id" json:"current_action_id"`
Status ExecutionStatus `db:"status" json:"status"`
TriggerType TriggerType `db:"trigger_type" json:"trigger_type"`
TriggeredBy int32 `db:"triggered_by" json:"triggered_by"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
CompletedAt sql.NullTime `db:"completed_at" json:"completed_at"`
ActionRetries pqtype.NullRawMessage `db:"action_retries" json:"action_retries"`
ScheduledAt sql.NullTime `db:"scheduled_at" json:"scheduled_at"`
StartedAt sql.NullTime `db:"started_at" json:"started_at"`
Name string `db:"name" json:"name"`
Username string `db:"username" json:"username"`
TriggeredByUuid uuid.UUID `db:"triggered_by_uuid" json:"triggered_by_uuid"`
TriggeredByName string `db:"triggered_by_name" json:"triggered_by_name"`
FlowName string `db:"flow_name" json:"flow_name"`
FlowSlug string `db:"flow_slug" json:"flow_slug"`
PageCount int64 `db:"page_count" json:"page_count"`
TotalCount int64 `db:"total_count" json:"total_count"`
}
type GetAllNamespaceMembersRow ¶
type GetAllNamespaceMembersRow struct {
Uuid uuid.UUID `db:"uuid" json:"uuid"`
SubjectUuid uuid.UUID `db:"subject_uuid" json:"subject_uuid"`
SubjectType string `db:"subject_type" json:"subject_type"`
Role string `db:"role" json:"role"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
NamespaceUuid uuid.UUID `db:"namespace_uuid" json:"namespace_uuid"`
NamespaceName string `db:"namespace_name" json:"namespace_name"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
}
type GetAllPrefixAccessesRow ¶ added in v0.8.0
type GetAllPrefixAccessesRow struct {
Uuid uuid.UUID `db:"uuid" json:"uuid"`
SubjectUuid uuid.UUID `db:"subject_uuid" json:"subject_uuid"`
SubjectType string `db:"subject_type" json:"subject_type"`
NamespaceUuid uuid.UUID `db:"namespace_uuid" json:"namespace_uuid"`
Prefix string `db:"prefix" json:"prefix"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
}
type GetApprovalByUUIDParams ¶
type GetApprovalByUUIDRow ¶
type GetApprovalByUUIDRow struct {
ID int32 `db:"id" json:"id"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
ExecLogID int32 `db:"exec_log_id" json:"exec_log_id"`
ActionID string `db:"action_id" json:"action_id"`
Status ApprovalStatus `db:"status" json:"status"`
DecidedBy sql.NullInt32 `db:"decided_by" json:"decided_by"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
ExecID string `db:"exec_id" json:"exec_id"`
RequestedBy string `db:"requested_by" json:"requested_by"`
}
type GetApprovalRequestForExecRow ¶
type GetApprovalRequestForExecRow struct {
ID int32 `db:"id" json:"id"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
ExecLogID int32 `db:"exec_log_id" json:"exec_log_id"`
ActionID string `db:"action_id" json:"action_id"`
Status ApprovalStatus `db:"status" json:"status"`
DecidedBy sql.NullInt32 `db:"decided_by" json:"decided_by"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
ExecID string `db:"exec_id" json:"exec_id"`
RequestedBy string `db:"requested_by" json:"requested_by"`
}
type GetApprovalWithInputsByUUIDRow ¶
type GetApprovalWithInputsByUUIDRow struct {
ID int32 `db:"id" json:"id"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
ExecLogID int32 `db:"exec_log_id" json:"exec_log_id"`
ActionID string `db:"action_id" json:"action_id"`
Status ApprovalStatus `db:"status" json:"status"`
DecidedBy sql.NullInt32 `db:"decided_by" json:"decided_by"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
ExecID string `db:"exec_id" json:"exec_id"`
ExecInputs json.RawMessage `db:"exec_inputs" json:"exec_inputs"`
FlowName string `db:"flow_name" json:"flow_name"`
FlowSlug string `db:"flow_slug" json:"flow_slug"`
RequestedBy string `db:"requested_by" json:"requested_by"`
DecidedByName sql.NullString `db:"decided_by_name" json:"decided_by_name"`
}
type GetApprovalsPaginatedRow ¶
type GetApprovalsPaginatedRow struct {
ID int32 `db:"id" json:"id"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
ExecLogID int32 `db:"exec_log_id" json:"exec_log_id"`
ActionID string `db:"action_id" json:"action_id"`
Status ApprovalStatus `db:"status" json:"status"`
DecidedBy sql.NullInt32 `db:"decided_by" json:"decided_by"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
ExecID string `db:"exec_id" json:"exec_id"`
RequestedBy string `db:"requested_by" json:"requested_by"`
FlowName string `db:"flow_name" json:"flow_name"`
PageCount int64 `db:"page_count" json:"page_count"`
TotalCount int64 `db:"total_count" json:"total_count"`
}
type GetCredentialByIDParams ¶
type GetCredentialByIDRow ¶
type GetCredentialByIDRow struct {
ID int32 `db:"id" json:"id"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
Name string `db:"name" json:"name"`
KeyType string `db:"key_type" json:"key_type"`
KeyData string `db:"key_data" json:"key_data"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
LastAccessed sql.NullTime `db:"last_accessed" json:"last_accessed"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
NamespaceUuid uuid.UUID `db:"namespace_uuid" json:"namespace_uuid"`
}
type GetCredentialByUUIDRow ¶
type GetCredentialByUUIDRow struct {
ID int32 `db:"id" json:"id"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
Name string `db:"name" json:"name"`
KeyType string `db:"key_type" json:"key_type"`
KeyData string `db:"key_data" json:"key_data"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
LastAccessed sql.NullTime `db:"last_accessed" json:"last_accessed"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
NamespaceUuid uuid.UUID `db:"namespace_uuid" json:"namespace_uuid"`
}
type GetDistinctPrefixesRow ¶ added in v0.8.0
type GetExecutionActionRetriesParams ¶ added in v0.3.0
type GetExecutionByExecIDRow ¶
type GetExecutionByExecIDRow struct {
ID int32 `db:"id" json:"id"`
ExecID string `db:"exec_id" json:"exec_id"`
FlowID int32 `db:"flow_id" json:"flow_id"`
Version int32 `db:"version" json:"version"`
Input json.RawMessage `db:"input" json:"input"`
Error sql.NullString `db:"error" json:"error"`
CurrentActionID sql.NullString `db:"current_action_id" json:"current_action_id"`
Status ExecutionStatus `db:"status" json:"status"`
TriggerType TriggerType `db:"trigger_type" json:"trigger_type"`
TriggeredBy int32 `db:"triggered_by" json:"triggered_by"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
CompletedAt sql.NullTime `db:"completed_at" json:"completed_at"`
ActionRetries pqtype.NullRawMessage `db:"action_retries" json:"action_retries"`
ScheduledAt sql.NullTime `db:"scheduled_at" json:"scheduled_at"`
StartedAt sql.NullTime `db:"started_at" json:"started_at"`
Name string `db:"name" json:"name"`
Username string `db:"username" json:"username"`
TriggeredByUuid uuid.UUID `db:"triggered_by_uuid" json:"triggered_by_uuid"`
TriggeredByName string `db:"triggered_by_name" json:"triggered_by_name"`
FlowName string `db:"flow_name" json:"flow_name"`
FlowSlug string `db:"flow_slug" json:"flow_slug"`
}
type GetExecutionByExecIDWithNamespaceRow ¶
type GetExecutionByExecIDWithNamespaceRow struct {
ID int32 `db:"id" json:"id"`
ExecID string `db:"exec_id" json:"exec_id"`
FlowID int32 `db:"flow_id" json:"flow_id"`
Version int32 `db:"version" json:"version"`
Input json.RawMessage `db:"input" json:"input"`
Error sql.NullString `db:"error" json:"error"`
CurrentActionID sql.NullString `db:"current_action_id" json:"current_action_id"`
Status ExecutionStatus `db:"status" json:"status"`
TriggerType TriggerType `db:"trigger_type" json:"trigger_type"`
TriggeredBy int32 `db:"triggered_by" json:"triggered_by"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
CompletedAt sql.NullTime `db:"completed_at" json:"completed_at"`
ActionRetries pqtype.NullRawMessage `db:"action_retries" json:"action_retries"`
ScheduledAt sql.NullTime `db:"scheduled_at" json:"scheduled_at"`
StartedAt sql.NullTime `db:"started_at" json:"started_at"`
Name string `db:"name" json:"name"`
Username string `db:"username" json:"username"`
TriggeredByUuid uuid.UUID `db:"triggered_by_uuid" json:"triggered_by_uuid"`
TriggeredByName string `db:"triggered_by_name" json:"triggered_by_name"`
FlowName string `db:"flow_name" json:"flow_name"`
FlowSlug string `db:"flow_slug" json:"flow_slug"`
}
type GetExecutionByIDParams ¶
type GetExecutionByIDRow ¶
type GetExecutionByIDRow struct {
ID int32 `db:"id" json:"id"`
ExecID string `db:"exec_id" json:"exec_id"`
FlowID int32 `db:"flow_id" json:"flow_id"`
Version int32 `db:"version" json:"version"`
Input json.RawMessage `db:"input" json:"input"`
Error sql.NullString `db:"error" json:"error"`
CurrentActionID sql.NullString `db:"current_action_id" json:"current_action_id"`
Status ExecutionStatus `db:"status" json:"status"`
TriggerType TriggerType `db:"trigger_type" json:"trigger_type"`
TriggeredBy int32 `db:"triggered_by" json:"triggered_by"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
CompletedAt sql.NullTime `db:"completed_at" json:"completed_at"`
ActionRetries pqtype.NullRawMessage `db:"action_retries" json:"action_retries"`
ScheduledAt sql.NullTime `db:"scheduled_at" json:"scheduled_at"`
StartedAt sql.NullTime `db:"started_at" json:"started_at"`
Name string `db:"name" json:"name"`
Username string `db:"username" json:"username"`
TriggeredByUuid uuid.UUID `db:"triggered_by_uuid" json:"triggered_by_uuid"`
TriggeredByName string `db:"triggered_by_name" json:"triggered_by_name"`
FlowName string `db:"flow_name" json:"flow_name"`
FlowSlug string `db:"flow_slug" json:"flow_slug"`
}
type GetExecutionsByFlowPaginatedRow ¶
type GetExecutionsByFlowPaginatedRow struct {
ID int32 `db:"id" json:"id"`
ExecID string `db:"exec_id" json:"exec_id"`
FlowID int32 `db:"flow_id" json:"flow_id"`
Version int32 `db:"version" json:"version"`
Input json.RawMessage `db:"input" json:"input"`
Error sql.NullString `db:"error" json:"error"`
CurrentActionID sql.NullString `db:"current_action_id" json:"current_action_id"`
Status ExecutionStatus `db:"status" json:"status"`
TriggerType TriggerType `db:"trigger_type" json:"trigger_type"`
TriggeredBy int32 `db:"triggered_by" json:"triggered_by"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
CompletedAt sql.NullTime `db:"completed_at" json:"completed_at"`
ActionRetries pqtype.NullRawMessage `db:"action_retries" json:"action_retries"`
ScheduledAt sql.NullTime `db:"scheduled_at" json:"scheduled_at"`
StartedAt sql.NullTime `db:"started_at" json:"started_at"`
Name string `db:"name" json:"name"`
Username string `db:"username" json:"username"`
TriggeredByUuid uuid.UUID `db:"triggered_by_uuid" json:"triggered_by_uuid"`
TriggeredByName string `db:"triggered_by_name" json:"triggered_by_name"`
FlowName string `db:"flow_name" json:"flow_name"`
FlowSlug string `db:"flow_slug" json:"flow_slug"`
PageCount int64 `db:"page_count" json:"page_count"`
TotalCount int64 `db:"total_count" json:"total_count"`
}
type GetExecutionsByFlowRow ¶
type GetExecutionsByFlowRow struct {
ID int32 `db:"id" json:"id"`
ExecID string `db:"exec_id" json:"exec_id"`
FlowID int32 `db:"flow_id" json:"flow_id"`
Version int32 `db:"version" json:"version"`
Input json.RawMessage `db:"input" json:"input"`
Error sql.NullString `db:"error" json:"error"`
CurrentActionID sql.NullString `db:"current_action_id" json:"current_action_id"`
Status ExecutionStatus `db:"status" json:"status"`
TriggerType TriggerType `db:"trigger_type" json:"trigger_type"`
TriggeredBy int32 `db:"triggered_by" json:"triggered_by"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
CompletedAt sql.NullTime `db:"completed_at" json:"completed_at"`
ActionRetries pqtype.NullRawMessage `db:"action_retries" json:"action_retries"`
ScheduledAt sql.NullTime `db:"scheduled_at" json:"scheduled_at"`
StartedAt sql.NullTime `db:"started_at" json:"started_at"`
Name string `db:"name" json:"name"`
Username string `db:"username" json:"username"`
TriggeredByUuid uuid.UUID `db:"triggered_by_uuid" json:"triggered_by_uuid"`
TriggeredByName string `db:"triggered_by_name" json:"triggered_by_name"`
FlowName string `db:"flow_name" json:"flow_name"`
FlowSlug string `db:"flow_slug" json:"flow_slug"`
}
type GetFlowBySlugParams ¶
type GetFlowFromExecIDParams ¶
type GetFlowPrefixByNameParams ¶ added in v0.8.0
type GetFlowPrefixByUUIDParams ¶ added in v0.8.0
type GetFlowSecretByUUIDRow ¶
type GetFlowSecretByUUIDRow struct {
ID int32 `db:"id" json:"id"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
FlowID int32 `db:"flow_id" json:"flow_id"`
Key string `db:"key" json:"key"`
EncryptedValue string `db:"encrypted_value" json:"encrypted_value"`
Description sql.NullString `db:"description" json:"description"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
NamespaceUuid uuid.UUID `db:"namespace_uuid" json:"namespace_uuid"`
}
type GetFlowsByNamespaceRow ¶
type GetFlowsByNamespaceRow struct {
ID int32 `db:"id" json:"id"`
Slug string `db:"slug" json:"slug"`
Name string `db:"name" json:"name"`
Checksum string `db:"checksum" json:"checksum"`
Description sql.NullString `db:"description" json:"description"`
FilePath string `db:"file_path" json:"file_path"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
IsActive bool `db:"is_active" json:"is_active"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
PrefixID sql.NullInt32 `db:"prefix_id" json:"prefix_id"`
NamespaceUuid uuid.UUID `db:"namespace_uuid" json:"namespace_uuid"`
}
type GetFlowsByPrefixParams ¶ added in v0.8.0
type GetFlowsByPrefixRow ¶ added in v0.8.0
type GetFlowsByPrefixRow struct {
ID int32 `db:"id" json:"id"`
Slug string `db:"slug" json:"slug"`
Name string `db:"name" json:"name"`
Checksum string `db:"checksum" json:"checksum"`
Description sql.NullString `db:"description" json:"description"`
FilePath string `db:"file_path" json:"file_path"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
IsActive bool `db:"is_active" json:"is_active"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
PrefixID sql.NullInt32 `db:"prefix_id" json:"prefix_id"`
NamespaceUuid uuid.UUID `db:"namespace_uuid" json:"namespace_uuid"`
}
type GetFlowsByPrefixUUIDParams ¶ added in v0.8.0
type GetFlowsByPrefixUUIDRow ¶ added in v0.8.0
type GetFlowsByPrefixUUIDRow struct {
ID int32 `db:"id" json:"id"`
Slug string `db:"slug" json:"slug"`
Name string `db:"name" json:"name"`
Checksum string `db:"checksum" json:"checksum"`
Description sql.NullString `db:"description" json:"description"`
FilePath string `db:"file_path" json:"file_path"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
IsActive bool `db:"is_active" json:"is_active"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
PrefixID sql.NullInt32 `db:"prefix_id" json:"prefix_id"`
NamespaceUuid uuid.UUID `db:"namespace_uuid" json:"namespace_uuid"`
}
type GetGroupMembersByNameRow ¶ added in v0.2.0
type GetMemberPrefixesParams ¶ added in v0.8.0
type GetMemberPrefixesRow ¶ added in v0.8.0
type GetNamespaceMemberByUUIDParams ¶ added in v0.8.0
type GetNamespaceMemberByUUIDRow ¶ added in v0.8.0
type GetNamespaceMemberByUUIDRow struct {
ID int32 `db:"id" json:"id"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
UserID sql.NullInt32 `db:"user_id" json:"user_id"`
GroupID sql.NullInt32 `db:"group_id" json:"group_id"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
Role string `db:"role" json:"role"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
SubjectUuid uuid.UUID `db:"subject_uuid" json:"subject_uuid"`
SubjectType string `db:"subject_type" json:"subject_type"`
}
type GetNamespaceMembersRow ¶
type GetNamespaceMembersRow struct {
Uuid uuid.UUID `db:"uuid" json:"uuid"`
SubjectUuid uuid.UUID `db:"subject_uuid" json:"subject_uuid"`
SubjectName string `db:"subject_name" json:"subject_name"`
SubjectType string `db:"subject_type" json:"subject_type"`
Role string `db:"role" json:"role"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
}
type GetNamespaceSecretByUUIDRow ¶
type GetNamespaceSecretByUUIDRow struct {
ID int32 `db:"id" json:"id"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
Key string `db:"key" json:"key"`
EncryptedValue string `db:"encrypted_value" json:"encrypted_value"`
Description sql.NullString `db:"description" json:"description"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
NamespaceUuid uuid.UUID `db:"namespace_uuid" json:"namespace_uuid"`
}
type GetNodeByNameParams ¶
type GetNodeByNameRow ¶
type GetNodeByNameRow struct {
ID int32 `db:"id" json:"id"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
Name string `db:"name" json:"name"`
Hostname string `db:"hostname" json:"hostname"`
Port int32 `db:"port" json:"port"`
Username string `db:"username" json:"username"`
OsFamily string `db:"os_family" json:"os_family"`
Tags []string `db:"tags" json:"tags"`
AuthMethod AuthenticationMethod `db:"auth_method" json:"auth_method"`
ConnectionType ConnectionType `db:"connection_type" json:"connection_type"`
CredentialID sql.NullInt32 `db:"credential_id" json:"credential_id"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
NamespaceUuid uuid.UUID `db:"namespace_uuid" json:"namespace_uuid"`
}
type GetNodeByUUIDParams ¶
type GetNodeByUUIDRow ¶
type GetNodeByUUIDRow struct {
ID int32 `db:"id" json:"id"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
Name string `db:"name" json:"name"`
Hostname string `db:"hostname" json:"hostname"`
Port int32 `db:"port" json:"port"`
Username string `db:"username" json:"username"`
OsFamily string `db:"os_family" json:"os_family"`
Tags []string `db:"tags" json:"tags"`
AuthMethod AuthenticationMethod `db:"auth_method" json:"auth_method"`
ConnectionType ConnectionType `db:"connection_type" json:"connection_type"`
CredentialID sql.NullInt32 `db:"credential_id" json:"credential_id"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
NamespaceUuid uuid.UUID `db:"namespace_uuid" json:"namespace_uuid"`
}
type GetNodeStatsRow ¶
type GetNodesByNamesParams ¶
type GetNodesByNamesRow ¶
type GetNodesByNamesRow struct {
ID int32 `db:"id" json:"id"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
Name string `db:"name" json:"name"`
Hostname string `db:"hostname" json:"hostname"`
Port int32 `db:"port" json:"port"`
Username string `db:"username" json:"username"`
OsFamily string `db:"os_family" json:"os_family"`
Tags []string `db:"tags" json:"tags"`
AuthMethod AuthenticationMethod `db:"auth_method" json:"auth_method"`
ConnectionType ConnectionType `db:"connection_type" json:"connection_type"`
CredentialID sql.NullInt32 `db:"credential_id" json:"credential_id"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
NamespaceUuid uuid.UUID `db:"namespace_uuid" json:"namespace_uuid"`
CredentialUuid uuid.NullUUID `db:"credential_uuid" json:"credential_uuid"`
CredentialName sql.NullString `db:"credential_name" json:"credential_name"`
CredentialKeyType sql.NullString `db:"credential_key_type" json:"credential_key_type"`
CredentialKeyData sql.NullString `db:"credential_key_data" json:"credential_key_data"`
}
type GetNodesByTagsParams ¶ added in v0.5.0
type GetNodesByTagsRow ¶ added in v0.5.0
type GetNodesByTagsRow struct {
ID int32 `db:"id" json:"id"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
Name string `db:"name" json:"name"`
Hostname string `db:"hostname" json:"hostname"`
Port int32 `db:"port" json:"port"`
Username string `db:"username" json:"username"`
OsFamily string `db:"os_family" json:"os_family"`
Tags []string `db:"tags" json:"tags"`
AuthMethod AuthenticationMethod `db:"auth_method" json:"auth_method"`
ConnectionType ConnectionType `db:"connection_type" json:"connection_type"`
CredentialID sql.NullInt32 `db:"credential_id" json:"credential_id"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
NamespaceUuid uuid.UUID `db:"namespace_uuid" json:"namespace_uuid"`
CredentialUuid uuid.NullUUID `db:"credential_uuid" json:"credential_uuid"`
CredentialName sql.NullString `db:"credential_name" json:"credential_name"`
CredentialKeyType sql.NullString `db:"credential_key_type" json:"credential_key_type"`
CredentialKeyData sql.NullString `db:"credential_key_data" json:"credential_key_data"`
}
type GetPrefixMembersParams ¶ added in v0.8.0
type GetPrefixMembersRow ¶ added in v0.8.0
type GetPrefixMembersRow struct {
Uuid uuid.UUID `db:"uuid" json:"uuid"`
SubjectUuid uuid.UUID `db:"subject_uuid" json:"subject_uuid"`
SubjectName string `db:"subject_name" json:"subject_name"`
SubjectType string `db:"subject_type" json:"subject_type"`
Prefix string `db:"prefix" json:"prefix"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
}
type GetScheduleByFlowAndCronParams ¶ added in v0.5.0
type GetScheduledExecutionsByFlowParams ¶ added in v0.4.0
type GetScheduledExecutionsByFlowRow ¶ added in v0.4.0
type GetScheduledFlowsRow ¶
type GetScheduledFlowsRow struct {
ID int32 `db:"id" json:"id"`
Slug string `db:"slug" json:"slug"`
Name string `db:"name" json:"name"`
Checksum string `db:"checksum" json:"checksum"`
Description sql.NullString `db:"description" json:"description"`
FilePath string `db:"file_path" json:"file_path"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
IsActive bool `db:"is_active" json:"is_active"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
PrefixID sql.NullInt32 `db:"prefix_id" json:"prefix_id"`
NamespaceUuid uuid.UUID `db:"namespace_uuid" json:"namespace_uuid"`
ScheduleID int32 `db:"schedule_id" json:"schedule_id"`
Cron string `db:"cron" json:"cron"`
Timezone string `db:"timezone" json:"timezone"`
Inputs pqtype.NullRawMessage `db:"inputs" json:"inputs"`
CreatedBy int32 `db:"created_by" json:"created_by"`
IsUserCreated bool `db:"is_user_created" json:"is_user_created"`
}
type GetUserAccessiblePrefixesParams ¶ added in v0.8.0
type GetUserScheduleByUUIDParams ¶ added in v0.5.0
type GetUserScheduleByUUIDRow ¶ added in v0.5.0
type GetUserScheduleByUUIDRow struct {
ID int32 `db:"id" json:"id"`
FlowID int32 `db:"flow_id" json:"flow_id"`
Cron string `db:"cron" json:"cron"`
Timezone string `db:"timezone" json:"timezone"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
Inputs pqtype.NullRawMessage `db:"inputs" json:"inputs"`
CreatedBy int32 `db:"created_by" json:"created_by"`
IsUserCreated bool `db:"is_user_created" json:"is_user_created"`
IsActive bool `db:"is_active" json:"is_active"`
FlowSlug string `db:"flow_slug" json:"flow_slug"`
FlowName string `db:"flow_name" json:"flow_name"`
CreatedByUuid uuid.UUID `db:"created_by_uuid" json:"created_by_uuid"`
CreatedByName string `db:"created_by_name" json:"created_by_name"`
}
type Group ¶
type Group struct {
ID int32 `db:"id" json:"id"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
Name string `db:"name" json:"name"`
Description sql.NullString `db:"description" json:"description"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
}
type GroupMembership ¶
type GroupView ¶
type GroupView struct {
ID int32 `db:"id" json:"id"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
Name string `db:"name" json:"name"`
Description sql.NullString `db:"description" json:"description"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
Users interface{} `db:"users" json:"users"`
}
type IncrementActionRetryParams ¶ added in v0.3.0
type IncrementActionRetryRow ¶ added in v0.3.0
type IncrementActionRetryRow struct {
ActionRetries pqtype.NullRawMessage `db:"action_retries" json:"action_retries"`
RetryCount int32 `db:"retry_count" json:"retry_count"`
}
type ListFlowSecretsParams ¶
type ListFlowSecretsRow ¶
type ListFlowSecretsRow struct {
ID int32 `db:"id" json:"id"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
FlowID int32 `db:"flow_id" json:"flow_id"`
Key string `db:"key" json:"key"`
EncryptedValue string `db:"encrypted_value" json:"encrypted_value"`
Description sql.NullString `db:"description" json:"description"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
NamespaceUuid uuid.UUID `db:"namespace_uuid" json:"namespace_uuid"`
}
type ListFlowsPaginatedFilteredParams ¶ added in v0.8.0
type ListFlowsPaginatedFilteredRow ¶ added in v0.8.0
type ListFlowsPaginatedFilteredRow struct {
ID int32 `db:"id" json:"id"`
Slug string `db:"slug" json:"slug"`
Name string `db:"name" json:"name"`
Checksum string `db:"checksum" json:"checksum"`
Description sql.NullString `db:"description" json:"description"`
FilePath string `db:"file_path" json:"file_path"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
IsActive bool `db:"is_active" json:"is_active"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
PrefixID sql.NullInt32 `db:"prefix_id" json:"prefix_id"`
NamespaceUuid uuid.UUID `db:"namespace_uuid" json:"namespace_uuid"`
PrefixName sql.NullString `db:"prefix_name" json:"prefix_name"`
PageCount int64 `db:"page_count" json:"page_count"`
TotalCount int64 `db:"total_count" json:"total_count"`
}
type ListFlowsPaginatedRow ¶
type ListFlowsPaginatedRow struct {
ID int32 `db:"id" json:"id"`
Slug string `db:"slug" json:"slug"`
Name string `db:"name" json:"name"`
Checksum string `db:"checksum" json:"checksum"`
Description sql.NullString `db:"description" json:"description"`
FilePath string `db:"file_path" json:"file_path"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
IsActive bool `db:"is_active" json:"is_active"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
PrefixID sql.NullInt32 `db:"prefix_id" json:"prefix_id"`
NamespaceUuid uuid.UUID `db:"namespace_uuid" json:"namespace_uuid"`
PrefixName sql.NullString `db:"prefix_name" json:"prefix_name"`
PageCount int64 `db:"page_count" json:"page_count"`
TotalCount int64 `db:"total_count" json:"total_count"`
}
type ListFlowsParams ¶
type ListFlowsRow ¶
type ListFlowsRow struct {
ID int32 `db:"id" json:"id"`
Slug string `db:"slug" json:"slug"`
Name string `db:"name" json:"name"`
Checksum string `db:"checksum" json:"checksum"`
Description sql.NullString `db:"description" json:"description"`
FilePath string `db:"file_path" json:"file_path"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
IsActive bool `db:"is_active" json:"is_active"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
PrefixID sql.NullInt32 `db:"prefix_id" json:"prefix_id"`
NamespaceUuid uuid.UUID `db:"namespace_uuid" json:"namespace_uuid"`
PageCount int64 `db:"page_count" json:"page_count"`
TotalCount int64 `db:"total_count" json:"total_count"`
}
type ListNamespaceSecretsRow ¶
type ListNamespaceSecretsRow struct {
ID int32 `db:"id" json:"id"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
Key string `db:"key" json:"key"`
EncryptedValue string `db:"encrypted_value" json:"encrypted_value"`
Description sql.NullString `db:"description" json:"description"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
NamespaceUuid uuid.UUID `db:"namespace_uuid" json:"namespace_uuid"`
}
type ListNamespacesParams ¶
type ListNamespacesRow ¶
type ListNamespacesRow struct {
ID int32 `db:"id" json:"id"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
Name string `db:"name" json:"name"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
PageCount int64 `db:"page_count" json:"page_count"`
TotalCount int64 `db:"total_count" json:"total_count"`
}
type ListSchedulesParams ¶ added in v0.5.0
type ListSchedulesRow ¶ added in v0.5.0
type ListSchedulesRow struct {
ID int32 `db:"id" json:"id"`
FlowID int32 `db:"flow_id" json:"flow_id"`
Cron string `db:"cron" json:"cron"`
Timezone string `db:"timezone" json:"timezone"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
Inputs pqtype.NullRawMessage `db:"inputs" json:"inputs"`
CreatedBy int32 `db:"created_by" json:"created_by"`
IsUserCreated bool `db:"is_user_created" json:"is_user_created"`
IsActive bool `db:"is_active" json:"is_active"`
FlowSlug string `db:"flow_slug" json:"flow_slug"`
FlowName string `db:"flow_name" json:"flow_name"`
CreatedByUuid uuid.UUID `db:"created_by_uuid" json:"created_by_uuid"`
CreatedByName string `db:"created_by_name" json:"created_by_name"`
PageCount int64 `db:"page_count" json:"page_count"`
TotalCount int64 `db:"total_count" json:"total_count"`
}
type MarkFlowActiveParams ¶
type NamespaceMember ¶
type NamespaceMember struct {
ID int32 `db:"id" json:"id"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
UserID sql.NullInt32 `db:"user_id" json:"user_id"`
GroupID sql.NullInt32 `db:"group_id" json:"group_id"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
Role string `db:"role" json:"role"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
}
type NamespaceSecret ¶
type NamespaceSecret struct {
ID int32 `db:"id" json:"id"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
Key string `db:"key" json:"key"`
EncryptedValue string `db:"encrypted_value" json:"encrypted_value"`
Description sql.NullString `db:"description" json:"description"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
}
type Node ¶
type Node struct {
ID int32 `db:"id" json:"id"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
Name string `db:"name" json:"name"`
Hostname string `db:"hostname" json:"hostname"`
Port int32 `db:"port" json:"port"`
Username string `db:"username" json:"username"`
OsFamily string `db:"os_family" json:"os_family"`
Tags []string `db:"tags" json:"tags"`
AuthMethod AuthenticationMethod `db:"auth_method" json:"auth_method"`
ConnectionType ConnectionType `db:"connection_type" json:"connection_type"`
CredentialID sql.NullInt32 `db:"credential_id" json:"credential_id"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
}
type NullApprovalStatus ¶
type NullApprovalStatus struct {
ApprovalStatus ApprovalStatus `json:"approval_status"`
Valid bool `json:"valid"` // Valid is true if ApprovalStatus is not NULL
}
func (*NullApprovalStatus) Scan ¶
func (ns *NullApprovalStatus) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullAuthenticationMethod ¶
type NullAuthenticationMethod struct {
AuthenticationMethod AuthenticationMethod `json:"authentication_method"`
Valid bool `json:"valid"` // Valid is true if AuthenticationMethod is not NULL
}
func (*NullAuthenticationMethod) Scan ¶
func (ns *NullAuthenticationMethod) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullConnectionType ¶
type NullConnectionType struct {
ConnectionType ConnectionType `json:"connection_type"`
Valid bool `json:"valid"` // Valid is true if ConnectionType is not NULL
}
func (*NullConnectionType) Scan ¶
func (ns *NullConnectionType) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullExecutionStatus ¶
type NullExecutionStatus struct {
ExecutionStatus ExecutionStatus `json:"execution_status"`
Valid bool `json:"valid"` // Valid is true if ExecutionStatus is not NULL
}
func (*NullExecutionStatus) Scan ¶
func (ns *NullExecutionStatus) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullTriggerType ¶
type NullTriggerType struct {
TriggerType TriggerType `json:"trigger_type"`
Valid bool `json:"valid"` // Valid is true if TriggerType is not NULL
}
func (*NullTriggerType) Scan ¶
func (ns *NullTriggerType) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullUserLoginType ¶
type NullUserLoginType struct {
UserLoginType UserLoginType `json:"user_login_type"`
Valid bool `json:"valid"` // Valid is true if UserLoginType is not NULL
}
func (*NullUserLoginType) Scan ¶
func (ns *NullUserLoginType) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullUserRoleType ¶
type NullUserRoleType struct {
UserRoleType UserRoleType `json:"user_role_type"`
Valid bool `json:"valid"` // Valid is true if UserRoleType is not NULL
}
func (*NullUserRoleType) Scan ¶
func (ns *NullUserRoleType) Scan(value interface{}) error
Scan implements the Scanner interface.
type PostgresStore ¶
type PostgresStore struct {
*Queries
// contains filtered or unexported fields
}
func (*PostgresStore) CreateFlowTx ¶
func (p *PostgresStore) CreateFlowTx(ctx context.Context, params CreateFlowTxParams) (Flow, error)
func (*PostgresStore) CreateUserTx ¶
func (p *PostgresStore) CreateUserTx(ctx context.Context, params CreateUserTxParams) (UserView, error)
func (*PostgresStore) ProcessApprovalDecisionTx ¶
func (p *PostgresStore) ProcessApprovalDecisionTx(ctx context.Context, params ApprovalDecisionTxParams) (ApprovalDecisionResult, error)
func (*PostgresStore) RequestApprovalTx ¶
func (p *PostgresStore) RequestApprovalTx(ctx context.Context, execID string, namespaceUUID uuid.UUID, action RequestApprovalParam) (AddApprovalRequestRow, error)
func (*PostgresStore) UpdateFlowTx ¶
func (p *PostgresStore) UpdateFlowTx(ctx context.Context, params UpdateFlowTxParams) (Flow, error)
func (*PostgresStore) UpdateUserTx ¶
func (p *PostgresStore) UpdateUserTx(ctx context.Context, params UpdateUserTxParams) (UserView, error)
type PrefixAccess ¶ added in v0.8.0
type PrefixAccess struct {
ID int32 `db:"id" json:"id"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
UserID sql.NullInt32 `db:"user_id" json:"user_id"`
GroupID sql.NullInt32 `db:"group_id" json:"group_id"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
PrefixID int32 `db:"prefix_id" json:"prefix_id"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
}
type Querier ¶
type Querier interface {
AccessCredential(ctx context.Context, arg AccessCredentialParams) (Credential, error)
AddApprovalRequest(ctx context.Context, arg AddApprovalRequestParams) (AddApprovalRequestRow, error)
AddExecutionLog(ctx context.Context, arg AddExecutionLogParams) (ExecutionLog, error)
AddGroupToUserByUUID(ctx context.Context, arg AddGroupToUserByUUIDParams) error
ApproveRequestByUUID(ctx context.Context, arg ApproveRequestByUUIDParams) (ApproveRequestByUUIDRow, error)
AssignGroupNamespaceRole(ctx context.Context, arg AssignGroupNamespaceRoleParams) (NamespaceMember, error)
AssignGroupPrefixAccess(ctx context.Context, arg AssignGroupPrefixAccessParams) error
AssignUserNamespaceRole(ctx context.Context, arg AssignUserNamespaceRoleParams) (NamespaceMember, error)
AssignUserPrefixAccess(ctx context.Context, arg AssignUserPrefixAccessParams) error
CancelTasksByExecID(ctx context.Context, execID string) error
CreateCredential(ctx context.Context, arg CreateCredentialParams) (Credential, error)
CreateCronSchedule(ctx context.Context, arg CreateCronScheduleParams) (CronSchedule, error)
CreateFlow(ctx context.Context, arg CreateFlowParams) (Flow, error)
CreateFlowPrefix(ctx context.Context, arg CreateFlowPrefixParams) (FlowPrefix, error)
CreateFlowSecret(ctx context.Context, arg CreateFlowSecretParams) (FlowSecret, error)
CreateGroup(ctx context.Context, arg CreateGroupParams) (Group, error)
CreateNamespace(ctx context.Context, name string) (Namespace, error)
CreateNamespaceSecret(ctx context.Context, arg CreateNamespaceSecretParams) (NamespaceSecret, error)
CreateNode(ctx context.Context, arg CreateNodeParams) (Node, error)
// Immediate task operations
CreateSchedulerTask(ctx context.Context, arg CreateSchedulerTaskParams) (SchedulerTask, error)
CreateUser(ctx context.Context, arg CreateUserParams) (User, error)
CreateUserSchedule(ctx context.Context, arg CreateUserScheduleParams) (CronSchedule, error)
DeleteAllFlows(ctx context.Context) error
DeleteCredential(ctx context.Context, arg DeleteCredentialParams) error
DeleteFlow(ctx context.Context, arg DeleteFlowParams) error
DeleteFlowPrefix(ctx context.Context, arg DeleteFlowPrefixParams) error
DeleteFlowSecret(ctx context.Context, arg DeleteFlowSecretParams) error
DeleteGroupByUUID(ctx context.Context, argUuid uuid.UUID) error
DeleteNamespace(ctx context.Context, argUuid uuid.UUID) error
DeleteNamespaceSecret(ctx context.Context, arg DeleteNamespaceSecretParams) error
DeleteNode(ctx context.Context, arg DeleteNodeParams) error
DeleteSystemCronsByFlowID(ctx context.Context, flowID int32) error
DeleteUserByUUID(ctx context.Context, argUuid uuid.UUID) error
// DELETE FROM cron_schedules cs
// USING flows f
// WHERE cs.id = $1
// AND cs.flow_id = f.id
// AND cs.is_user_created = TRUE
// AND f.namespace_id = (SELECT id FROM namespaces WHERE namespaces.uuid = $3)
// AND cs.created_by = (SELECT id FROM users WHERE users.uuid = $2);
DeleteUserScheduleByUUID(ctx context.Context, arg DeleteUserScheduleByUUIDParams) (int64, error)
DisableUserSchedulesForFlow(ctx context.Context, flowID int32) error
ExecutionExistsForFlow(ctx context.Context, arg ExecutionExistsForFlowParams) (bool, error)
GetAllCronSchedules(ctx context.Context) ([]GetAllCronSchedulesRow, error)
GetAllExecutionsPaginated(ctx context.Context, arg GetAllExecutionsPaginatedParams) ([]GetAllExecutionsPaginatedRow, error)
GetAllGroups(ctx context.Context) ([]Group, error)
GetAllGroupsWithUsers(ctx context.Context) ([]GroupView, error)
GetAllNamespaceMembers(ctx context.Context) ([]GetAllNamespaceMembersRow, error)
GetAllNamespaces(ctx context.Context) ([]Namespace, error)
GetAllPrefixAccesses(ctx context.Context) ([]GetAllPrefixAccessesRow, error)
GetAllUsersWithGroups(ctx context.Context) ([]UserView, error)
GetApprovalByUUID(ctx context.Context, arg GetApprovalByUUIDParams) (GetApprovalByUUIDRow, error)
GetApprovalRequestForActionAndExec(ctx context.Context, arg GetApprovalRequestForActionAndExecParams) (Approval, error)
GetApprovalRequestForExec(ctx context.Context, arg GetApprovalRequestForExecParams) (GetApprovalRequestForExecRow, error)
GetApprovalWithInputsByUUID(ctx context.Context, arg GetApprovalWithInputsByUUIDParams) (GetApprovalWithInputsByUUIDRow, error)
GetApprovalsPaginated(ctx context.Context, arg GetApprovalsPaginatedParams) ([]GetApprovalsPaginatedRow, error)
GetCredentialByID(ctx context.Context, arg GetCredentialByIDParams) (GetCredentialByIDRow, error)
GetCredentialByUUID(ctx context.Context, arg GetCredentialByUUIDParams) (GetCredentialByUUIDRow, error)
GetCronSchedulesByFlowID(ctx context.Context, flowID int32) ([]CronSchedule, error)
// Used internally for execution - returns all secrets for a namespace
GetDecryptedNamespaceSecrets(ctx context.Context, argUuid uuid.UUID) ([]GetDecryptedNamespaceSecretsRow, error)
GetDistinctPrefixes(ctx context.Context, argUuid uuid.UUID) ([]GetDistinctPrefixesRow, error)
GetExecutionActionRetries(ctx context.Context, arg GetExecutionActionRetriesParams) (pqtype.NullRawMessage, error)
GetExecutionByExecID(ctx context.Context, arg GetExecutionByExecIDParams) (GetExecutionByExecIDRow, error)
GetExecutionByExecIDWithNamespace(ctx context.Context, arg GetExecutionByExecIDWithNamespaceParams) (GetExecutionByExecIDWithNamespaceRow, error)
GetExecutionByID(ctx context.Context, arg GetExecutionByIDParams) (GetExecutionByIDRow, error)
GetExecutionsByFlow(ctx context.Context, arg GetExecutionsByFlowParams) ([]GetExecutionsByFlowRow, error)
GetExecutionsByFlowPaginated(ctx context.Context, arg GetExecutionsByFlowPaginatedParams) ([]GetExecutionsByFlowPaginatedRow, error)
GetFlowBySlug(ctx context.Context, arg GetFlowBySlugParams) (Flow, error)
GetFlowCountByPrefix(ctx context.Context, prefixID sql.NullInt32) (int64, error)
GetFlowFromExecID(ctx context.Context, arg GetFlowFromExecIDParams) (Flow, error)
GetFlowFromExecIDWithNamespace(ctx context.Context, arg GetFlowFromExecIDWithNamespaceParams) (Flow, error)
GetFlowPrefixByName(ctx context.Context, arg GetFlowPrefixByNameParams) (FlowPrefix, error)
GetFlowPrefixByUUID(ctx context.Context, arg GetFlowPrefixByUUIDParams) (FlowPrefix, error)
GetFlowSecretByUUID(ctx context.Context, arg GetFlowSecretByUUIDParams) (GetFlowSecretByUUIDRow, error)
GetFlowsByNamespace(ctx context.Context, argUuid uuid.UUID) ([]GetFlowsByNamespaceRow, error)
GetFlowsByPrefix(ctx context.Context, arg GetFlowsByPrefixParams) ([]GetFlowsByPrefixRow, error)
GetFlowsByPrefixUUID(ctx context.Context, arg GetFlowsByPrefixUUIDParams) ([]GetFlowsByPrefixUUIDRow, error)
GetGroupByID(ctx context.Context, id int32) (Group, error)
GetGroupByName(ctx context.Context, name string) (Group, error)
GetGroupByUUID(ctx context.Context, argUuid uuid.UUID) (Group, error)
GetGroupByUUIDWithUsers(ctx context.Context, argUuid uuid.UUID) (GroupView, error)
GetGroupMembersByName(ctx context.Context, name string) ([]GetGroupMembersByNameRow, error)
GetInputForExecByUUID(ctx context.Context, arg GetInputForExecByUUIDParams) (json.RawMessage, error)
GetMemberPrefixes(ctx context.Context, arg GetMemberPrefixesParams) ([]GetMemberPrefixesRow, error)
GetNamespaceByName(ctx context.Context, name string) (Namespace, error)
GetNamespaceByUUID(ctx context.Context, argUuid uuid.UUID) (Namespace, error)
GetNamespaceMemberByUUID(ctx context.Context, arg GetNamespaceMemberByUUIDParams) (GetNamespaceMemberByUUIDRow, error)
GetNamespaceMembers(ctx context.Context, argUuid uuid.UUID) ([]GetNamespaceMembersRow, error)
GetNamespaceSecretByUUID(ctx context.Context, arg GetNamespaceSecretByUUIDParams) (GetNamespaceSecretByUUIDRow, error)
GetNodeByName(ctx context.Context, arg GetNodeByNameParams) (GetNodeByNameRow, error)
GetNodeByUUID(ctx context.Context, arg GetNodeByUUIDParams) (GetNodeByUUIDRow, error)
GetNodeStats(ctx context.Context, argUuid uuid.UUID) (GetNodeStatsRow, error)
GetNodesByNames(ctx context.Context, arg GetNodesByNamesParams) ([]GetNodesByNamesRow, error)
GetNodesByTags(ctx context.Context, arg GetNodesByTagsParams) ([]GetNodesByTagsRow, error)
GetPendingTasks(ctx context.Context, limit int32) ([]SchedulerTask, error)
GetPrefixMembers(ctx context.Context, arg GetPrefixMembersParams) ([]GetPrefixMembersRow, error)
GetScheduleByFlowAndCron(ctx context.Context, arg GetScheduleByFlowAndCronParams) (CronSchedule, error)
GetScheduledExecutionsByFlow(ctx context.Context, arg GetScheduledExecutionsByFlowParams) ([]GetScheduledExecutionsByFlowRow, error)
GetScheduledFlows(ctx context.Context) ([]GetScheduledFlowsRow, error)
GetUserAccessiblePrefixes(ctx context.Context, arg GetUserAccessiblePrefixesParams) ([]string, error)
GetUserByID(ctx context.Context, id int32) (User, error)
GetUserByUUID(ctx context.Context, argUuid uuid.UUID) (User, error)
GetUserByUUIDWithGroups(ctx context.Context, argUuid uuid.UUID) (UserView, error)
GetUserByUsername(ctx context.Context, username string) (User, error)
GetUserByUsernameWithGroups(ctx context.Context, username string) (UserView, error)
GetUserGroups(ctx context.Context, argUuid uuid.UUID) ([]Group, error)
GetUserNamespacesWithRoles(ctx context.Context, argUuid uuid.UUID) ([]GetUserNamespacesWithRolesRow, error)
// SELECT
// cs.*,
// f.slug as flow_slug,
// f.name as flow_name,
// u.uuid as created_by_uuid,
// u.name as created_by_name
// FROM cron_schedules cs
// JOIN flows f ON cs.flow_id = f.id
// LEFT JOIN users u ON cs.created_by = u.id
// WHERE cs.id = $1
// AND f.namespace_id = (SELECT id FROM namespaces WHERE namespaces.uuid = $3)
// AND (cs.created_by = (SELECT id FROM users WHERE users.uuid = $2) OR cs.is_user_created = FALSE);
GetUserScheduleByUUID(ctx context.Context, arg GetUserScheduleByUUIDParams) (GetUserScheduleByUUIDRow, error)
GetUsersByRole(ctx context.Context, role UserRoleType) ([]User, error)
IncrementActionRetry(ctx context.Context, arg IncrementActionRetryParams) (IncrementActionRetryRow, error)
ListFlowPrefixes(ctx context.Context, argUuid uuid.UUID) ([]FlowPrefix, error)
ListFlowSecrets(ctx context.Context, arg ListFlowSecretsParams) ([]ListFlowSecretsRow, error)
ListFlows(ctx context.Context, arg ListFlowsParams) ([]ListFlowsRow, error)
ListFlowsPaginated(ctx context.Context, arg ListFlowsPaginatedParams) ([]ListFlowsPaginatedRow, error)
ListFlowsPaginatedFiltered(ctx context.Context, arg ListFlowsPaginatedFilteredParams) ([]ListFlowsPaginatedFilteredRow, error)
ListNamespaceSecrets(ctx context.Context, argUuid uuid.UUID) ([]ListNamespaceSecretsRow, error)
ListNamespaces(ctx context.Context, arg ListNamespacesParams) ([]ListNamespacesRow, error)
ListSchedules(ctx context.Context, arg ListSchedulesParams) ([]ListSchedulesRow, error)
MarkAllFlowsInactiveForNamespace(ctx context.Context, argUuid uuid.UUID) error
MarkFlowActive(ctx context.Context, arg MarkFlowActiveParams) error
RejectRequestByUUID(ctx context.Context, arg RejectRequestByUUIDParams) (RejectRequestByUUIDRow, error)
RemoveAllGroupsForUserByUUID(ctx context.Context, userUuid uuid.UUID) error
RemoveNamespaceMember(ctx context.Context, arg RemoveNamespaceMemberParams) (NamespaceMember, error)
RevokeAllMemberPrefixAccess(ctx context.Context, arg RevokeAllMemberPrefixAccessParams) error
RevokeGroupPrefixAccess(ctx context.Context, arg RevokeGroupPrefixAccessParams) error
RevokeUserPrefixAccess(ctx context.Context, arg RevokeUserPrefixAccessParams) error
SearchCredentials(ctx context.Context, arg SearchCredentialsParams) ([]SearchCredentialsRow, error)
SearchExecutionsPaginated(ctx context.Context, arg SearchExecutionsPaginatedParams) ([]SearchExecutionsPaginatedRow, error)
SearchFlowsPaginated(ctx context.Context, arg SearchFlowsPaginatedParams) ([]SearchFlowsPaginatedRow, error)
SearchFlowsPaginatedFiltered(ctx context.Context, arg SearchFlowsPaginatedFilteredParams) ([]SearchFlowsPaginatedFilteredRow, error)
SearchGroup(ctx context.Context, arg SearchGroupParams) ([]SearchGroupRow, error)
SearchNodes(ctx context.Context, arg SearchNodesParams) ([]SearchNodesRow, error)
SearchUsersWithGroups(ctx context.Context, arg SearchUsersWithGroupsParams) ([]SearchUsersWithGroupsRow, error)
UpdateApprovalStatusByUUID(ctx context.Context, arg UpdateApprovalStatusByUUIDParams) (UpdateApprovalStatusByUUIDRow, error)
UpdateCredential(ctx context.Context, arg UpdateCredentialParams) (Credential, error)
UpdateExecutionActionID(ctx context.Context, arg UpdateExecutionActionIDParams) (ExecutionLog, error)
UpdateExecutionActionRetries(ctx context.Context, arg UpdateExecutionActionRetriesParams) error
UpdateExecutionStartedAt(ctx context.Context, arg UpdateExecutionStartedAtParams) error
UpdateExecutionStatus(ctx context.Context, arg UpdateExecutionStatusParams) (ExecutionLog, error)
UpdateFlow(ctx context.Context, arg UpdateFlowParams) (Flow, error)
UpdateFlowPrefix(ctx context.Context, arg UpdateFlowPrefixParams) (FlowPrefix, error)
UpdateFlowSecret(ctx context.Context, arg UpdateFlowSecretParams) (FlowSecret, error)
UpdateGroupByUUID(ctx context.Context, arg UpdateGroupByUUIDParams) (Group, error)
UpdateNamespace(ctx context.Context, arg UpdateNamespaceParams) (Namespace, error)
UpdateNamespaceMember(ctx context.Context, arg UpdateNamespaceMemberParams) (NamespaceMember, error)
UpdateNamespaceSecret(ctx context.Context, arg UpdateNamespaceSecretParams) (NamespaceSecret, error)
UpdateNode(ctx context.Context, arg UpdateNodeParams) (Node, error)
UpdateTaskStatus(ctx context.Context, arg UpdateTaskStatusParams) error
UpdateUserByUUID(ctx context.Context, arg UpdateUserByUUIDParams) (User, error)
UpdateUserPasswordByUsername(ctx context.Context, arg UpdateUserPasswordByUsernameParams) (User, error)
// UPDATE cron_schedules cs
// SET
// cron = $2,
// timezone = $3,
// inputs = $4,
// is_active = $5,
// updated_at = NOW()
// FROM flows f
// WHERE cs.id = $1
// AND cs.flow_id = f.id
// AND cs.is_user_created = TRUE
// AND f.namespace_id = (SELECT id FROM namespaces WHERE namespaces.uuid = $7)
// AND cs.created_by = (SELECT id FROM users WHERE users.uuid = $6)
// RETURNING cs.*;
UpdateUserScheduleByUUID(ctx context.Context, arg UpdateUserScheduleByUUIDParams) (CronSchedule, error)
}
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AccessCredential ¶
func (q *Queries) AccessCredential(ctx context.Context, arg AccessCredentialParams) (Credential, error)
func (*Queries) AddApprovalRequest ¶
func (q *Queries) AddApprovalRequest(ctx context.Context, arg AddApprovalRequestParams) (AddApprovalRequestRow, error)
func (*Queries) AddExecutionLog ¶
func (q *Queries) AddExecutionLog(ctx context.Context, arg AddExecutionLogParams) (ExecutionLog, error)
func (*Queries) AddGroupToUserByUUID ¶
func (q *Queries) AddGroupToUserByUUID(ctx context.Context, arg AddGroupToUserByUUIDParams) error
func (*Queries) ApproveRequestByUUID ¶
func (q *Queries) ApproveRequestByUUID(ctx context.Context, arg ApproveRequestByUUIDParams) (ApproveRequestByUUIDRow, error)
func (*Queries) AssignGroupNamespaceRole ¶
func (q *Queries) AssignGroupNamespaceRole(ctx context.Context, arg AssignGroupNamespaceRoleParams) (NamespaceMember, error)
func (*Queries) AssignGroupPrefixAccess ¶ added in v0.8.0
func (q *Queries) AssignGroupPrefixAccess(ctx context.Context, arg AssignGroupPrefixAccessParams) error
func (*Queries) AssignUserNamespaceRole ¶
func (q *Queries) AssignUserNamespaceRole(ctx context.Context, arg AssignUserNamespaceRoleParams) (NamespaceMember, error)
func (*Queries) AssignUserPrefixAccess ¶ added in v0.8.0
func (q *Queries) AssignUserPrefixAccess(ctx context.Context, arg AssignUserPrefixAccessParams) error
func (*Queries) CancelTasksByExecID ¶
func (*Queries) CreateCredential ¶
func (q *Queries) CreateCredential(ctx context.Context, arg CreateCredentialParams) (Credential, error)
func (*Queries) CreateCronSchedule ¶
func (q *Queries) CreateCronSchedule(ctx context.Context, arg CreateCronScheduleParams) (CronSchedule, error)
func (*Queries) CreateFlow ¶
func (*Queries) CreateFlowPrefix ¶ added in v0.8.0
func (q *Queries) CreateFlowPrefix(ctx context.Context, arg CreateFlowPrefixParams) (FlowPrefix, error)
func (*Queries) CreateFlowSecret ¶
func (q *Queries) CreateFlowSecret(ctx context.Context, arg CreateFlowSecretParams) (FlowSecret, error)
func (*Queries) CreateGroup ¶
func (*Queries) CreateNamespace ¶
func (*Queries) CreateNamespaceSecret ¶
func (q *Queries) CreateNamespaceSecret(ctx context.Context, arg CreateNamespaceSecretParams) (NamespaceSecret, error)
func (*Queries) CreateNode ¶
func (*Queries) CreateSchedulerTask ¶
func (q *Queries) CreateSchedulerTask(ctx context.Context, arg CreateSchedulerTaskParams) (SchedulerTask, error)
Immediate task operations
func (*Queries) CreateUser ¶
func (*Queries) CreateUserSchedule ¶ added in v0.5.0
func (q *Queries) CreateUserSchedule(ctx context.Context, arg CreateUserScheduleParams) (CronSchedule, error)
func (*Queries) DeleteCredential ¶
func (q *Queries) DeleteCredential(ctx context.Context, arg DeleteCredentialParams) error
func (*Queries) DeleteFlow ¶
func (q *Queries) DeleteFlow(ctx context.Context, arg DeleteFlowParams) error
func (*Queries) DeleteFlowPrefix ¶ added in v0.8.0
func (q *Queries) DeleteFlowPrefix(ctx context.Context, arg DeleteFlowPrefixParams) error
func (*Queries) DeleteFlowSecret ¶
func (q *Queries) DeleteFlowSecret(ctx context.Context, arg DeleteFlowSecretParams) error
func (*Queries) DeleteGroupByUUID ¶
func (*Queries) DeleteNamespace ¶
func (*Queries) DeleteNamespaceSecret ¶
func (q *Queries) DeleteNamespaceSecret(ctx context.Context, arg DeleteNamespaceSecretParams) error
func (*Queries) DeleteNode ¶
func (q *Queries) DeleteNode(ctx context.Context, arg DeleteNodeParams) error
func (*Queries) DeleteSystemCronsByFlowID ¶ added in v0.5.0
func (*Queries) DeleteUserByUUID ¶
func (*Queries) DeleteUserScheduleByUUID ¶ added in v0.5.0
func (q *Queries) DeleteUserScheduleByUUID(ctx context.Context, arg DeleteUserScheduleByUUIDParams) (int64, error)
DELETE FROM cron_schedules cs USING flows f WHERE cs.id = $1
AND cs.flow_id = f.id AND cs.is_user_created = TRUE AND f.namespace_id = (SELECT id FROM namespaces WHERE namespaces.uuid = $3) AND cs.created_by = (SELECT id FROM users WHERE users.uuid = $2);
func (*Queries) DisableUserSchedulesForFlow ¶ added in v0.5.0
func (*Queries) ExecutionExistsForFlow ¶
func (*Queries) GetAllCronSchedules ¶
func (q *Queries) GetAllCronSchedules(ctx context.Context) ([]GetAllCronSchedulesRow, error)
func (*Queries) GetAllExecutionsPaginated ¶
func (q *Queries) GetAllExecutionsPaginated(ctx context.Context, arg GetAllExecutionsPaginatedParams) ([]GetAllExecutionsPaginatedRow, error)
func (*Queries) GetAllGroupsWithUsers ¶
func (*Queries) GetAllNamespaceMembers ¶
func (q *Queries) GetAllNamespaceMembers(ctx context.Context) ([]GetAllNamespaceMembersRow, error)
func (*Queries) GetAllNamespaces ¶
func (*Queries) GetAllPrefixAccesses ¶ added in v0.8.0
func (q *Queries) GetAllPrefixAccesses(ctx context.Context) ([]GetAllPrefixAccessesRow, error)
func (*Queries) GetAllUsersWithGroups ¶
func (*Queries) GetApprovalByUUID ¶
func (q *Queries) GetApprovalByUUID(ctx context.Context, arg GetApprovalByUUIDParams) (GetApprovalByUUIDRow, error)
func (*Queries) GetApprovalRequestForActionAndExec ¶
func (*Queries) GetApprovalRequestForExec ¶
func (q *Queries) GetApprovalRequestForExec(ctx context.Context, arg GetApprovalRequestForExecParams) (GetApprovalRequestForExecRow, error)
func (*Queries) GetApprovalWithInputsByUUID ¶
func (q *Queries) GetApprovalWithInputsByUUID(ctx context.Context, arg GetApprovalWithInputsByUUIDParams) (GetApprovalWithInputsByUUIDRow, error)
func (*Queries) GetApprovalsPaginated ¶
func (q *Queries) GetApprovalsPaginated(ctx context.Context, arg GetApprovalsPaginatedParams) ([]GetApprovalsPaginatedRow, error)
func (*Queries) GetCredentialByID ¶
func (q *Queries) GetCredentialByID(ctx context.Context, arg GetCredentialByIDParams) (GetCredentialByIDRow, error)
func (*Queries) GetCredentialByUUID ¶
func (q *Queries) GetCredentialByUUID(ctx context.Context, arg GetCredentialByUUIDParams) (GetCredentialByUUIDRow, error)
func (*Queries) GetCronSchedulesByFlowID ¶
func (*Queries) GetDecryptedNamespaceSecrets ¶
func (q *Queries) GetDecryptedNamespaceSecrets(ctx context.Context, argUuid uuid.UUID) ([]GetDecryptedNamespaceSecretsRow, error)
Used internally for execution - returns all secrets for a namespace
func (*Queries) GetDistinctPrefixes ¶ added in v0.8.0
func (*Queries) GetExecutionActionRetries ¶ added in v0.3.0
func (q *Queries) GetExecutionActionRetries(ctx context.Context, arg GetExecutionActionRetriesParams) (pqtype.NullRawMessage, error)
func (*Queries) GetExecutionByExecID ¶
func (q *Queries) GetExecutionByExecID(ctx context.Context, arg GetExecutionByExecIDParams) (GetExecutionByExecIDRow, error)
func (*Queries) GetExecutionByExecIDWithNamespace ¶
func (q *Queries) GetExecutionByExecIDWithNamespace(ctx context.Context, arg GetExecutionByExecIDWithNamespaceParams) (GetExecutionByExecIDWithNamespaceRow, error)
func (*Queries) GetExecutionByID ¶
func (q *Queries) GetExecutionByID(ctx context.Context, arg GetExecutionByIDParams) (GetExecutionByIDRow, error)
func (*Queries) GetExecutionsByFlow ¶
func (q *Queries) GetExecutionsByFlow(ctx context.Context, arg GetExecutionsByFlowParams) ([]GetExecutionsByFlowRow, error)
func (*Queries) GetExecutionsByFlowPaginated ¶
func (q *Queries) GetExecutionsByFlowPaginated(ctx context.Context, arg GetExecutionsByFlowPaginatedParams) ([]GetExecutionsByFlowPaginatedRow, error)
func (*Queries) GetFlowBySlug ¶
func (*Queries) GetFlowCountByPrefix ¶ added in v0.8.0
func (*Queries) GetFlowFromExecID ¶
func (*Queries) GetFlowFromExecIDWithNamespace ¶
func (*Queries) GetFlowPrefixByName ¶ added in v0.8.0
func (q *Queries) GetFlowPrefixByName(ctx context.Context, arg GetFlowPrefixByNameParams) (FlowPrefix, error)
func (*Queries) GetFlowPrefixByUUID ¶ added in v0.8.0
func (q *Queries) GetFlowPrefixByUUID(ctx context.Context, arg GetFlowPrefixByUUIDParams) (FlowPrefix, error)
func (*Queries) GetFlowSecretByUUID ¶
func (q *Queries) GetFlowSecretByUUID(ctx context.Context, arg GetFlowSecretByUUIDParams) (GetFlowSecretByUUIDRow, error)
func (*Queries) GetFlowsByNamespace ¶
func (*Queries) GetFlowsByPrefix ¶ added in v0.8.0
func (q *Queries) GetFlowsByPrefix(ctx context.Context, arg GetFlowsByPrefixParams) ([]GetFlowsByPrefixRow, error)
func (*Queries) GetFlowsByPrefixUUID ¶ added in v0.8.0
func (q *Queries) GetFlowsByPrefixUUID(ctx context.Context, arg GetFlowsByPrefixUUIDParams) ([]GetFlowsByPrefixUUIDRow, error)
func (*Queries) GetGroupByID ¶
func (*Queries) GetGroupByName ¶
func (*Queries) GetGroupByUUID ¶
func (*Queries) GetGroupByUUIDWithUsers ¶
func (*Queries) GetGroupMembersByName ¶ added in v0.2.0
func (*Queries) GetInputForExecByUUID ¶
func (q *Queries) GetInputForExecByUUID(ctx context.Context, arg GetInputForExecByUUIDParams) (json.RawMessage, error)
func (*Queries) GetMemberPrefixes ¶ added in v0.8.0
func (q *Queries) GetMemberPrefixes(ctx context.Context, arg GetMemberPrefixesParams) ([]GetMemberPrefixesRow, error)
func (*Queries) GetNamespaceByName ¶
func (*Queries) GetNamespaceByUUID ¶
func (*Queries) GetNamespaceMemberByUUID ¶ added in v0.8.0
func (q *Queries) GetNamespaceMemberByUUID(ctx context.Context, arg GetNamespaceMemberByUUIDParams) (GetNamespaceMemberByUUIDRow, error)
func (*Queries) GetNamespaceMembers ¶
func (*Queries) GetNamespaceSecretByUUID ¶
func (q *Queries) GetNamespaceSecretByUUID(ctx context.Context, arg GetNamespaceSecretByUUIDParams) (GetNamespaceSecretByUUIDRow, error)
func (*Queries) GetNodeByName ¶
func (q *Queries) GetNodeByName(ctx context.Context, arg GetNodeByNameParams) (GetNodeByNameRow, error)
func (*Queries) GetNodeByUUID ¶
func (q *Queries) GetNodeByUUID(ctx context.Context, arg GetNodeByUUIDParams) (GetNodeByUUIDRow, error)
func (*Queries) GetNodeStats ¶
func (*Queries) GetNodesByNames ¶
func (q *Queries) GetNodesByNames(ctx context.Context, arg GetNodesByNamesParams) ([]GetNodesByNamesRow, error)
func (*Queries) GetNodesByTags ¶ added in v0.5.0
func (q *Queries) GetNodesByTags(ctx context.Context, arg GetNodesByTagsParams) ([]GetNodesByTagsRow, error)
func (*Queries) GetPendingTasks ¶
func (*Queries) GetPrefixMembers ¶ added in v0.8.0
func (q *Queries) GetPrefixMembers(ctx context.Context, arg GetPrefixMembersParams) ([]GetPrefixMembersRow, error)
func (*Queries) GetScheduleByFlowAndCron ¶ added in v0.5.0
func (q *Queries) GetScheduleByFlowAndCron(ctx context.Context, arg GetScheduleByFlowAndCronParams) (CronSchedule, error)
func (*Queries) GetScheduledExecutionsByFlow ¶ added in v0.4.0
func (q *Queries) GetScheduledExecutionsByFlow(ctx context.Context, arg GetScheduledExecutionsByFlowParams) ([]GetScheduledExecutionsByFlowRow, error)
func (*Queries) GetScheduledFlows ¶
func (q *Queries) GetScheduledFlows(ctx context.Context) ([]GetScheduledFlowsRow, error)
func (*Queries) GetUserAccessiblePrefixes ¶ added in v0.8.0
func (*Queries) GetUserByID ¶
func (*Queries) GetUserByUUID ¶
func (*Queries) GetUserByUUIDWithGroups ¶
func (*Queries) GetUserByUsername ¶
func (*Queries) GetUserByUsernameWithGroups ¶
func (*Queries) GetUserGroups ¶
func (*Queries) GetUserNamespacesWithRoles ¶
func (*Queries) GetUserScheduleByUUID ¶ added in v0.5.0
func (q *Queries) GetUserScheduleByUUID(ctx context.Context, arg GetUserScheduleByUUIDParams) (GetUserScheduleByUUIDRow, error)
SELECT
cs.*, f.slug as flow_slug, f.name as flow_name, u.uuid as created_by_uuid, u.name as created_by_name
FROM cron_schedules cs JOIN flows f ON cs.flow_id = f.id LEFT JOIN users u ON cs.created_by = u.id WHERE cs.id = $1
AND f.namespace_id = (SELECT id FROM namespaces WHERE namespaces.uuid = $3) AND (cs.created_by = (SELECT id FROM users WHERE users.uuid = $2) OR cs.is_user_created = FALSE);
func (*Queries) GetUsersByRole ¶
func (*Queries) IncrementActionRetry ¶ added in v0.3.0
func (q *Queries) IncrementActionRetry(ctx context.Context, arg IncrementActionRetryParams) (IncrementActionRetryRow, error)
func (*Queries) ListFlowPrefixes ¶ added in v0.8.0
func (*Queries) ListFlowSecrets ¶
func (q *Queries) ListFlowSecrets(ctx context.Context, arg ListFlowSecretsParams) ([]ListFlowSecretsRow, error)
func (*Queries) ListFlows ¶
func (q *Queries) ListFlows(ctx context.Context, arg ListFlowsParams) ([]ListFlowsRow, error)
func (*Queries) ListFlowsPaginated ¶
func (q *Queries) ListFlowsPaginated(ctx context.Context, arg ListFlowsPaginatedParams) ([]ListFlowsPaginatedRow, error)
func (*Queries) ListFlowsPaginatedFiltered ¶ added in v0.8.0
func (q *Queries) ListFlowsPaginatedFiltered(ctx context.Context, arg ListFlowsPaginatedFilteredParams) ([]ListFlowsPaginatedFilteredRow, error)
func (*Queries) ListNamespaceSecrets ¶
func (*Queries) ListNamespaces ¶
func (q *Queries) ListNamespaces(ctx context.Context, arg ListNamespacesParams) ([]ListNamespacesRow, error)
func (*Queries) ListSchedules ¶ added in v0.5.0
func (q *Queries) ListSchedules(ctx context.Context, arg ListSchedulesParams) ([]ListSchedulesRow, error)
func (*Queries) MarkAllFlowsInactiveForNamespace ¶
func (*Queries) MarkFlowActive ¶
func (q *Queries) MarkFlowActive(ctx context.Context, arg MarkFlowActiveParams) error
func (*Queries) RejectRequestByUUID ¶
func (q *Queries) RejectRequestByUUID(ctx context.Context, arg RejectRequestByUUIDParams) (RejectRequestByUUIDRow, error)
func (*Queries) RemoveAllGroupsForUserByUUID ¶
func (*Queries) RemoveNamespaceMember ¶
func (q *Queries) RemoveNamespaceMember(ctx context.Context, arg RemoveNamespaceMemberParams) (NamespaceMember, error)
func (*Queries) RevokeAllMemberPrefixAccess ¶ added in v0.8.0
func (q *Queries) RevokeAllMemberPrefixAccess(ctx context.Context, arg RevokeAllMemberPrefixAccessParams) error
func (*Queries) RevokeGroupPrefixAccess ¶ added in v0.8.0
func (q *Queries) RevokeGroupPrefixAccess(ctx context.Context, arg RevokeGroupPrefixAccessParams) error
func (*Queries) RevokeUserPrefixAccess ¶ added in v0.8.0
func (q *Queries) RevokeUserPrefixAccess(ctx context.Context, arg RevokeUserPrefixAccessParams) error
func (*Queries) SearchCredentials ¶
func (q *Queries) SearchCredentials(ctx context.Context, arg SearchCredentialsParams) ([]SearchCredentialsRow, error)
func (*Queries) SearchExecutionsPaginated ¶
func (q *Queries) SearchExecutionsPaginated(ctx context.Context, arg SearchExecutionsPaginatedParams) ([]SearchExecutionsPaginatedRow, error)
func (*Queries) SearchFlowsPaginated ¶
func (q *Queries) SearchFlowsPaginated(ctx context.Context, arg SearchFlowsPaginatedParams) ([]SearchFlowsPaginatedRow, error)
func (*Queries) SearchFlowsPaginatedFiltered ¶ added in v0.8.0
func (q *Queries) SearchFlowsPaginatedFiltered(ctx context.Context, arg SearchFlowsPaginatedFilteredParams) ([]SearchFlowsPaginatedFilteredRow, error)
func (*Queries) SearchGroup ¶
func (q *Queries) SearchGroup(ctx context.Context, arg SearchGroupParams) ([]SearchGroupRow, error)
func (*Queries) SearchNodes ¶
func (q *Queries) SearchNodes(ctx context.Context, arg SearchNodesParams) ([]SearchNodesRow, error)
func (*Queries) SearchUsersWithGroups ¶
func (q *Queries) SearchUsersWithGroups(ctx context.Context, arg SearchUsersWithGroupsParams) ([]SearchUsersWithGroupsRow, error)
func (*Queries) UpdateApprovalStatusByUUID ¶
func (q *Queries) UpdateApprovalStatusByUUID(ctx context.Context, arg UpdateApprovalStatusByUUIDParams) (UpdateApprovalStatusByUUIDRow, error)
func (*Queries) UpdateCredential ¶
func (q *Queries) UpdateCredential(ctx context.Context, arg UpdateCredentialParams) (Credential, error)
func (*Queries) UpdateExecutionActionID ¶
func (q *Queries) UpdateExecutionActionID(ctx context.Context, arg UpdateExecutionActionIDParams) (ExecutionLog, error)
func (*Queries) UpdateExecutionActionRetries ¶ added in v0.3.0
func (q *Queries) UpdateExecutionActionRetries(ctx context.Context, arg UpdateExecutionActionRetriesParams) error
func (*Queries) UpdateExecutionStartedAt ¶ added in v0.4.0
func (q *Queries) UpdateExecutionStartedAt(ctx context.Context, arg UpdateExecutionStartedAtParams) error
func (*Queries) UpdateExecutionStatus ¶
func (q *Queries) UpdateExecutionStatus(ctx context.Context, arg UpdateExecutionStatusParams) (ExecutionLog, error)
func (*Queries) UpdateFlow ¶
func (*Queries) UpdateFlowPrefix ¶ added in v0.8.0
func (q *Queries) UpdateFlowPrefix(ctx context.Context, arg UpdateFlowPrefixParams) (FlowPrefix, error)
func (*Queries) UpdateFlowSecret ¶
func (q *Queries) UpdateFlowSecret(ctx context.Context, arg UpdateFlowSecretParams) (FlowSecret, error)
func (*Queries) UpdateGroupByUUID ¶
func (*Queries) UpdateNamespace ¶
func (*Queries) UpdateNamespaceMember ¶
func (q *Queries) UpdateNamespaceMember(ctx context.Context, arg UpdateNamespaceMemberParams) (NamespaceMember, error)
func (*Queries) UpdateNamespaceSecret ¶
func (q *Queries) UpdateNamespaceSecret(ctx context.Context, arg UpdateNamespaceSecretParams) (NamespaceSecret, error)
func (*Queries) UpdateNode ¶
func (*Queries) UpdateTaskStatus ¶
func (q *Queries) UpdateTaskStatus(ctx context.Context, arg UpdateTaskStatusParams) error
func (*Queries) UpdateUserByUUID ¶
func (*Queries) UpdateUserPasswordByUsername ¶
func (*Queries) UpdateUserScheduleByUUID ¶ added in v0.5.0
func (q *Queries) UpdateUserScheduleByUUID(ctx context.Context, arg UpdateUserScheduleByUUIDParams) (CronSchedule, error)
UPDATE cron_schedules cs SET
cron = $2, timezone = $3, inputs = $4, is_active = $5, updated_at = NOW()
FROM flows f WHERE cs.id = $1
AND cs.flow_id = f.id AND cs.is_user_created = TRUE AND f.namespace_id = (SELECT id FROM namespaces WHERE namespaces.uuid = $7) AND cs.created_by = (SELECT id FROM users WHERE users.uuid = $6)
RETURNING cs.*;
type RejectRequestByUUIDRow ¶
type RejectRequestByUUIDRow struct {
ID int32 `db:"id" json:"id"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
ExecLogID int32 `db:"exec_log_id" json:"exec_log_id"`
ActionID string `db:"action_id" json:"action_id"`
Status ApprovalStatus `db:"status" json:"status"`
DecidedBy sql.NullInt32 `db:"decided_by" json:"decided_by"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
ExecID string `db:"exec_id" json:"exec_id"`
RequestedBy string `db:"requested_by" json:"requested_by"`
}
type RequestApprovalParam ¶
type RequestApprovalParam struct {
ID string
}
type RevokeAllMemberPrefixAccessParams ¶ added in v0.8.0
type RevokeGroupPrefixAccessParams ¶ added in v0.8.0
type RevokeUserPrefixAccessParams ¶ added in v0.8.0
type SchedulerTask ¶
type SearchCredentialsParams ¶
type SearchCredentialsRow ¶
type SearchCredentialsRow struct {
ID int32 `db:"id" json:"id"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
Name string `db:"name" json:"name"`
KeyType string `db:"key_type" json:"key_type"`
KeyData string `db:"key_data" json:"key_data"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
LastAccessed sql.NullTime `db:"last_accessed" json:"last_accessed"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
NamespaceUuid uuid.UUID `db:"namespace_uuid" json:"namespace_uuid"`
PageCount int64 `db:"page_count" json:"page_count"`
TotalCount int64 `db:"total_count" json:"total_count"`
}
type SearchExecutionsPaginatedRow ¶
type SearchExecutionsPaginatedRow struct {
ID int32 `db:"id" json:"id"`
ExecID string `db:"exec_id" json:"exec_id"`
FlowID int32 `db:"flow_id" json:"flow_id"`
Version int32 `db:"version" json:"version"`
Input json.RawMessage `db:"input" json:"input"`
Error sql.NullString `db:"error" json:"error"`
CurrentActionID sql.NullString `db:"current_action_id" json:"current_action_id"`
Status ExecutionStatus `db:"status" json:"status"`
TriggerType TriggerType `db:"trigger_type" json:"trigger_type"`
TriggeredBy int32 `db:"triggered_by" json:"triggered_by"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
CompletedAt sql.NullTime `db:"completed_at" json:"completed_at"`
ActionRetries pqtype.NullRawMessage `db:"action_retries" json:"action_retries"`
ScheduledAt sql.NullTime `db:"scheduled_at" json:"scheduled_at"`
StartedAt sql.NullTime `db:"started_at" json:"started_at"`
Name string `db:"name" json:"name"`
Username string `db:"username" json:"username"`
TriggeredByUuid uuid.UUID `db:"triggered_by_uuid" json:"triggered_by_uuid"`
TriggeredByName string `db:"triggered_by_name" json:"triggered_by_name"`
FlowName string `db:"flow_name" json:"flow_name"`
FlowSlug string `db:"flow_slug" json:"flow_slug"`
PageCount int64 `db:"page_count" json:"page_count"`
TotalCount int64 `db:"total_count" json:"total_count"`
}
type SearchFlowsPaginatedFilteredParams ¶ added in v0.8.0
type SearchFlowsPaginatedFilteredRow ¶ added in v0.8.0
type SearchFlowsPaginatedFilteredRow struct {
ID int32 `db:"id" json:"id"`
Slug string `db:"slug" json:"slug"`
Name string `db:"name" json:"name"`
Checksum string `db:"checksum" json:"checksum"`
Description sql.NullString `db:"description" json:"description"`
FilePath string `db:"file_path" json:"file_path"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
IsActive bool `db:"is_active" json:"is_active"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
PrefixID sql.NullInt32 `db:"prefix_id" json:"prefix_id"`
NamespaceUuid uuid.UUID `db:"namespace_uuid" json:"namespace_uuid"`
PrefixName sql.NullString `db:"prefix_name" json:"prefix_name"`
PageCount int64 `db:"page_count" json:"page_count"`
TotalCount int64 `db:"total_count" json:"total_count"`
}
type SearchFlowsPaginatedRow ¶
type SearchFlowsPaginatedRow struct {
ID int32 `db:"id" json:"id"`
Slug string `db:"slug" json:"slug"`
Name string `db:"name" json:"name"`
Checksum string `db:"checksum" json:"checksum"`
Description sql.NullString `db:"description" json:"description"`
FilePath string `db:"file_path" json:"file_path"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
IsActive bool `db:"is_active" json:"is_active"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
PrefixID sql.NullInt32 `db:"prefix_id" json:"prefix_id"`
NamespaceUuid uuid.UUID `db:"namespace_uuid" json:"namespace_uuid"`
PrefixName sql.NullString `db:"prefix_name" json:"prefix_name"`
PageCount int64 `db:"page_count" json:"page_count"`
TotalCount int64 `db:"total_count" json:"total_count"`
}
type SearchGroupParams ¶
type SearchGroupRow ¶
type SearchGroupRow struct {
ID int32 `db:"id" json:"id"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
Name string `db:"name" json:"name"`
Description sql.NullString `db:"description" json:"description"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
Users interface{} `db:"users" json:"users"`
PageCount int64 `db:"page_count" json:"page_count"`
TotalCount int64 `db:"total_count" json:"total_count"`
}
type SearchNodesParams ¶
type SearchNodesRow ¶
type SearchNodesRow struct {
ID int32 `db:"id" json:"id"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
Name string `db:"name" json:"name"`
Hostname string `db:"hostname" json:"hostname"`
Port int32 `db:"port" json:"port"`
Username string `db:"username" json:"username"`
OsFamily string `db:"os_family" json:"os_family"`
Tags []string `db:"tags" json:"tags"`
AuthMethod AuthenticationMethod `db:"auth_method" json:"auth_method"`
ConnectionType ConnectionType `db:"connection_type" json:"connection_type"`
CredentialID sql.NullInt32 `db:"credential_id" json:"credential_id"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
NamespaceUuid uuid.UUID `db:"namespace_uuid" json:"namespace_uuid"`
PageCount int64 `db:"page_count" json:"page_count"`
TotalCount int64 `db:"total_count" json:"total_count"`
}
type SearchUsersWithGroupsRow ¶
type SearchUsersWithGroupsRow struct {
ID int32 `db:"id" json:"id"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
Name string `db:"name" json:"name"`
Username string `db:"username" json:"username"`
Password sql.NullString `db:"password" json:"password"`
LoginType UserLoginType `db:"login_type" json:"login_type"`
Role UserRoleType `db:"role" json:"role"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
Groups interface{} `db:"groups" json:"groups"`
PageCount int64 `db:"page_count" json:"page_count"`
TotalCount int64 `db:"total_count" json:"total_count"`
}
type Session ¶
type Session struct {
ID string `db:"id" json:"id"`
Data json.RawMessage `db:"data" json:"data"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
}
type Store ¶
type Store interface {
Querier
RequestApprovalTx(ctx context.Context, execID string, namespaceUUID uuid.UUID, action RequestApprovalParam) (AddApprovalRequestRow, error)
CreateUserTx(ctx context.Context, params CreateUserTxParams) (UserView, error)
UpdateUserTx(ctx context.Context, params UpdateUserTxParams) (UserView, error)
ProcessApprovalDecisionTx(ctx context.Context, params ApprovalDecisionTxParams) (ApprovalDecisionResult, error)
CreateFlowTx(ctx context.Context, params CreateFlowTxParams) (Flow, error)
UpdateFlowTx(ctx context.Context, params UpdateFlowTxParams) (Flow, error)
}
func NewPostgresStore ¶
type TriggerType ¶
type TriggerType string
const ( TriggerTypeManual TriggerType = "manual" TriggerTypeScheduled TriggerType = "scheduled" )
func (*TriggerType) Scan ¶
func (e *TriggerType) Scan(src interface{}) error
type UpdateApprovalStatusByUUIDParams ¶
type UpdateApprovalStatusByUUIDParams struct {
Status ApprovalStatus `db:"status" json:"status"`
DecidedBy sql.NullInt32 `db:"decided_by" json:"decided_by"`
}
type UpdateApprovalStatusByUUIDRow ¶
type UpdateApprovalStatusByUUIDRow struct {
ID int32 `db:"id" json:"id"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
ExecLogID int32 `db:"exec_log_id" json:"exec_log_id"`
ActionID string `db:"action_id" json:"action_id"`
Status ApprovalStatus `db:"status" json:"status"`
DecidedBy sql.NullInt32 `db:"decided_by" json:"decided_by"`
NamespaceID int32 `db:"namespace_id" json:"namespace_id"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
RequestedBy string `db:"requested_by" json:"requested_by"`
}
type UpdateCredentialParams ¶
type UpdateExecutionActionIDParams ¶
type UpdateExecutionActionIDParams struct {
CurrentActionID sql.NullString `db:"current_action_id" json:"current_action_id"`
ExecID string `db:"exec_id" json:"exec_id"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
}
type UpdateExecutionActionRetriesParams ¶ added in v0.3.0
type UpdateExecutionActionRetriesParams struct {
ExecID string `db:"exec_id" json:"exec_id"`
ActionRetries pqtype.NullRawMessage `db:"action_retries" json:"action_retries"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
}
type UpdateExecutionStartedAtParams ¶ added in v0.4.0
type UpdateExecutionStatusParams ¶
type UpdateExecutionStatusParams struct {
Status ExecutionStatus `db:"status" json:"status"`
Error sql.NullString `db:"error" json:"error"`
ExecID string `db:"exec_id" json:"exec_id"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
}
type UpdateFlowParams ¶
type UpdateFlowParams struct {
Name string `db:"name" json:"name"`
Description sql.NullString `db:"description" json:"description"`
Checksum string `db:"checksum" json:"checksum"`
FilePath string `db:"file_path" json:"file_path"`
PrefixID sql.NullInt32 `db:"prefix_id" json:"prefix_id"`
Slug string `db:"slug" json:"slug"`
Name_2 string `db:"name_2" json:"name_2"`
}
type UpdateFlowPrefixParams ¶ added in v0.8.0
type UpdateFlowSecretParams ¶
type UpdateFlowTxParams ¶
type UpdateGroupByUUIDParams ¶
type UpdateGroupByUUIDParams struct {
Name string `db:"name" json:"name"`
Description sql.NullString `db:"description" json:"description"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
}
type UpdateNamespaceParams ¶
type UpdateNodeParams ¶
type UpdateNodeParams struct {
Uuid uuid.UUID `db:"uuid" json:"uuid"`
Name string `db:"name" json:"name"`
Hostname string `db:"hostname" json:"hostname"`
Port int32 `db:"port" json:"port"`
Username string `db:"username" json:"username"`
OsFamily string `db:"os_family" json:"os_family"`
Tags []string `db:"tags" json:"tags"`
AuthMethod AuthenticationMethod `db:"auth_method" json:"auth_method"`
ConnectionType ConnectionType `db:"connection_type" json:"connection_type"`
CredentialID sql.NullInt32 `db:"credential_id" json:"credential_id"`
Uuid_2 uuid.UUID `db:"uuid_2" json:"uuid_2"`
}
type UpdateTaskStatusParams ¶
type UpdateUserByUUIDParams ¶
type UpdateUserPasswordByUsernameParams ¶
type UpdateUserPasswordByUsernameParams struct {
Username string `db:"username" json:"username"`
Password sql.NullString `db:"password" json:"password"`
}
type UpdateUserScheduleByUUIDParams ¶ added in v0.5.0
type UpdateUserScheduleByUUIDParams struct {
Uuid uuid.UUID `db:"uuid" json:"uuid"`
Cron string `db:"cron" json:"cron"`
Timezone string `db:"timezone" json:"timezone"`
Inputs pqtype.NullRawMessage `db:"inputs" json:"inputs"`
IsActive bool `db:"is_active" json:"is_active"`
Uuid_2 uuid.UUID `db:"uuid_2" json:"uuid_2"`
Uuid_3 uuid.UUID `db:"uuid_3" json:"uuid_3"`
}
type UpdateUserTxParams ¶
type User ¶
type User struct {
ID int32 `db:"id" json:"id"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
Name string `db:"name" json:"name"`
Username string `db:"username" json:"username"`
Password sql.NullString `db:"password" json:"password"`
LoginType UserLoginType `db:"login_type" json:"login_type"`
Role UserRoleType `db:"role" json:"role"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
}
type UserLoginType ¶
type UserLoginType string
const ( UserLoginTypeOidc UserLoginType = "oidc" UserLoginTypeStandard UserLoginType = "standard" UserLoginTypeToken UserLoginType = "token" )
func (*UserLoginType) Scan ¶
func (e *UserLoginType) Scan(src interface{}) error
type UserRoleType ¶
type UserRoleType string
const ( UserRoleTypeSuperuser UserRoleType = "superuser" UserRoleTypeUser UserRoleType = "user" )
func (*UserRoleType) Scan ¶
func (e *UserRoleType) Scan(src interface{}) error
type UserView ¶
type UserView struct {
ID int32 `db:"id" json:"id"`
Uuid uuid.UUID `db:"uuid" json:"uuid"`
Name string `db:"name" json:"name"`
Username string `db:"username" json:"username"`
Password sql.NullString `db:"password" json:"password"`
LoginType UserLoginType `db:"login_type" json:"login_type"`
Role UserRoleType `db:"role" json:"role"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
Groups interface{} `db:"groups" json:"groups"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.