mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-17 11:59:30 +00:00
Some checks are pending
/ release (push) Waiting to run
testing / backend-checks (push) Waiting to run
testing / frontend-checks (push) Waiting to run
testing / test-unit (push) Blocked by required conditions
testing / test-e2e (push) Blocked by required conditions
testing / test-remote-cacher (redis) (push) Blocked by required conditions
testing / test-remote-cacher (valkey) (push) Blocked by required conditions
testing / test-remote-cacher (garnet) (push) Blocked by required conditions
testing / test-remote-cacher (redict) (push) Blocked by required conditions
testing / test-mysql (push) Blocked by required conditions
testing / test-pgsql (push) Blocked by required conditions
testing / test-sqlite (push) Blocked by required conditions
testing / security-check (push) Blocked by required conditions
This PR is part of https://codeberg.org/forgejo/forgejo/pulls/4767 filed by @algernon To keep changes isolated this might be reviewed & merge after https://codeberg.org/forgejo/forgejo/pulls/7714 Refactor existing code to have one AP struct per file. Enhance AP structs needed by related PR ## Checklist The [contributor guide](https://forgejo.org/docs/next/contributor/) contains information that will be helpful to first time contributors. There also are a few [conditions for merging Pull Requests in Forgejo repositories](https://codeberg.org/forgejo/governance/src/branch/main/PullRequestsAgreement.md). You are also welcome to join the [Forgejo development chatroom](https://matrix.to/#/#forgejo-development:matrix.org). ### Tests - I added test coverage for Go changes... - [x] in their respective `*_test.go` for unit tests. ### Release notes - [x] I do not want this change to show in the release notes. - [ ] I want the title to show in the release notes with a link to this pull request. - [ ] I want the content of the `release-notes/<pull request number>.md` to be be used for the release notes instead of the title. Co-authored-by: zam <mirco.zachmann@meissa.de> Co-authored-by: Mirco Zachmann <nostar@noreply.codeberg.org> Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7728 Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org> Co-authored-by: Michael Jerger <michael.jerger@meissa-gmbh.de> Co-committed-by: Michael Jerger <michael.jerger@meissa-gmbh.de>
247 lines
4.2 KiB
Text
247 lines
4.2 KiB
Text
forgejo.org/cmd
|
|
NoMainListener
|
|
|
|
forgejo.org/cmd/forgejo
|
|
ContextSetNoInit
|
|
ContextSetNoExit
|
|
ContextSetStderr
|
|
ContextGetStderr
|
|
ContextSetStdout
|
|
ContextSetStdin
|
|
|
|
forgejo.org/models
|
|
IsErrSHANotFound
|
|
IsErrMergeDivergingFastForwardOnly
|
|
|
|
forgejo.org/models/auth
|
|
WebAuthnCredentials
|
|
|
|
forgejo.org/models/db
|
|
TruncateBeans
|
|
InTransaction
|
|
DumpTables
|
|
|
|
forgejo.org/models/dbfs
|
|
file.renameTo
|
|
Create
|
|
Rename
|
|
|
|
forgejo.org/models/forgefed
|
|
GetFederationHost
|
|
|
|
forgejo.org/models/forgejo/semver
|
|
GetVersion
|
|
SetVersionString
|
|
SetVersion
|
|
|
|
forgejo.org/models/git
|
|
RemoveDeletedBranchByID
|
|
|
|
forgejo.org/models/issues
|
|
IsErrUnknownDependencyType
|
|
IsErrIssueWasClosed
|
|
|
|
forgejo.org/models/organization
|
|
SearchMembersOptions.ToConds
|
|
|
|
forgejo.org/models/perm/access
|
|
GetRepoWriters
|
|
|
|
forgejo.org/models/repo
|
|
WatchRepoMode
|
|
|
|
forgejo.org/models/user
|
|
IsErrExternalLoginUserAlreadyExist
|
|
IsErrExternalLoginUserNotExist
|
|
NewFederatedUser
|
|
IsErrUserSettingIsNotExist
|
|
GetUserAllSettings
|
|
DeleteUserSetting
|
|
|
|
forgejo.org/modules/activitypub
|
|
NewContext
|
|
Context.APClientFactory
|
|
|
|
forgejo.org/modules/assetfs
|
|
Bindata
|
|
|
|
forgejo.org/modules/auth/password/hash
|
|
DummyHasher.HashWithSaltBytes
|
|
NewDummyHasher
|
|
|
|
forgejo.org/modules/auth/password/pwn
|
|
WithHTTP
|
|
|
|
forgejo.org/modules/base
|
|
SetupGiteaRoot
|
|
|
|
forgejo.org/modules/cache
|
|
GetInt
|
|
WithNoCacheContext
|
|
RemoveContextData
|
|
|
|
forgejo.org/modules/emoji
|
|
ReplaceCodes
|
|
|
|
forgejo.org/modules/eventsource
|
|
Event.String
|
|
|
|
forgejo.org/modules/forgefed
|
|
NewForgeFollowFromAp
|
|
NewForgeFollow
|
|
ForgeFollow.MarshalJSON
|
|
ForgeFollow.UnmarshalJSON
|
|
ForgeFollow.Validate
|
|
NewForgeUndoLike
|
|
ForgeUndoLike.UnmarshalJSON
|
|
ForgeUndoLike.Validate
|
|
NewForgeUserActivityFromAp
|
|
NewForgeUserActivity
|
|
ForgeUserActivity.Validate
|
|
NewPersonIDFromModel
|
|
GetItemByType
|
|
JSONUnmarshalerFn
|
|
NotEmpty
|
|
NewForgeUserActivityNoteFromAp
|
|
newNote
|
|
ForgeUserActivityNote.Validate
|
|
ToRepository
|
|
OnRepository
|
|
|
|
forgejo.org/modules/git
|
|
AllowLFSFiltersArgs
|
|
AddChanges
|
|
AddChangesWithArgs
|
|
CommitChanges
|
|
CommitChangesWithArgs
|
|
SetUpdateHook
|
|
openRepositoryWithDefaultContext
|
|
ToEntryMode
|
|
|
|
forgejo.org/modules/gitrepo
|
|
GetBranchCommitID
|
|
GetWikiDefaultBranch
|
|
|
|
forgejo.org/modules/graceful
|
|
Manager.TerminateContext
|
|
Manager.Err
|
|
Manager.Value
|
|
Manager.Deadline
|
|
|
|
forgejo.org/modules/hcaptcha
|
|
WithHTTP
|
|
|
|
forgejo.org/modules/hostmatcher
|
|
HostMatchList.AppendPattern
|
|
|
|
forgejo.org/modules/json
|
|
StdJSON.Marshal
|
|
StdJSON.Unmarshal
|
|
StdJSON.NewEncoder
|
|
StdJSON.NewDecoder
|
|
StdJSON.Indent
|
|
|
|
forgejo.org/modules/log
|
|
NewEventWriterBuffer
|
|
|
|
forgejo.org/modules/markup
|
|
GetRendererByType
|
|
RenderString
|
|
IsMarkupFile
|
|
|
|
forgejo.org/modules/markup/console
|
|
Render
|
|
RenderString
|
|
|
|
forgejo.org/modules/markup/markdown
|
|
RenderRawString
|
|
|
|
forgejo.org/modules/markup/mdstripper
|
|
stripRenderer.AddOptions
|
|
StripMarkdown
|
|
|
|
forgejo.org/modules/markup/orgmode
|
|
RenderString
|
|
|
|
forgejo.org/modules/process
|
|
Manager.ExecTimeout
|
|
|
|
forgejo.org/modules/queue
|
|
newBaseChannelSimple
|
|
newBaseChannelUnique
|
|
newBaseRedisSimple
|
|
newBaseRedisUnique
|
|
testStateRecorder.Records
|
|
testStateRecorder.Reset
|
|
newWorkerPoolQueueForTest
|
|
|
|
forgejo.org/modules/queue/lqinternal
|
|
QueueItemIDBytes
|
|
QueueItemKeyBytes
|
|
ListLevelQueueKeys
|
|
|
|
forgejo.org/modules/setting
|
|
NewConfigProviderFromData
|
|
GitConfigType.GetOption
|
|
InitLoggersForTest
|
|
|
|
forgejo.org/modules/sync
|
|
StatusTable.Start
|
|
StatusTable.IsRunning
|
|
|
|
forgejo.org/modules/timeutil
|
|
GetExecutableModTime
|
|
MockSet
|
|
MockUnset
|
|
|
|
forgejo.org/modules/translation
|
|
MockLocale.Language
|
|
MockLocale.TrString
|
|
MockLocale.Tr
|
|
MockLocale.TrN
|
|
MockLocale.TrPluralString
|
|
MockLocale.TrPluralStringAllForms
|
|
MockLocale.TrSize
|
|
MockLocale.HasKey
|
|
MockLocale.PrettyNumber
|
|
|
|
forgejo.org/modules/translation/localeiter
|
|
IterateMessagesContent
|
|
|
|
forgejo.org/modules/util
|
|
OptionalArg
|
|
|
|
forgejo.org/modules/util/filebuffer
|
|
CreateFromReader
|
|
|
|
forgejo.org/modules/validation
|
|
IsErrNotValid
|
|
ValidateIDExists
|
|
|
|
forgejo.org/modules/web
|
|
RouteMock
|
|
RouteMockReset
|
|
|
|
forgejo.org/modules/zstd
|
|
NewWriter
|
|
Writer.Write
|
|
Writer.Close
|
|
|
|
forgejo.org/routers/web/org
|
|
MustEnableProjects
|
|
|
|
forgejo.org/services/context
|
|
GetPrivateContext
|
|
|
|
forgejo.org/services/repository
|
|
IsErrForkAlreadyExist
|
|
|
|
forgejo.org/services/repository/files
|
|
ContentType.String
|
|
|
|
forgejo.org/services/repository/gitgraph
|
|
Parser.Reset
|
|
|
|
forgejo.org/services/webhook
|
|
NewNotifier
|
|
|