gitlab

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2021 License: MIT, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client gitlab client struct

func NewClient

func NewClient(ctx *context.Context) (*Client, error)

NewClient create gitlab client

func (Client) GetGroup

func (c Client) GetGroup(groupID int) (*gitlab.Group, error)

func (Client) GetGrpVariables

func (c Client) GetGrpVariables(groupID int) ([]*gitlab.GroupVariable, error)

func (Client) GetPrjVariables

func (c Client) GetPrjVariables(projectID string) ([]*gitlab.ProjectVariable, error)

func (Client) GetProject

func (c Client) GetProject(projectID string) (*gitlab.Project, error)

func (Client) ListGroupProjects

func (c Client) ListGroupProjects(groupID int) ([]*gitlab.Project, error)

func (Client) ListSubgroups

func (c Client) ListSubgroups(groupID int) ([]*gitlab.Group, error)

func (Client) SearchGroup

func (c Client) SearchGroup(groupname string) ([]*gitlab.Group, error)

type EnvVariable

type EnvVariable interface {
	String() string
}

type IClient

type IClient interface {
	SearchGroup(groupname string) ([]*gitlab.Group, error)
	ListGroupProjects(groupID int) ([]*gitlab.Project, error)
	ListSubgroups(groupID int) ([]*gitlab.Group, error)
	GetPrjVariables(projectID string) ([]*gitlab.ProjectVariable, error)
	GetGrpVariables(groupID int) ([]*gitlab.GroupVariable, error)
	GetProject(projectID string) (*gitlab.Project, error)
	GetGroup(groupID int) (*gitlab.Group, error)
}

Jump to

Keyboard shortcuts

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