Versions in this module Expand all Collapse all v1 v1.0.1 May 23, 2024 v1.0.0 May 22, 2024 Changes in this version + func NewClientSet(host, username, password string) (clientSet *client2.Clientset, err error) + type AccessLog struct + GUID string + LogID int + OpTime time.Time + Operation string + ProjectID int64 + RepoName string + RepoTag string + Username string + type Artifact struct + ScanOverview map[string]interface{} + Tag map[string]interface{} + type ArtifactOption struct + Q string + WithImmutableStatus string + WithLabel bool + WithScanOverview bool + WithSignature bool + WithTag bool + type ArtifactService struct + func (as *ArtifactService) List(project string, repositories string, opt *ArtifactOption) ([]Artifact, *gorequest.Response, []error) + type Client struct + ArtifactService *ArtifactService + Projects *ProjectsService + Repositories *RepositoriesService + UserAgent string + func NewClient(harborClient *gorequest.SuperAgent, baseURL, username, password string) *Client + func (c *Client) GetStatistics() (StatisticMap, *gorequest.Response, []error) + func (c *Client) NewRequest(method, subPath string) *gorequest.SuperAgent + func (c *Client) Search() (Search, *gorequest.Response, []error) + func (c *Client) SetBaseURL(urlStr string) error + type ComponentsOverview struct + Summary []*ComponentsOverviewEntry + Total int + type ComponentsOverviewEntry struct + Count int + Sev int + type ImgScanOverview struct + CompOverview *ComponentsOverview + CompOverviewStr string + CreationTime time.Time + DetailsKey string + Digest string + ID int64 + JobID int64 + Sev int + Status string + UpdateTime time.Time + type ListLogOptions struct + BeginTime *time.Time + EndTime *time.Time + Operations []string + Repository string + Tag string + Username string + type ListOptions struct + Page int + PageSize int + type ListProjectsOptions struct + Name string + Owner string + Public bool + type ListRepositoriesOption struct + ProjectId int64 + ProjectName string + Q string + Sort string + type ManifestResp struct + Config interface{} + Manifest interface{} + type MemberRequest struct + Roles []int + UserName string + type Project struct + CreationTime time.Time + Deleted int + Metadata map[string]string + Name string + OwnerID int + OwnerName string + ProjectID int64 + RepoCount int64 + Role int + Togglable bool + UpdateTime time.Time + type ProjectMetadata struct + CreationTime time.Time + Deleted int + ID int64 + Name string + ProjectID int64 + UpdateTime time.Time + Value string + type ProjectRequest struct + Metadata map[string]string + Name string + Public *int + type ProjectsService struct + func (s *ProjectsService) AddProjectMember(pid int64, member MemberRequest) (*gorequest.Response, []error) + func (s *ProjectsService) AddProjectMetadata(pid int64, metadata map[string]string) (*gorequest.Response, []error) + func (s *ProjectsService) CheckProject(projectName string) (*gorequest.Response, []error) + func (s *ProjectsService) CreateProject(p ProjectRequest) (*gorequest.Response, []error) + func (s *ProjectsService) DeleteProject(pid int64) (*gorequest.Response, []error) + func (s *ProjectsService) DeleteProjectMember(pid, uid int) (*gorequest.Response, []error) + func (s *ProjectsService) DeleteProjectMetadata(pid int64, metadataName string) (*gorequest.Response, []error) + func (s *ProjectsService) GetProjectByID(pid int64) (Project, *gorequest.Response, []error) + func (s *ProjectsService) GetProjectLogByID(pid int64, opt ListLogOptions) ([]AccessLog, *gorequest.Response, []error) + func (s *ProjectsService) GetProjectMemberRole(pid, uid int) (Role, *gorequest.Response, []error) + func (s *ProjectsService) GetProjectMembers(pid int64) ([]User, *gorequest.Response, []error) + func (s *ProjectsService) GetProjectMetadata(pid int64, specified string) (map[string]string, *gorequest.Response, []error) + func (s *ProjectsService) GetProjectMetadataById(pid int64) (map[string]string, *gorequest.Response, []error) + func (s *ProjectsService) ListProject(opt *ListProjectsOptions) ([]Project, *gorequest.Response, []error) + func (s *ProjectsService) UpdateProject(pid int64, p Project) (*gorequest.Response, []error) + func (s *ProjectsService) UpdateProjectMemberRole(pid, uid int, role MemberRequest) (*gorequest.Response, []error) + func (s *ProjectsService) UpdateProjectMetadata(pid int64, metadataName string) (*gorequest.Response, []error) + type RepoResp struct + CreationTime time.Time + Description string + ID int64 + Name string + ProjectID int64 + PullCount int64 + StarCount int64 + TagsCount int64 + UpdateTime time.Time + type RepositoriesService struct + func (s *RepositoriesService) DeleteRepository(repoName string) (*gorequest.Response, []error) + func (s *RepositoriesService) DeleteRepositoryTag(repoName, tag string) (*gorequest.Response, []error) + func (s *RepositoriesService) GetImageDetails(repoName, tag string) ([]VulnerabilityItem, *gorequest.Response, []error) + func (s *RepositoriesService) GetRepositorySignature(repoName string) ([]Signature, *gorequest.Response, []error) + func (s *RepositoriesService) GetRepositoryTag(repoName, tag string) (TagResp, *gorequest.Response, []error) + func (s *RepositoriesService) GetRepositoryTagManifests(repoName, tag string, version string) (ManifestResp, *gorequest.Response, []error) + func (s *RepositoriesService) GetRepositoryTop(top interface{}) ([]RepoResp, *gorequest.Response, []error) + func (s *RepositoriesService) ListRepository(opt *ListRepositoriesOption) ([]model.Repository, *gorequest.Response, []error) + func (s *RepositoriesService) ListRepositoryTags(repoName string) ([]TagResp, *gorequest.Response, []error) + func (s *RepositoriesService) ScanImage(repoName, tag string) (*gorequest.Response, []error) + func (s *RepositoriesService) UpdateRepository(repoName string, d RepositoryDescription) (*gorequest.Response, []error) + type RepositoryDescription struct + Description string + type Role struct + Name string + RoleCode string + RoleID int + RoleMask int + type Search struct + Projects Project + Repositories []SearchRepository + type SearchRepository struct + ProjectId int32 + ProjectName string + ProjectPublic bool + PullCount int32 + RepositoryName string + TagsCount int32 + type Signature struct + Hashes map[string][]byte + Tag string + type StatisticMap struct + PrivateProjectCount int + PrivateRepoCount int + PublicProjectCount int + PublicRepoCount int + TotalProjectCount int + TotalRepoCount int + type TagResp struct + ScanOverview *ImgScanOverview + Signature *Signature + type User struct + Comment string + CreationTime time.Time + Deleted int + Email string + HasAdminRole int + Password string + Realname string + ResetUUID string + Role int + RoleList []Role + Rolename string + Salt string + UpdateTime time.Time + UserID int + Username string + type VulnerabilityItem struct + Description string + Fixed string + ID string + Link string + Pkg string + Severity int64 + Version string