egitlab

package module
v0.0.0-...-5247eb1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: MIT Imports: 4 Imported by: 0

README

egitlab

封装gitlab api 调用

type config struct {
	Token   string // 用于 调用gitlab api的token
	BaseUrl string // gitlab api base url
}
token: 若token所属的gitlab用户被禁用,请使用其他用户创建token,并替换token配置

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConfig

func DefaultConfig() *config

Types

type Component

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

func (*Component) Client

func (c *Component) Client() *gitlab.Client

Client 暴露gitlab api 原生 client

type Container

type Container struct {
	Config *config
	// contains filtered or unexported fields
}

func DefaultContainer

func DefaultContainer() *Container

func Load

func Load(key string) *Container

func (*Container) Build

func (c *Container) Build(options ...Option) *Component

type Option

type Option func(container *Container)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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