Versions in this module Expand all Collapse all v0 v0.9.0 Oct 17, 2025 Changes in this version + var ErrUnknownType = fmt.Errorf("%s: gitlab type", errs.ErrInvalidValue) + func ClientNewContext(ctx context.Context, client Client) context.Context + type Client interface + CreateGroupAccessToken func(ctx context.Context, groupId string, name string, expiresAt time.Time, ...) (*models.TokenGroup, error) + CreateGroupDeployToken func(ctx context.Context, path string, groupId int, name string, ...) (et *models.TokenGroupDeploy, err error) + CreateGroupServiceAccountAccessToken func(ctx context.Context, group string, groupId string, userId int, name string, ...) (*models.TokenGroupServiceAccount, error) + CreatePersonalAccessToken func(ctx context.Context, username string, userId int, name string, ...) (*models.TokenPersonal, error) + CreatePipelineProjectTriggerAccessToken func(ctx context.Context, path, name string, projectId int, description string, ...) (*models.TokenPipelineProjectTrigger, error) + CreateProjectAccessToken func(ctx context.Context, projectId string, name string, expiresAt time.Time, ...) (*models.TokenProject, error) + CreateProjectDeployToken func(ctx context.Context, path string, projectId int, name string, ...) (et *models.TokenProjectDeploy, err error) + CreateUserServiceAccountAccessToken func(ctx context.Context, username string, userId int, name string, ...) (*models.TokenUserServiceAccount, error) + CurrentTokenInfo func(ctx context.Context) (*models.TokenConfig, error) + GetGroupIdByPath func(ctx context.Context, path string) (int, error) + GetProjectIdByPath func(ctx context.Context, path string) (int, error) + GetUserIdByUsername func(ctx context.Context, username string) (int, error) + GitlabClient func(ctx context.Context) *g.Client + Metadata func(ctx context.Context) (*g.Metadata, error) + RevokeGroupAccessToken func(ctx context.Context, tokenId int, groupId string) error + RevokeGroupDeployToken func(ctx context.Context, groupId, deployTokenId int) (err error) + RevokeGroupServiceAccountAccessToken func(ctx context.Context, token string) error + RevokePersonalAccessToken func(ctx context.Context, tokenId int) error + RevokePipelineProjectTriggerAccessToken func(ctx context.Context, projectId int, tokenId int) error + RevokeProjectAccessToken func(ctx context.Context, tokenId int, projectId string) error + RevokeProjectDeployToken func(ctx context.Context, projectId, deployTokenId int) (err error) + RevokeUserServiceAccountAccessToken func(ctx context.Context, token string) error + RotateCurrentToken func(ctx context.Context) (newToken *models.TokenConfig, oldToken *models.TokenConfig, err error) + Valid func(ctx context.Context) bool + func ClientFromContext(ctx context.Context) (Client, bool) + type Type string + const TypeDedicated + const TypeSaaS + const TypeSelfManaged + const TypeUnknown + func TypeParse(value string) (Type, error) + func (i Type) String() string + func (i Type) Value() string