enum

package
v0.49.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunEnum

func RunEnum(gitlabUrl, gitlabApiToken string, minAccessLevel int)

RunEnum performs the enumeration of GitLab access rights

Types

type SelfToken

type SelfToken struct {
	ID          int       `json:"id"`
	Name        string    `json:"name"`
	Revoked     bool      `json:"revoked"`
	CreatedAt   time.Time `json:"created_at"`
	Description string    `json:"description"`
	Scopes      []string  `json:"scopes"`
	UserID      int       `json:"user_id"`
	LastUsedAt  time.Time `json:"last_used_at"`
	Active      bool      `json:"active"`
	ExpiresAt   string    `json:"expires_at"`
	LastUsedIps []string  `json:"last_used_ips"`
}

type TokenAssociations

type TokenAssociations struct {
	Groups []struct {
		ID             int         `json:"id"`
		WebURL         string      `json:"web_url"`
		Name           string      `json:"name"`
		ParentID       interface{} `json:"parent_id"`
		OrganizationID int         `json:"organization_id"`
		AccessLevels   int         `json:"access_levels"`
		Visibility     string      `json:"visibility"`
	} `json:"groups"`
	Projects []struct {
		ID                int       `json:"id"`
		Description       string    `json:"description"`
		Name              string    `json:"name"`
		NameWithNamespace string    `json:"name_with_namespace"`
		Path              string    `json:"path"`
		PathWithNamespace string    `json:"path_with_namespace"`
		CreatedAt         time.Time `json:"created_at"`
		AccessLevels      struct {
			ProjectAccessLevel int `json:"project_access_level"`
			GroupAccessLevel   int `json:"group_access_level"`
		} `json:"access_levels"`
		Visibility string `json:"visibility"`
		WebURL     string `json:"web_url"`
		Namespace  struct {
			ID        int         `json:"id"`
			Name      string      `json:"name"`
			Path      string      `json:"path"`
			Kind      string      `json:"kind"`
			FullPath  string      `json:"full_path"`
			ParentID  interface{} `json:"parent_id"`
			AvatarURL string      `json:"avatar_url"`
			WebURL    string      `json:"web_url"`
		} `json:"namespace"`
	} `json:"projects"`
}

Jump to

Keyboard shortcuts

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