Commit 6771d896 authored by Jason Murray's avatar Jason Murray

Updated Project struct

Updated per http://doc.gitlab.com/ce/api/project.html#projects
parent d56ec0d0
......@@ -34,31 +34,38 @@ type ProjectsService struct {
//
// GitLab API docs: http://doc.gitlab.com/ce/api/projects.html
type Project struct {
ID *int `json:"id"`
Description *string `json:"description"`
DefaultBranch *string `json:"default_branch"`
Public *bool `json:"public"`
VisibilityLevel *VisibilityLevel `json:"visibility_level"`
SSHURLToRepo *string `json:"ssh_url_to_repo"`
HTTPURLToRepo *string `json:"http_url_to_repo"`
WebURL *string `json:"web_url"`
TagList *[]string `json:"tag_list"`
Owner *User `json:"owner"`
Name *string `json:"name"`
NameWithNamespace *string `json:"name_with_namespace"`
Path *string `json:"path"`
PathWithNamespace *string `json:"path_with_namespace"`
IssuesEnabled *bool `json:"issues_enabled"`
MergeRequestsEnabled *bool `json:"merge_requests_enabled"`
WikiEnabled *bool `json:"wiki_enabled"`
SnippetsEnabled *bool `json:"snippets_enabled"`
CreatedAt *time.Time `json:"created_at,omitempty"`
LastActivityAt *time.Time `json:"last_activity_at,omitempty"`
CreatorID *int `json:"creator_id"`
Namespace *ProjectNamespace `json:"namespace"`
Archived *bool `json:"archived"`
AvatarURL *string `json:"avatar_url"`
Permissions *Permissions `json:"permissions"`
ID *int `json:"id"`
Description *string `json:"description"`
DefaultBranch *string `json:"default_branch"`
Public *bool `json:"public"`
VisibilityLevel *VisibilityLevel `json:"visibility_level"`
SSHURLToRepo *string `json:"ssh_url_to_repo"`
HTTPURLToRepo *string `json:"http_url_to_repo"`
WebURL *string `json:"web_url"`
TagList *[]string `json:"tag_list"`
Owner *User `json:"owner"`
Name *string `json:"name"`
NameWithNamespace *string `json:"name_with_namespace"`
Path *string `json:"path"`
PathWithNamespace *string `json:"path_with_namespace"`
IssuesEnabled *bool `json:"issues_enabled"`
OpenIssuesCount *int `json:"open_issues_count"`
MergeRequestsEnabled *bool `json:"merge_requests_enabled"`
BuildsEnabled *bool `json:"builds_enabled"`
WikiEnabled *bool `json:"wiki_enabled"`
SnippetsEnabled *bool `json:"snippets_enabled"`
CreatedAt *time.Time `json:"created_at,omitempty"`
LastActivityAt *time.Time `json:"last_activity_at,omitempty"`
CreatorID *int `json:"creator_id"`
Namespace *ProjectNamespace `json:"namespace"`
Permissions *Permissions `json:"permissions"`
Archived *bool `json:"archived"`
AvatarURL *string `json:"avatar_url"`
SharedRunnersEnabled *bool `json:"shared_runners_enabled"`
ForksCount *int `json:"forks_count"`
StarCount *int `json:"star_count"`
RunnersToken *string `json:"runners_token"`
PublicBuilds *bool `json:"public_builds"`
}
type ProjectNamespace struct {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment