mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-24 11:15:24 +01:00
19 lines
397 B
Go
19 lines
397 B
Go
package models
|
|
|
|
//Project : For /api/projects
|
|
type Project struct {
|
|
Name string `json:"project_name"`
|
|
Metadata *Metadata `json:"metadata, omitempty"`
|
|
}
|
|
|
|
//Metadata : Metadata for project
|
|
type Metadata struct {
|
|
AccessLevel string `json:"public"`
|
|
}
|
|
|
|
//ExistingProject : For /api/projects?name=***
|
|
type ExistingProject struct {
|
|
Name string `json:"name"`
|
|
ID int `json:"project_id"`
|
|
}
|