projects

package
v1.0.31 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Edit

func Edit() error

func GetRawFile

func GetRawFile(h *client.Host, project *gitlab.Project, filepath, ref string, re []*regexp.Regexp,
	wg *limiter.Limiter, data chan<- interface{}, options ...gitlab.RequestOptionFunc)

func GetRawFileFromGithub

func GetRawFileFromGithub(h *client.Host, repository *github.Repository, filepath, ref string, re []*regexp.Regexp,
	wg *limiter.Limiter, data chan<- interface{})

func List

func List() error

func ListMergeRequests

func ListMergeRequests(h *client.Host, project *gitlab.Project, opt gitlab.ListProjectMergeRequestsOptions,
	wg *limiter.Limiter, data chan<- interface{}, options ...gitlab.RequestOptionFunc) error

func ListMergeRequestsByAssigneeID

func ListMergeRequestsByAssigneeID(h *client.Host, project *gitlab.Project, assigneeIDs []int, opt gitlab.ListProjectMergeRequestsOptions,
	wg *limiter.Limiter, data chan<- interface{}, options ...gitlab.RequestOptionFunc) error

assigneeIDs slice must be sorted in ascending order

func ListMergeRequestsByAuthorID

func ListMergeRequestsByAuthorID(h *client.Host, project *gitlab.Project, authorIDs []int, opt gitlab.ListProjectMergeRequestsOptions,
	wg *limiter.Limiter, data chan<- interface{}, options ...gitlab.RequestOptionFunc) error

authorIDs slice must be sorted in ascending order

func ListMergeRequestsByAuthorOrAssigneeID

func ListMergeRequestsByAuthorOrAssigneeID(h *client.Host, project *gitlab.Project, IDs []int, opt gitlab.ListProjectMergeRequestsOptions,
	wg *limiter.Limiter, data chan<- interface{}, options ...gitlab.RequestOptionFunc) error

authorIDs slice must be sorted in ascending order

func ListMergeRequestsSearch

func ListMergeRequestsSearch(h *client.Host, project *gitlab.Project, key string, value *regexp.Regexp, opt gitlab.ListProjectMergeRequestsOptions,
	wg *limiter.Limiter, data chan<- interface{}, options ...gitlab.RequestOptionFunc) error

func ListPipelineCleanupSchedulesCmd

func ListPipelineCleanupSchedulesCmd() error

func ListPipelineSchedules

func ListPipelineSchedules(h *client.Host, project *gitlab.Project, opt gitlab.ListPipelineSchedulesOptions,
	desc []*regexp.Regexp, withLastPipelines bool, wg *limiter.Limiter, data chan<- interface{}, options ...gitlab.RequestOptionFunc)

func ListPipelineSchedulesCmd

func ListPipelineSchedulesCmd() error

func ListProjectsByNamespace

func ListProjectsByNamespace(h *client.Host, namespaces []string, opt gitlab.ListProjectsOptions,
	wg *limiter.Limiter, data chan<- interface{}, options ...gitlab.RequestOptionFunc) error

func ListProjectsFiles

func ListProjectsFiles(h *client.Host, filepath, ref string, re []*regexp.Regexp, opt gitlab.ListProjectsOptions,
	wg *limiter.Limiter, data chan<- interface{}, options ...gitlab.RequestOptionFunc)

func ListProjectsFilesFromGithub

func ListProjectsFilesFromGithub(h *client.Host, filepath, ref string, re []*regexp.Regexp, opt github.RepositoryListByOrgOptions,
	wg *limiter.Limiter, data chan<- interface{}, options ...gitlab.RequestOptionFunc)

func ListPullRequests

func ListPullRequests(h *client.Host, repository *github.Repository, opt github.PullRequestListOptions,
	wg *limiter.Limiter, data chan<- interface{}, options ...gitlab.RequestOptionFunc) error

func ListPullRequestsByAuthorOrAssigneeID

func ListPullRequestsByAuthorOrAssigneeID(h *client.Host, repository *github.Repository, IDs []int,
	opt github.PullRequestListOptions, wg *limiter.Limiter, data chan<- interface{}) error

authorIDs slice must be sorted in ascending order

func ListRepositories

func ListRepositories(h *client.Host, archived bool, opt github.RepositoryListByOrgOptions,
	wg *limiter.Limiter, data chan<- interface{}) error

func ListRepositoriesByNamespace

func ListRepositoriesByNamespace(h *client.Host, namespaces []string, archived bool, opt github.RepositoryListByOrgOptions,
	wg *limiter.Limiter, data chan<- interface{}) error

func ListWithLanguages

func ListWithLanguages() error

func ListWorkflowRuns

func ListWorkflowRuns(h *client.Host, repository *github.Repository, opt github.ListOptions,
	desc []*regexp.Regexp, withLastPipelines int, withFileContent bool, wg *limiter.Limiter, data chan<- interface{})

func MergeRequestsListCmd

func MergeRequestsListCmd() error

func NewBranchesCmd

func NewBranchesCmd() *cobra.Command

func NewCmd

func NewCmd() *cobra.Command

func NewEditCmd

func NewEditCmd() *cobra.Command

func NewFilesCmd

func NewFilesCmd() *cobra.Command

func NewLanguagesCmd

func NewLanguagesCmd() *cobra.Command

func NewListCmd

func NewListCmd() *cobra.Command

func NewMergeRequestListCmd

func NewMergeRequestListCmd() *cobra.Command

func NewMergeRequestsCmd

func NewMergeRequestsCmd() *cobra.Command

func NewPipelineCleanupSchedulesCmd

func NewPipelineCleanupSchedulesCmd() *cobra.Command

func NewPipelineSchedulesCmd

func NewPipelineSchedulesCmd() *cobra.Command

func NewPipelinesCmd

func NewPipelinesCmd() *cobra.Command

func NewProtectRepositoryBranchesCmd

func NewProtectRepositoryBranchesCmd() *cobra.Command

func NewProtectedBranchesCmd

func NewProtectedBranchesCmd() *cobra.Command

func NewProtectedBranchesListCmd

func NewProtectedBranchesListCmd() *cobra.Command

func NewRegistryCmd

func NewRegistryCmd() *cobra.Command

func NewRegistryListCmd

func NewRegistryListCmd() *cobra.Command

func NewSearchCmd

func NewSearchCmd() *cobra.Command

func ProtectRepositoryBranchesCmd

func ProtectRepositoryBranchesCmd() error

func ProtectedBranchesListCmd

func ProtectedBranchesListCmd() error

func RegistryListCmd

func RegistryListCmd() error
func Search() error

func SearchRegexp

func SearchRegexp() error

Types

type ProjectBranch

type ProjectBranch struct {
	Project *gitlab.Project `json:"project,omitempty"`
	Branch  *gitlab.Branch  `json:"branch,omitempty"`
}

type ProjectFile

type ProjectFile struct {
	Project *gitlab.Project `json:"project,omitempty"`
	Raw     []byte
}

type ProjectLanguage

type ProjectLanguage struct {
	Name    string
	Percent float32
}

func (ProjectLanguage) String

func (pl ProjectLanguage) String() string

type ProjectLintResult

type ProjectLintResult struct {
	Project    *gitlab.Project        `json:"project,omitempty"`
	MergedYaml map[string]interface{} `json:"merged_yaml,omitempty"`
}

type ProjectPipelineSchedule

type ProjectPipelineSchedule struct {
	Project   *gitlab.Project          `json:"project,omitempty"`
	Schedule  *gitlab.PipelineSchedule `json:"schedule,omitempty"`
	Pipelines []*gitlab.Pipeline       `json:"pipelines,omitempty"`
}

type ProjectProtectedBranch

type ProjectProtectedBranch struct {
	Project           *gitlab.Project           `json:"project,omitempty"`
	ProtectedBranches []*gitlab.ProtectedBranch `json:"protected_branches,omitempty"`
}

func (*ProjectProtectedBranch) BranchesNames

func (pb *ProjectProtectedBranch) BranchesNames() []string

func (*ProjectProtectedBranch) Search

func (pb *ProjectProtectedBranch) Search(name string) (*gitlab.ProtectedBranch, bool)

type ProjectRegistryRepository

type ProjectRegistryRepository struct {
	Project              *gitlab.Project              `json:"project,omitempty"`
	RegistryRepositories []*gitlab.RegistryRepository `json:"registry_repositories,omitempty"`
}

func (*ProjectRegistryRepository) TagsCount

func (pr *ProjectRegistryRepository) TagsCount() (i int)

func (*ProjectRegistryRepository) TotalSize

func (pr *ProjectRegistryRepository) TotalSize() (i int)

type ProjectWithLanguages

type ProjectWithLanguages struct {
	Project   *gitlab.Project          `json:"project,omitempty"`
	Languages *gitlab.ProjectLanguages `json:"languages,omitempty"`
}

func (ProjectWithLanguages) LanguagesToString

func (p ProjectWithLanguages) LanguagesToString() string

type RepositoryBranch

type RepositoryBranch struct {
	Repository *github.Repository `json:"repository,omitempty"`
	Branch     *github.Branch     `json:"branch,omitempty"`
}

type RepositoryFile

type RepositoryFile struct {
	Repository *github.Repository `json:"repository,omitempty"`
	Raw        string
}

type RepositoryWorkflow

type RepositoryWorkflow struct {
	Repository          *github.Repository        `json:"repository,omitempty"`
	Workflow            *github.Workflow          `json:"workflow,omitempty"`
	WorkflowRuns        *github.WorkflowRuns      `json:"workflow_runs,omitempty"`
	WorkflowFileContent *github.RepositoryContent `json:"workflow_file_content,omitempty"`
}

type Schedules

type Schedules []*gitlab.PipelineSchedule

func (Schedules) Descriptions

func (a Schedules) Descriptions() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL