projects

package
v1.0.25 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BranchesListCmd added in v1.0.25

func BranchesListCmd() error

func Edit added in v1.0.10

func Edit() error

func GetRawFile added in v1.0.1

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

func List

func List() error

func ListMergeRequests added in v1.0.1

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

func ListMergeRequestsByAssigneeID added in v1.0.17

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 added in v1.0.2

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 added in v1.0.18

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 added in v1.0.1

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 added in v1.0.1

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 ListWithLanguages added in v1.0.22

func ListWithLanguages() error

func MergeRequestsListCmd added in v1.0.1

func MergeRequestsListCmd() error

func NewBranchesCmd added in v1.0.15

func NewBranchesCmd() *cobra.Command

func NewBranchesListCmd added in v1.0.25

func NewBranchesListCmd() *cobra.Command

func NewCmd

func NewCmd() *cobra.Command

func NewEditCmd added in v1.0.10

func NewEditCmd() *cobra.Command

func NewFilesCmd

func NewFilesCmd() *cobra.Command

func NewLanguagesCmd added in v1.0.22

func NewLanguagesCmd() *cobra.Command

func NewListCmd

func NewListCmd() *cobra.Command

func NewMergeRequestListCmd added in v1.0.1

func NewMergeRequestListCmd() *cobra.Command

func NewMergeRequestsCmd added in v1.0.1

func NewMergeRequestsCmd() *cobra.Command

func NewPipelineCleanupSchedulesCmd

func NewPipelineCleanupSchedulesCmd() *cobra.Command

func NewPipelineSchedulesCmd

func NewPipelineSchedulesCmd() *cobra.Command

func NewPipelinesCmd

func NewPipelinesCmd() *cobra.Command

func NewProtectRepositoryBranchesCmd added in v1.0.15

func NewProtectRepositoryBranchesCmd() *cobra.Command

func NewProtectedBranchesCmd added in v1.0.15

func NewProtectedBranchesCmd() *cobra.Command

func NewProtectedBranchesListCmd added in v1.0.15

func NewProtectedBranchesListCmd() *cobra.Command

func NewRegistryCmd added in v1.0.16

func NewRegistryCmd() *cobra.Command

func NewRegistryListCmd added in v1.0.16

func NewRegistryListCmd() *cobra.Command

func NewSearchCmd

func NewSearchCmd() *cobra.Command

func ProtectRepositoryBranchesCmd added in v1.0.15

func ProtectRepositoryBranchesCmd() error

func ProtectedBranchesListCmd added in v1.0.15

func ProtectedBranchesListCmd() error

func RegistryListCmd added in v1.0.16

func RegistryListCmd() error
func Search() error

func SearchRegexp

func SearchRegexp() error

Types

type ProjectBranch added in v1.0.25

type ProjectBranch struct {
	Project  *gitlab.Project  `json:"project,omitempty"`
	Branches []*gitlab.Branch `json:"branches,omitempty"`
}

type ProjectFile added in v1.0.3

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

type ProjectLanguage added in v1.0.24

type ProjectLanguage struct {
	Name    string
	Percent float32
}

func (ProjectLanguage) String added in v1.0.24

func (pl ProjectLanguage) String() string

type ProjectLintResult added in v1.0.14

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 added in v1.0.15

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

func (*ProjectProtectedBranch) BranchesNames added in v1.0.15

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

func (*ProjectProtectedBranch) Search added in v1.0.15

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

type ProjectRegistryRepository added in v1.0.16

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

func (*ProjectRegistryRepository) TagsCount added in v1.0.16

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

func (*ProjectRegistryRepository) TotalSize added in v1.0.16

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

type ProjectWithLanguages added in v1.0.22

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

func (ProjectWithLanguages) LanguagesToString added in v1.0.24

func (p ProjectWithLanguages) LanguagesToString() string

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