Versions in this module Expand all Collapse all v1 v1.0.0 Sep 6, 2023 Changes in this version + var Name = "forgejo" + func GetFixturePassword() string + func GetFixtureURL(t tests.TestingT) string + func GetFixtureUser() string + func NewTestForgejo(t tests.TestingT) tests.ForgeTestInterface + func UpdateGitForPullRequest(ctx context.Context, prHeadCache *PrHeadCache, pr *format.PullRequest, ...) (head string, messages []string) + type Asset struct + DownloadFunc func() io.ReadCloser + func AssetConverter(f *forgejo_sdk.Attachment) *Asset + func (o *Asset) Equals(other *Asset) bool + func (o *Asset) FromFormat(asset *format.ReleaseAsset) + func (o *Asset) IsNil() bool + func (o *Asset) SetID(id int64) + func (o *Asset) SetIDString(id string) + func (o *Asset) ToFormat() *format.ReleaseAsset + func (o *Asset) ToFormatInterface() format.Interface + func (o Asset) GetID() int64 + func (o Asset) GetIDString() string + type AssetProvider struct + func (o *AssetProvider) Delete(ctx context.Context, user *User, project *Project, release *Release, ...) *Asset + func (o *AssetProvider) FromFormat(ctx context.Context, p *format.ReleaseAsset) *Asset + func (o *AssetProvider) Get(ctx context.Context, user *User, project *Project, release *Release, ...) *Asset + func (o *AssetProvider) GetObjects(ctx context.Context, user *User, project *Project, release *Release, page int) []*Asset + func (o *AssetProvider) ProcessObject(ctx context.Context, user *User, project *Project, release *Release, ...) + func (o *AssetProvider) Put(ctx context.Context, user *User, project *Project, release *Release, ...) *Asset + func (o *AssetProvider) ToFormat(ctx context.Context, asset *Asset) *format.ReleaseAsset + type BaseProvider struct + func (o *BaseProvider) GetLocalMatchingRemote(ctx context.Context, format format.Interface, ...) (string, bool) + type Comment struct + CommentableIndex int64 + func CommentConverter(f *forgejo_sdk.Comment) *Comment + func (o *Comment) Equals(other *Comment) bool + func (o *Comment) FromFormat(comment *format.Comment) + func (o *Comment) IsNil() bool + func (o *Comment) SetID(id int64) + func (o *Comment) SetIDString(id string) + func (o *Comment) ToFormat() *format.Comment + func (o *Comment) ToFormatInterface() format.Interface + func (o Comment) GetID() int64 + func (o Comment) GetIDString() string + type CommentProvider struct + func (o *CommentProvider) Delete(ctx context.Context, user *User, project *Project, ...) *Comment + func (o *CommentProvider) FromFormat(ctx context.Context, f *format.Comment) *Comment + func (o *CommentProvider) Get(ctx context.Context, user *User, project *Project, ...) *Comment + func (o *CommentProvider) GetObjects(ctx context.Context, user *User, project *Project, ...) []*Comment + func (o *CommentProvider) ProcessObject(ctx context.Context, user *User, project *Project, ...) + func (o *CommentProvider) Put(ctx context.Context, user *User, project *Project, ...) *Comment + func (o *CommentProvider) ToFormat(ctx context.Context, comment *Comment) *format.Comment + type Forgejo struct + func (o *Forgejo) GetDirectory() string + func (o *Forgejo) GetLogger() *config_types.Logger + func (o *Forgejo) GetName() string + func (o *Forgejo) GetNewMigrationHTTPClient() config_types.NewMigrationHTTPClientFun + func (o *Forgejo) GetOptions() config_types.OptionsInterface + func (o *Forgejo) GetPerPage() int + func (o *Forgejo) GetProvider(name string, parent common.ProviderInterface) common.ProviderInterface + func (o *Forgejo) Init(options config_types.OptionsInterface) + func (o *Forgejo) MaybeSudoID(id int64) + func (o *Forgejo) MaybeSudoName(name string) + func (o *Forgejo) NotSudo() + func (o *Forgejo) SetClient(options ...forgejo_sdk.ClientOption) + func (o *Forgejo) SetIsAdmin() + func (o *Forgejo) SetOptions(options config_types.OptionsInterface) + func (o *Forgejo) SetToken() + func (o *Forgejo) SupportGetRepoComments() bool + func (o Forgejo) Finish() + type Issue struct + func IssueConverter(f *forgejo_sdk.Issue) *Issue + func (o *Issue) Equals(other *Issue) bool + func (o *Issue) FromFormat(issue *format.Issue) + func (o *Issue) IsNil() bool + func (o *Issue) SetID(id int64) + func (o *Issue) SetIDString(id string) + func (o *Issue) ToFormat() *format.Issue + func (o *Issue) ToFormatInterface() format.Interface + func (o Issue) GetID() int64 + func (o Issue) GetIDString() string + type IssueProvider struct + func (o *IssueProvider) Delete(ctx context.Context, user *User, project *Project, issue *Issue) *Issue + func (o *IssueProvider) FromFormat(ctx context.Context, i *format.Issue) *Issue + func (o *IssueProvider) Get(ctx context.Context, user *User, project *Project, exemplar *Issue) *Issue + func (o *IssueProvider) GetObjects(ctx context.Context, user *User, project *Project, page int) []*Issue + func (o *IssueProvider) ProcessObject(ctx context.Context, user *User, project *Project, issue *Issue) + func (o *IssueProvider) Put(ctx context.Context, user *User, project *Project, issue, existing *Issue) *Issue + func (o *IssueProvider) ToFormat(ctx context.Context, issue *Issue) *format.Issue + type Label forgejo_sdk.Label + func LabelConverter(f *forgejo_sdk.Label) *Label + func (o *Label) Equals(other *Label) bool + func (o *Label) FromFormat(label *format.Label) + func (o *Label) IsNil() bool + func (o *Label) SetID(id int64) + func (o *Label) SetIDString(id string) + func (o *Label) ToFormat() *format.Label + func (o *Label) ToFormatInterface() format.Interface + func (o Label) GetID() int64 + func (o Label) GetIDString() string + func (o Label) GetName() string + type LabelProvider struct + func (o *LabelProvider) Delete(ctx context.Context, user *User, project *Project, label *Label) *Label + func (o *LabelProvider) FromFormat(ctx context.Context, m *format.Label) *Label + func (o *LabelProvider) Get(ctx context.Context, user *User, project *Project, exemplar *Label) *Label + func (o *LabelProvider) GetObjects(ctx context.Context, user *User, project *Project, page int) []*Label + func (o *LabelProvider) ProcessObject(ctx context.Context, user *User, project *Project, label *Label) + func (o *LabelProvider) Put(ctx context.Context, user *User, project *Project, label, existing *Label) *Label + func (o *LabelProvider) ToFormat(ctx context.Context, label *Label) *format.Label + type Milestone forgejo_sdk.Milestone + func MilestoneConverter(f *forgejo_sdk.Milestone) *Milestone + func (o *Milestone) Equals(other *Milestone) bool + func (o *Milestone) FromFormat(milestone *format.Milestone) + func (o *Milestone) IsNil() bool + func (o *Milestone) SetID(id int64) + func (o *Milestone) SetIDString(id string) + func (o *Milestone) ToFormat() *format.Milestone + func (o *Milestone) ToFormatInterface() format.Interface + func (o Milestone) GetID() int64 + func (o Milestone) GetIDString() string + func (o Milestone) GetName() string + type MilestoneProvider struct + func (o *MilestoneProvider) Delete(ctx context.Context, user *User, project *Project, milestone *Milestone) *Milestone + func (o *MilestoneProvider) FromFormat(ctx context.Context, m *format.Milestone) *Milestone + func (o *MilestoneProvider) Get(ctx context.Context, user *User, project *Project, exemplar *Milestone) *Milestone + func (o *MilestoneProvider) GetObjects(ctx context.Context, user *User, project *Project, page int) []*Milestone + func (o *MilestoneProvider) ProcessObject(ctx context.Context, user *User, project *Project, milestone *Milestone) + func (o *MilestoneProvider) Put(ctx context.Context, user *User, project *Project, ...) *Milestone + func (o *MilestoneProvider) ToFormat(ctx context.Context, milestone *Milestone) *format.Milestone + type Options struct + AuthPassword string + AuthToken string + AuthUsername string + IsAdmin bool + func (o *Options) FromFlags(ctx context.Context, c *cli.Context, prefix string) config_types.OptionsInterface + func (o *Options) GetPushURL(cloneAddr string) string + type PrHeadCache map[string]struct + type Project forgejo_sdk.Repository + func ForkTestProject(t tests.TestingT, gi forgejoInstance, ownerName, upstreamName string) *Project + func NewTestProject(gi forgejoInstance) (*Project, func()) + func ProjectConverter(f *forgejo_sdk.Repository) *Project + func (o *Project) Equals(other *Project) bool + func (o *Project) FromFormat(project *format.Project) + func (o *Project) IsNil() bool + func (o *Project) SetID(id int64) + func (o *Project) SetIDString(id string) + func (o *Project) ToFormat() *format.Project + func (o *Project) ToFormatInterface() format.Interface + func (o Project) GetID() int64 + func (o Project) GetIDString() string + type ProjectProvider struct + func (o *ProjectProvider) Delete(ctx context.Context, user *User, project *Project) *Project + func (o *ProjectProvider) FromFormat(ctx context.Context, p *format.Project) *Project + func (o *ProjectProvider) Get(ctx context.Context, user *User, exemplar *Project) *Project + func (o *ProjectProvider) GetObjects(ctx context.Context, user *User, page int) []*Project + func (o *ProjectProvider) ProcessObject(ctx context.Context, user *User, project *Project) + func (o *ProjectProvider) Put(ctx context.Context, user *User, project, existing *Project) *Project + func (o *ProjectProvider) ToFormat(ctx context.Context, project *Project) *format.Project + type PullRequest struct + FetchFunc func(repository string) string + func PullRequestConverter(f *forgejo_sdk.PullRequest) *PullRequest + func (o *PullRequest) Equals(other *PullRequest) bool + func (o *PullRequest) FromFormat(pullRequest *format.PullRequest) + func (o *PullRequest) IsNil() bool + func (o *PullRequest) SetID(id int64) + func (o *PullRequest) SetIDString(id string) + func (o *PullRequest) ToFormat() *format.PullRequest + func (o *PullRequest) ToFormatInterface() format.Interface + func (o PullRequest) GetID() int64 + func (o PullRequest) GetIDString() string + func (o PullRequest) IsForkPullRequest() bool + type PullRequestProvider struct + func (o *PullRequestProvider) Delete(ctx context.Context, user *User, project *Project, pullRequest *PullRequest) *PullRequest + func (o *PullRequestProvider) FromFormat(ctx context.Context, pr *format.PullRequest) *PullRequest + func (o *PullRequestProvider) Get(ctx context.Context, user *User, project *Project, pullRequest *PullRequest) *PullRequest + func (o *PullRequestProvider) GetObjects(ctx context.Context, user *User, project *Project, page int) []*PullRequest + func (o *PullRequestProvider) Init() *PullRequestProvider + func (o *PullRequestProvider) ProcessObject(ctx context.Context, user *User, project *Project, pr *PullRequest) + func (o *PullRequestProvider) Put(ctx context.Context, user *User, project *Project, ...) *PullRequest + func (o *PullRequestProvider) ToFormat(ctx context.Context, pullRequest *PullRequest) *format.PullRequest + type Reaction struct + ID int64 + func ReactionConverter(f *forgejo_sdk.Reaction) *Reaction + func (o *Reaction) FromFormat(reaction *format.Reaction) + func (o *Reaction) IsNil() bool + func (o *Reaction) SetID(id int64) + func (o *Reaction) SetIDString(id string) + func (o *Reaction) ToFormat() *format.Reaction + func (o *Reaction) ToFormatInterface() format.Interface + func (o Reaction) Equals(other *Reaction) bool + func (o Reaction) GetID() int64 + func (o Reaction) GetIDString() string + type ReactionProvider struct + func (o *ReactionProvider) Delete(ctx context.Context, user *User, project *Project, ...) *Reaction + func (o *ReactionProvider) FromFormat(ctx context.Context, m *format.Reaction) *Reaction + func (o *ReactionProvider) Get(ctx context.Context, user *User, project *Project, ...) *Reaction + func (o *ReactionProvider) GetObjects(ctx context.Context, user *User, project *Project, ...) []*Reaction + func (o *ReactionProvider) ProcessObject(ctx context.Context, user *User, project *Project, ...) + func (o *ReactionProvider) Put(ctx context.Context, user *User, project *Project, ...) *Reaction + func (o *ReactionProvider) ToFormat(ctx context.Context, reaction *Reaction) *format.Reaction + type Release forgejo_sdk.Release + func ReleaseConverter(f *forgejo_sdk.Release) *Release + func (o *Release) Equals(other *Release) bool + func (o *Release) FromFormat(release *format.Release) + func (o *Release) IsNil() bool + func (o *Release) SetID(id int64) + func (o *Release) SetIDString(id string) + func (o *Release) ToFormat() *format.Release + func (o *Release) ToFormatInterface() format.Interface + func (o Release) GetID() int64 + func (o Release) GetIDString() string + type ReleaseProvider struct + func (o *ReleaseProvider) Delete(ctx context.Context, user *User, project *Project, release *Release) *Release + func (o *ReleaseProvider) FromFormat(ctx context.Context, p *format.Release) *Release + func (o *ReleaseProvider) Get(ctx context.Context, user *User, project *Project, exemplar *Release) *Release + func (o *ReleaseProvider) GetObjects(ctx context.Context, user *User, project *Project, page int) []*Release + func (o *ReleaseProvider) ProcessObject(ctx context.Context, user *User, project *Project, release *Release) + func (o *ReleaseProvider) Put(ctx context.Context, user *User, project *Project, release, existing *Release) *Release + func (o *ReleaseProvider) ToFormat(ctx context.Context, release *Release) *format.Release + type Repository struct + func (o *Repository) Equals(other *Repository) bool + func (o *Repository) FromFormat(repository *format.Repository) + func (o *Repository) ToFormat() *format.Repository + func (o *Repository) ToFormatInterface() format.Interface + type RepositoryProvider struct + func (o *RepositoryProvider) Delete(ctx context.Context, user *User, project *Project, repository *Repository) *Repository + func (o *RepositoryProvider) FromFormat(ctx context.Context, p *format.Repository) *Repository + func (o *RepositoryProvider) Get(ctx context.Context, user *User, project *Project, exemplar *Repository) *Repository + func (o *RepositoryProvider) GetObjects(ctx context.Context, user *User, project *Project, page int) []*Repository + func (o *RepositoryProvider) ProcessObject(ctx context.Context, user *User, project *Project, repository *Repository) + func (o *RepositoryProvider) Put(ctx context.Context, user *User, project *Project, ...) *Repository + func (o *RepositoryProvider) ToFormat(ctx context.Context, repository *Repository) *format.Repository + type Review struct + Comments []*forgejo_sdk.PullReviewComment + IssueIndex int64 + func ReviewConverter(f *forgejo_sdk.PullReview) *Review + func (o *Review) Equals(other *Review) bool + func (o *Review) FromFormat(review *format.Review) + func (o *Review) IsNil() bool + func (o *Review) SetID(id int64) + func (o *Review) SetIDString(id string) + func (o *Review) ToFormat() *format.Review + func (o *Review) ToFormatInterface() format.Interface + func (o Review) GetID() int64 + func (o Review) GetIDString() string + type ReviewProvider struct + func (o *ReviewProvider) Delete(ctx context.Context, user *User, project *Project, pullRequest *PullRequest, ...) *Review + func (o *ReviewProvider) FromFormat(ctx context.Context, f *format.Review) *Review + func (o *ReviewProvider) Get(ctx context.Context, user *User, project *Project, pullRequest *PullRequest, ...) *Review + func (o *ReviewProvider) GetObjects(ctx context.Context, user *User, project *Project, pullRequest *PullRequest, ...) []*Review + func (o *ReviewProvider) ProcessObject(ctx context.Context, user *User, project *Project, pullRequest *PullRequest, ...) + func (o *ReviewProvider) Put(ctx context.Context, user *User, project *Project, pullRequest *PullRequest, ...) *Review + func (o *ReviewProvider) ToFormat(ctx context.Context, review *Review) *format.Review + type Topic struct + ID int64 + Name string + func TopicConverter(f string) *Topic + func (o *Topic) Equals(other *Topic) bool + func (o *Topic) FromFormat(topic *format.Topic) + func (o *Topic) IsNil() bool + func (o *Topic) SetID(id int64) + func (o *Topic) SetIDString(id string) + func (o *Topic) ToFormat() *format.Topic + func (o *Topic) ToFormatInterface() format.Interface + func (o Topic) GetID() int64 + func (o Topic) GetIDString() string + type TopicProvider struct + func (o *TopicProvider) Delete(ctx context.Context, user *User, project *Project, topic *Topic) *Topic + func (o *TopicProvider) FromFormat(ctx context.Context, m *format.Topic) *Topic + func (o *TopicProvider) Get(ctx context.Context, user *User, project *Project, exemplar *Topic) *Topic + func (o *TopicProvider) GetAllObjects(user *User, project *Project) []*Topic + func (o *TopicProvider) GetObjects(ctx context.Context, user *User, project *Project, page int) []*Topic + func (o *TopicProvider) ProcessObject(ctx context.Context, user *User, project *Project, topic *Topic) + func (o *TopicProvider) Put(ctx context.Context, user *User, project *Project, topic, existing *Topic) *Topic + func (o *TopicProvider) ToFormat(ctx context.Context, topic *Topic) *format.Topic + type User struct + Password string + func NewTestUser(t tests.TestingT, forgejo *Forgejo) (user *User, password string) + func UserConverter(f *forgejo_sdk.User) *User + func (o *User) Equals(other *User) bool + func (o *User) FromFormat(user *format.User) + func (o *User) IsNil() bool + func (o *User) SetID(id int64) + func (o *User) SetIDString(id string) + func (o *User) ToFormat() *format.User + func (o *User) ToFormatInterface() format.Interface + func (o User) GetID() int64 + func (o User) GetIDString() string + type UserProvider struct + func (o *UserProvider) Delete(ctx context.Context, user *User) *User + func (o *UserProvider) FromFormat(ctx context.Context, p *format.User) *User + func (o *UserProvider) Get(ctx context.Context, exemplar *User) *User + func (o *UserProvider) GetObjects(ctx context.Context, page int) []*User + func (o *UserProvider) ProcessObject(ctx context.Context, user *User) + func (o *UserProvider) Put(ctx context.Context, user, existing *User) *User + func (o *UserProvider) ToFormat(ctx context.Context, user *User) *format.User