Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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"`
}
Click to show internal directories.
Click to hide internal directories.