Documentation ¶
Index ¶
- func AllGroupMembers(c *gl.Client, gID int) []*gl.GroupMember
- func AllGroups(c *gl.Client) []*gl.Group
- func AllLabels(c *gl.Client, pID int) []*gl.Label
- func AllProjectTags(c *gl.Client, pID int) []*gl.Tag
- func AllProjects(c *gl.Client, gID int) []*gl.Project
- func FindGroup(groups []*gl.Group, id int) *gl.Group
- func GroupMaintainer(c *gl.Client, g *gl.Group, u *gl.User) bool
- func LatestTag(c *gl.Client, p *gl.Project, cmd common.VerboseCommand) string
- func NewClient(creds *common.GitlabCredentials) *gl.Client
- func ParseCIFile(path string) (ci map[string]interface{})
- func UncheckForwardDeployment(c *gl.Client, p *gl.Project) *gl.Project
- func WriteBaseCIFile(basePath string, refs *common.BlockRefs) string
- type Projects
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllGroupMembers ¶
func AllGroupMembers(c *gl.Client, gID int) []*gl.GroupMember
returns the list of all gitlab project members for the given gitlab group ID.
func AllProjectTags ¶
returns the list of all tags for the given gitlab project ID.
func AllProjects ¶
returns the list of all gitlab projects for the given gitlab group ID.
func FindGroup ¶
for the given collection of gitlab group finds the one with the given group id and returns it.
func GroupMaintainer ¶
verifies the given gitlab user is a member of the given gitlab group and has at least maintainer permissions there.
func NewClient ¶
func NewClient(creds *common.GitlabCredentials) *gl.Client
constructs a new gitlab client using the given credentials missing credentials will be taken from the current configurationq.
func ParseCIFile ¶
attempts to read the gitlab CI file at the given path and returns an unmarshalled map of maps for it.
func UncheckForwardDeployment ¶
for the given gitlab project sets the 'CI Forward Deployment' setting to false returns the gitlab project for chaining.
Types ¶
type Projects ¶
a collection of gitlab projects.
func AllBuildingBlocks ¶
func AllBuildingBlocks(creds *common.GitlabCredentials) Projects
returns all existing building block gitlab projects for the given credentials object.
func (*Projects) MaxNameLen ¶
for this gitlab project collection returns the length of the longest name contained.