{"modulePath":"github.com/CTO2BPublic/passage-server","version":"v0.3.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package gitlab\n\n## Variables\n\n```go\nvar Config = config.GetConfig()\n```\n\n```go\nvar ErrUserNotFound = errors.New(\"user not found\")\n```\n\n```go\nvar Tracer = otel.Tracer(\"pkg/providers/gitlab\")\n```\n\n## Functions\n\n```go\nfunc StringPtr(s string) *string\n```\n\n## Types\n\n```go\ntype GitlabProvider struct {\n\tClient     *clientgo.Client\n\tParameters GitlabProviderParameters\n\tName       string `json:\"name\"`\n}\n```\nGitlabProvider handles GitLab access management Credentials and configurations are specified in the ProviderConfig parameters\n\n```go\nfunc NewGitlabProvider(ctx context.Context, config models.ProviderConfig) (*GitlabProvider, error)\n```\nNewGitlabProvider initializes a new GitlabProvider with credentials from ProviderConfig\n\n```go\nfunc (a *GitlabProvider) GrantAccess(ctx context.Context, request *models.AccessRequest) error\n```\nGrantAccess adds a user to a specified group based on the provider parameters\n\n```go\nfunc (a *GitlabProvider) IsAccessExpired(ctx context.Context, request *models.AccessRequest) (bool, error)\n```\nIsAccessExpired checks whether the access for the given request has expired\n\n```go\nfunc (a *GitlabProvider) ListUsersWithAccess(ctx context.Context, roleRef models.AccessRoleRef) ([]string, error)\n```\nListUsersWithAccess lists users with access to the specified role\n\n```go\nfunc (a *GitlabProvider) RevokeAccess(ctx context.Context, request *models.AccessRequest) error\n```\nRevokeAccess removes a user from a specified group based on the provider parameters\n\n```go\ntype GitlabProviderParameters struct {\n\tGroup    string                    `json:\"group\"`\n\tUsername string                    `json:\"username\"`\n\tToken    string                    `json:\"token\"`\n\tLevel    clientgo.AccessLevelValue `json:\"string\"`\n}\n```\nparameters encapsulates extracted provider details\n\n","path":"github.com/CTO2BPublic/passage-server/pkg/providers/gitlab","name":"gitlab","synopsis":"","isRedistributable":true}
