Documentation
¶
Index ¶
- Variables
- func GetFixturePassword() string
- func GetFixtureURL(t tests.TestingT) string
- func GetFixtureUser() string
- func NewTestGitLab(t tests.TestingT) tests.ForgeTestInterface
- func UpdateGitForPullRequest(ctx context.Context, pr *format.PullRequest, repository string) (head string, messages []string)
- type Asset
- func (o *Asset) Equals(other *Asset) bool
- func (o *Asset) FromFormat(asset *format.ReleaseAsset)
- func (o Asset) GetID() int64
- func (o Asset) GetIDString() string
- 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
- type AssetProvider
- 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
- type Comment
- func (o *Comment) Equals(other *Comment) bool
- func (o *Comment) FromFormat(comment *format.Comment)
- func (o Comment) GetID() int64
- func (o Comment) GetIDString() string
- 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
- type CommentProvider
- 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) GetCommentableIID(commentable common.ContainerObjectInterface) int
- 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 GitLab
- func (o GitLab) Finish()
- func (o *GitLab) GetAPIURL() string
- func (o *GitLab) GetDirectory() string
- func (o *GitLab) GetLogger() *config_types.Logger
- func (o *GitLab) GetName() string
- func (o *GitLab) GetNewMigrationHTTPClient() config_types.NewMigrationHTTPClientFun
- func (o *GitLab) GetOptions() config_types.OptionsInterface
- func (o *GitLab) GetPerPage() int
- func (o *GitLab) GetProvider(name string, parent common.ProviderInterface) common.ProviderInterface
- func (o *GitLab) Init(options config_types.OptionsInterface)
- func (o *GitLab) MaybeSudo(uid interface{}) []gitlab.RequestOptionFunc
- func (o *GitLab) SetClient()
- func (o *GitLab) SetIsAdmin()
- func (o *GitLab) SetOptions(options config_types.OptionsInterface)
- func (o *GitLab) SupportGetRepoComments() bool
- type Issue
- func (o *Issue) Equals(other *Issue) bool
- func (o *Issue) FromFormat(issue *format.Issue)
- func (o Issue) GetID() int64
- func (o Issue) GetIDString() string
- 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
- type IssueProvider
- 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
- func (o *Label) Equals(other *Label) bool
- func (o *Label) FromFormat(label *format.Label)
- func (o Label) GetID() int64
- func (o Label) GetIDString() string
- func (o Label) GetName() string
- 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
- type LabelProvider
- 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
- func (o *Milestone) Equals(other *Milestone) bool
- func (o *Milestone) FromFormat(milestone *format.Milestone)
- func (o Milestone) GetID() int64
- func (o Milestone) GetIDString() string
- func (o Milestone) GetName() string
- 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
- type MilestoneProvider
- 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
- type Project
- func (o *Project) Equals(other *Project) bool
- func (o *Project) FromFormat(project *format.Project)
- func (o Project) GetID() int64
- func (o Project) GetIDString() string
- 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
- type ProjectProvider
- 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
- func (o *PullRequest) Equals(other *PullRequest) bool
- func (o *PullRequest) FromFormat(pullRequest *format.PullRequest)
- func (o PullRequest) GetID() int64
- func (o PullRequest) GetIDString() string
- func (o PullRequest) IsForkPullRequest() bool
- 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
- type PullRequestProvider
- 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
- func (o Reaction) Equals(other *Reaction) bool
- func (o *Reaction) FromFormat(reaction *format.Reaction)
- func (o Reaction) GetID() int64
- func (o Reaction) GetIDString() string
- 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
- type ReactionProvider
- 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
- func (o *Release) Equals(other *Release) bool
- func (o *Release) FromFormat(release *format.Release)
- func (o Release) GetID() int64
- func (o Release) GetIDString() string
- 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
- type ReleaseProvider
- 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
- type RepositoryProvider
- 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
- func (o *Review) Equals(other *Review) bool
- func (o *Review) FromFormat(review *format.Review)
- func (o Review) GetID() int64
- func (o Review) GetIDString() string
- 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
- type ReviewProvider
- 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
- func (o *Topic) Equals(other *Topic) bool
- func (o *Topic) FromFormat(topic *format.Topic)
- func (o Topic) GetID() int64
- func (o Topic) GetIDString() string
- func (o Topic) GetName() string
- 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
- type TopicProvider
- func (o *TopicProvider) Delete(ctx context.Context, topic *Topic) *Topic
- func (o *TopicProvider) FromFormat(ctx context.Context, m *format.Topic) *Topic
- func (o *TopicProvider) Get(ctx context.Context, exemplar *Topic) *Topic
- func (o *TopicProvider) GetObjects(ctx context.Context, page int) []*Topic
- func (o *TopicProvider) ProcessObject(ctx context.Context, topic *Topic)
- func (o *TopicProvider) Put(ctx context.Context, topic, existing *Topic) *Topic
- func (o *TopicProvider) ToFormat(ctx context.Context, topic *Topic) *format.Topic
- type User
- func (o *User) Equals(other *User) bool
- func (o *User) FromFormat(user *format.User)
- func (o User) GetID() int64
- func (o User) GetIDString() string
- 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
- type UserProvider
- 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
Constants ¶
This section is empty.
Variables ¶
View Source
var Name = "GitLab"
Functions ¶
func GetFixturePassword ¶
func GetFixturePassword() string
func GetFixtureURL ¶
func GetFixtureUser ¶
func GetFixtureUser() string
func NewTestGitLab ¶
func NewTestGitLab(t tests.TestingT) tests.ForgeTestInterface
func UpdateGitForPullRequest ¶
Types ¶
type Asset ¶
type Asset struct { URL string PackageFile *gitlab.PackageFile Package *gitlab.Package DownloadFunc func() io.ReadCloser }
func AssetConverter ¶
func (*Asset) FromFormat ¶
func (o *Asset) FromFormat(asset *format.ReleaseAsset)
func (Asset) GetIDString ¶
func (*Asset) SetIDString ¶
func (*Asset) ToFormat ¶
func (o *Asset) ToFormat() *format.ReleaseAsset
func (*Asset) ToFormatInterface ¶
type AssetProvider ¶
type AssetProvider struct {
BaseProvider
}
func (*AssetProvider) FromFormat ¶
func (o *AssetProvider) FromFormat(ctx context.Context, p *format.ReleaseAsset) *Asset
func (*AssetProvider) GetObjects ¶
func (*AssetProvider) ProcessObject ¶
func (*AssetProvider) ToFormat ¶
func (o *AssetProvider) ToFormat(ctx context.Context, asset *Asset) *format.ReleaseAsset
type BaseProvider ¶
type BaseProvider struct {
// contains filtered or unexported fields
}
func (*BaseProvider) GetLocalMatchingRemote ¶
func (o *BaseProvider) GetLocalMatchingRemote(ctx context.Context, format format.Interface, parents ...common.ContainerObjectInterface) (string, bool)
type Comment ¶
type Comment struct { gitlab.Note CommentableIndex int64 }
func CommentConverter ¶
func CommentConverter(f *gitlab.Note) *Comment
func (*Comment) FromFormat ¶
func (Comment) GetIDString ¶
func (*Comment) SetIDString ¶
func (*Comment) ToFormatInterface ¶
type CommentProvider ¶
type CommentProvider struct {
BaseProvider
}
func (*CommentProvider) Delete ¶
func (o *CommentProvider) Delete(ctx context.Context, user *User, project *Project, commentable common.ContainerObjectInterface, comment *Comment) *Comment
func (*CommentProvider) FromFormat ¶
func (*CommentProvider) Get ¶
func (o *CommentProvider) Get(ctx context.Context, user *User, project *Project, commentable common.ContainerObjectInterface, comment *Comment) *Comment
func (*CommentProvider) GetCommentableIID ¶
func (o *CommentProvider) GetCommentableIID(commentable common.ContainerObjectInterface) int
func (*CommentProvider) GetObjects ¶
func (o *CommentProvider) GetObjects(ctx context.Context, user *User, project *Project, commentable common.ContainerObjectInterface, page int) []*Comment
func (*CommentProvider) ProcessObject ¶
func (o *CommentProvider) ProcessObject(ctx context.Context, user *User, project *Project, commentable common.ContainerObjectInterface, comment *Comment)
type GitLab ¶
type GitLab struct {
// contains filtered or unexported fields
}
func (*GitLab) GetDirectory ¶
func (*GitLab) GetLogger ¶
func (o *GitLab) GetLogger() *config_types.Logger
func (*GitLab) GetNewMigrationHTTPClient ¶
func (o *GitLab) GetNewMigrationHTTPClient() config_types.NewMigrationHTTPClientFun
func (*GitLab) GetOptions ¶
func (o *GitLab) GetOptions() config_types.OptionsInterface
func (*GitLab) GetPerPage ¶
func (*GitLab) GetProvider ¶
func (o *GitLab) GetProvider(name string, parent common.ProviderInterface) common.ProviderInterface
func (*GitLab) Init ¶
func (o *GitLab) Init(options config_types.OptionsInterface)
func (*GitLab) SetIsAdmin ¶
func (o *GitLab) SetIsAdmin()
func (*GitLab) SetOptions ¶
func (o *GitLab) SetOptions(options config_types.OptionsInterface)
func (*GitLab) SupportGetRepoComments ¶
type Issue ¶
type Issue struct {
gitlab.Issue
}
func IssueConverter ¶
func IssueConverter(f *gitlab.Issue) *Issue
func (*Issue) FromFormat ¶
func (Issue) GetIDString ¶
func (*Issue) SetIDString ¶
func (*Issue) ToFormatInterface ¶
type IssueProvider ¶
type IssueProvider struct { BaseProvider // contains filtered or unexported fields }
func (*IssueProvider) FromFormat ¶
func (*IssueProvider) GetObjects ¶
func (*IssueProvider) ProcessObject ¶
type Label ¶
type Label gitlab.Label
func LabelConverter ¶
func LabelConverter(f *gitlab.Label) *Label
func (*Label) FromFormat ¶
func (Label) GetIDString ¶
func (*Label) SetIDString ¶
func (*Label) ToFormatInterface ¶
type LabelProvider ¶
type LabelProvider struct { BaseProvider // contains filtered or unexported fields }
func (*LabelProvider) FromFormat ¶
func (*LabelProvider) GetObjects ¶
func (*LabelProvider) ProcessObject ¶
type Milestone ¶
type Milestone gitlab.Milestone
func MilestoneConverter ¶
func MilestoneConverter(f *gitlab.Milestone) *Milestone
func (*Milestone) FromFormat ¶
func (Milestone) GetIDString ¶
func (*Milestone) SetIDString ¶
func (*Milestone) ToFormatInterface ¶
type MilestoneProvider ¶
type MilestoneProvider struct { BaseProvider // contains filtered or unexported fields }
func (*MilestoneProvider) FromFormat ¶
func (*MilestoneProvider) GetObjects ¶
func (*MilestoneProvider) ProcessObject ¶
type Options ¶
type Options struct { config_types.Options IsAdmin bool AuthUsername string AuthPassword string AuthToken string }
func (*Options) FromFlags ¶
func (o *Options) FromFlags(ctx context.Context, c *cli.Context, prefix string) config_types.OptionsInterface
func (*Options) GetPushURL ¶
type Project ¶
type Project gitlab.Project
func ProjectConverter ¶
func ProjectConverter(f *gitlab.Project) *Project
func (*Project) FromFormat ¶
func (Project) GetIDString ¶
func (*Project) SetIDString ¶
func (*Project) ToFormatInterface ¶
type ProjectProvider ¶
type ProjectProvider struct { BaseProvider // contains filtered or unexported fields }
func (*ProjectProvider) FromFormat ¶
func (*ProjectProvider) GetObjects ¶
func (*ProjectProvider) ProcessObject ¶
func (o *ProjectProvider) ProcessObject(ctx context.Context, user *User, project *Project)
type PullRequest ¶
type PullRequest struct { gitlab.MergeRequest HeadProject *Project BaseProject *Project FetchFunc func(repository string) string }
func PullRequestConverter ¶
func PullRequestConverter(f *gitlab.MergeRequest) *PullRequest
func (*PullRequest) Equals ¶
func (o *PullRequest) Equals(other *PullRequest) bool
func (*PullRequest) FromFormat ¶
func (o *PullRequest) FromFormat(pullRequest *format.PullRequest)
func (PullRequest) GetID ¶
func (o PullRequest) GetID() int64
func (PullRequest) GetIDString ¶
func (o PullRequest) GetIDString() string
func (PullRequest) IsForkPullRequest ¶
func (o PullRequest) IsForkPullRequest() bool
func (*PullRequest) IsNil ¶
func (o *PullRequest) IsNil() bool
func (*PullRequest) SetID ¶
func (o *PullRequest) SetID(id int64)
func (*PullRequest) SetIDString ¶
func (o *PullRequest) SetIDString(id string)
func (*PullRequest) ToFormat ¶
func (o *PullRequest) ToFormat() *format.PullRequest
func (*PullRequest) ToFormatInterface ¶
func (o *PullRequest) ToFormatInterface() format.Interface
type PullRequestProvider ¶
type PullRequestProvider struct { BaseProvider // contains filtered or unexported fields }
func (*PullRequestProvider) Delete ¶
func (o *PullRequestProvider) Delete(ctx context.Context, user *User, project *Project, pullRequest *PullRequest) *PullRequest
func (*PullRequestProvider) FromFormat ¶
func (o *PullRequestProvider) FromFormat(ctx context.Context, pr *format.PullRequest) *PullRequest
func (*PullRequestProvider) Get ¶
func (o *PullRequestProvider) Get(ctx context.Context, user *User, project *Project, pullRequest *PullRequest) *PullRequest
func (*PullRequestProvider) GetObjects ¶
func (o *PullRequestProvider) GetObjects(ctx context.Context, user *User, project *Project, page int) []*PullRequest
func (*PullRequestProvider) Init ¶
func (o *PullRequestProvider) Init() *PullRequestProvider
func (*PullRequestProvider) ProcessObject ¶
func (o *PullRequestProvider) ProcessObject(ctx context.Context, user *User, project *Project, pr *PullRequest)
func (*PullRequestProvider) Put ¶
func (o *PullRequestProvider) Put(ctx context.Context, user *User, project *Project, pullRequest, existing *PullRequest) *PullRequest
func (*PullRequestProvider) ToFormat ¶
func (o *PullRequestProvider) ToFormat(ctx context.Context, pullRequest *PullRequest) *format.PullRequest
type Reaction ¶
type Reaction gitlab.AwardEmoji
func ReactionConverter ¶
func ReactionConverter(f *gitlab.AwardEmoji) *Reaction
func (*Reaction) FromFormat ¶
func (Reaction) GetIDString ¶
func (*Reaction) SetIDString ¶
func (*Reaction) ToFormatInterface ¶
type ReactionProvider ¶
type ReactionProvider struct {
BaseProvider
}
func (*ReactionProvider) Delete ¶
func (o *ReactionProvider) Delete(ctx context.Context, user *User, project *Project, parents []common.ContainerObjectInterface, reaction *Reaction) *Reaction
func (*ReactionProvider) FromFormat ¶
func (*ReactionProvider) Get ¶
func (o *ReactionProvider) Get(ctx context.Context, user *User, project *Project, parents []common.ContainerObjectInterface, exemplar *Reaction) *Reaction
func (*ReactionProvider) GetObjects ¶
func (o *ReactionProvider) GetObjects(ctx context.Context, user *User, project *Project, parents []common.ContainerObjectInterface, page int) []*Reaction
func (*ReactionProvider) ProcessObject ¶
func (o *ReactionProvider) ProcessObject(ctx context.Context, user *User, project *Project, parents []common.ContainerObjectInterface, reaction *Reaction)
type Release ¶
type Release gitlab.Release
func ReleaseConverter ¶
func ReleaseConverter(f *gitlab.Release) *Release
func (*Release) FromFormat ¶
func (Release) GetIDString ¶
func (*Release) SetIDString ¶
func (*Release) ToFormatInterface ¶
type ReleaseProvider ¶
type ReleaseProvider struct {
BaseProvider
}
func (*ReleaseProvider) FromFormat ¶
func (*ReleaseProvider) GetObjects ¶
func (*ReleaseProvider) ProcessObject ¶
type Repository ¶
type Repository struct {
format.Repository
}
func (*Repository) Equals ¶
func (o *Repository) Equals(other *Repository) bool
func (*Repository) FromFormat ¶
func (o *Repository) FromFormat(repository *format.Repository)
func (*Repository) ToFormat ¶
func (o *Repository) ToFormat() *format.Repository
func (*Repository) ToFormatInterface ¶
func (o *Repository) ToFormatInterface() format.Interface
type RepositoryProvider ¶
type RepositoryProvider struct {
BaseProvider
}
func (*RepositoryProvider) Delete ¶
func (o *RepositoryProvider) Delete(ctx context.Context, user *User, project *Project, repository *Repository) *Repository
func (*RepositoryProvider) FromFormat ¶
func (o *RepositoryProvider) FromFormat(ctx context.Context, p *format.Repository) *Repository
func (*RepositoryProvider) Get ¶
func (o *RepositoryProvider) Get(ctx context.Context, user *User, project *Project, exemplar *Repository) *Repository
func (*RepositoryProvider) GetObjects ¶
func (o *RepositoryProvider) GetObjects(ctx context.Context, user *User, project *Project, page int) []*Repository
func (*RepositoryProvider) ProcessObject ¶
func (o *RepositoryProvider) ProcessObject(ctx context.Context, user *User, project *Project, repository *Repository)
func (*RepositoryProvider) Put ¶
func (o *RepositoryProvider) Put(ctx context.Context, user *User, project *Project, repository, existing *Repository) *Repository
func (*RepositoryProvider) ToFormat ¶
func (o *RepositoryProvider) ToFormat(ctx context.Context, repository *Repository) *format.Repository
type Review ¶
type Review struct { gitlab.Note MergeRequestID int }
func ReviewConverter ¶
func ReviewConverter(n *gitlab.Note) *Review
func (*Review) FromFormat ¶
func (Review) GetIDString ¶
func (*Review) SetIDString ¶
func (*Review) ToFormatInterface ¶
type ReviewProvider ¶
type ReviewProvider struct {
BaseProvider
}
func (*ReviewProvider) Delete ¶
func (o *ReviewProvider) Delete(ctx context.Context, user *User, project *Project, pullRequest *PullRequest, review *Review) *Review
func (*ReviewProvider) FromFormat ¶
func (*ReviewProvider) Get ¶
func (o *ReviewProvider) Get(ctx context.Context, user *User, project *Project, pullRequest *PullRequest, review *Review) *Review
func (*ReviewProvider) GetObjects ¶
func (o *ReviewProvider) GetObjects(ctx context.Context, user *User, project *Project, pullRequest *PullRequest, page int) []*Review
func (*ReviewProvider) ProcessObject ¶
func (o *ReviewProvider) ProcessObject(ctx context.Context, user *User, project *Project, pullRequest *PullRequest, review *Review)
func (*ReviewProvider) Put ¶
func (o *ReviewProvider) Put(ctx context.Context, user *User, project *Project, pullRequest *PullRequest, review, existing *Review) *Review
type Topic ¶
type Topic gitlab.Topic
func TopicConverter ¶
func TopicConverter(f *gitlab.Topic) *Topic
func (*Topic) FromFormat ¶
func (Topic) GetIDString ¶
func (*Topic) SetIDString ¶
func (*Topic) ToFormatInterface ¶
type TopicProvider ¶
type TopicProvider struct { BaseProvider // contains filtered or unexported fields }
func (*TopicProvider) Delete ¶
func (o *TopicProvider) Delete(ctx context.Context, topic *Topic) *Topic
func (*TopicProvider) FromFormat ¶
func (*TopicProvider) Get ¶
func (o *TopicProvider) Get(ctx context.Context, exemplar *Topic) *Topic
func (*TopicProvider) GetObjects ¶
func (o *TopicProvider) GetObjects(ctx context.Context, page int) []*Topic
func (*TopicProvider) ProcessObject ¶
func (o *TopicProvider) ProcessObject(ctx context.Context, topic *Topic)
type User ¶
type User struct { gitlab.User Password string }
func UserConverter ¶
func UserConverter(f *gitlab.User) *User
func (*User) FromFormat ¶
func (User) GetIDString ¶
func (*User) SetIDString ¶
func (*User) ToFormatInterface ¶
type UserProvider ¶
type UserProvider struct {
BaseProvider
}
func (*UserProvider) FromFormat ¶
func (*UserProvider) GetObjects ¶
func (o *UserProvider) GetObjects(ctx context.Context, page int) []*User
func (*UserProvider) ProcessObject ¶
func (o *UserProvider) ProcessObject(ctx context.Context, user *User)
Click to show internal directories.
Click to hide internal directories.