Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TimeBye/go-harbor
/ functions
Functions
250 in github.com/TimeBye/go-harbor
⨍
Functions
250
◇
Types & classes
81
Method
Accept
Accept will block until a token becomes available
pkg/rest/util/flowcontrol/throttle.go:90
Method
Accept
()
pkg/rest/util/flowcontrol/throttle.go:118
Method
Accept
()
pkg/rest/util/flowcontrol/throttle.go:142
Method
AddProjectMember
Add project role member accompany with relevant project and user. This endpoint is for user to add project role member accompany with relevant projec
project.go:279
Method
AddProjectMetadata
Add metadata for the project. This endpoint is aimed to add metadata of a project. Harbor API docs: https://github.com/vmware/harbor/blob/release-1.
project.go:197
Method
After
Same as time.After(d).
pkg/rest/util/clock/clock.go:56
Method
After
Unimplemented, will panic. TODO: make interval clock use FakeClock so this can be implemented.
pkg/rest/util/clock/clock.go:253
Function
Artifact
(host, username, password string)
example/artifacts.go:25
Method
Artifacts
(Repository string)
pkg/project/repository.go:79
Method
C
C returns the underlying timer's channel.
pkg/rest/util/clock/clock.go:287
Method
C
C returns the channel that notifies when this timer has fired.
pkg/rest/util/clock/clock.go:308
Method
C
()
pkg/rest/util/clock/clock.go:359
Method
C
()
pkg/rest/util/clock/clock.go:367
Method
C
()
pkg/rest/util/clock/clock.go:379
Method
CheckProject
CheckProject Check if the project name user provided already exists. This endpoint is used to check if the project name user provided already exist.
project.go:106
Method
CreateProject
Create a new project. This endpoint is for user to create a new project. Harbor API docs: https://github.com/vmware/harbor/blob/release-1.4.0/docs/s
project.go:119
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TLSClientConfig.
pkg/rest/zz_generated.deepcopy.go:50
Method
Delete
(name string)
pkg/user/user.go:61
Method
Delete
(name string)
pkg/project/repository.go:69
Method
Delete
(name string)
pkg/project/project.go:55
Method
Delete
(name string)
pkg/project/artifacts.go:71
Method
Delete
Delete begins a DELETE request. Short for c.Verb("DELETE").
pkg/rest/client.go:113
Method
DeleteEntry
(id string)
pkg/rest/util/flowcontrol/backoff.go:132
Method
DeleteProject
Delete project by projectID. This endpoint is aimed to delete project by project ID. Harbor API docs: https://github.com/vmware/harbor/blob/release-
project.go:158
Method
DeleteProjectMember
Delete project role members accompany with relevant project and user. This endpoint is aimed to remove project role members already added to the rele
project.go:326
Method
DeleteProjectMetadata
Delete metadata of a project This endpoint is aimed to delete metadata of a project. Harbor API docs: https://github.com/vmware/harbor/blob/release-
project.go:235
Method
DeleteRepository
Delete a repository. This endpoint let user delete a repository with name. Harbor API docs: https://github.com/vmware/harbor/blob/release-1.4.0/docs
repositories.go:127
Method
DeleteRepositoryTag
Delete a tag in a repository. This endpoint let user delete tags with repo name and tag. Harbor API docs: https://github.com/vmware/harbor/blob/rele
repositories.go:172
Method
Do
Do formats and executes the request. Returns a Result object for easy response processing. Error type: * If the request can't be constructed, or an e
pkg/rest/request.go:416
Method
DoRaw
()
pkg/rest/request.go:54
Method
DoRaw
DoRaw executes the request but does not process the response body.
pkg/rest/request.go:555
Method
Error
Error returns a textual description of 'r'.
pkg/rest/request.go:64
Method
Get
(name string)
pkg/user/user.go:41
Method
Get
(name string)
pkg/project/repository.go:47
Method
Get
(name string)
pkg/project/project.go:35
Method
Get
(name string)
pkg/project/artifacts.go:46
Method
Get
Get begins a GET request. Short for c.Verb("GET").
pkg/rest/client.go:108
Method
Get
Get the current backoff Duration
pkg/rest/util/flowcontrol/backoff.go:58
Method
GetImageDetails
Get vulnerability details of the image. Call Clair API to get the vulnerability based on the previous successful scan. Harbor API docs: https://gith
repositories.go:232
Method
GetProjectByID
Return specific project detail information. This endpoint returns specific project information by project ID. Harbor API docs: https://github.com/vm
project.go:132
Method
GetProjectLogByID
Get access logs accompany with a relevant project. This endpoint let user search access logs filtered by operations and date time ranges. Harbor API
project.go:170
Method
GetProjectMemberRole
Return role members accompany with relevant project and user. This endpoint is for user to get role members accompany with relevant project and user.
project.go:300
Method
GetProjectMembers
Return a project's relevant role members. This endpoint is for user to search a specified project’s relevant role members. Harbor API docs: https://
project.go:266
Method
GetProjectMetadata
Get project metadata This endpoint returns specified metadata of a project. Harbor API docs: https://github.com/vmware/harbor/blob/release-1.4.0/doc
project.go:210
Method
GetProjectMetadataById
Get project all metadata. This endpoint returns metadata of the project specified by project ID. Harbor API docs: https://github.com/vmware/harbor/b
project.go:184
Method
GetRepositorySignature
Get signature information of a repository. This endpoint aims to retrieve signature information of a repository, the data is from the nested notary i
repositories.go:248
Method
GetRepositoryTag
Get the tag of the repository. This endpoint aims to retrieve the tag of the repository. If deployed with Notary, the signature property of response
repositories.go:159
Method
GetRepositoryTagManifests
Get manifests of a relevant repository. This endpoint aims to retreive manifests from a relevant repository. Harbor API docs: https://github.com/vmw
repositories.go:200
Method
GetRepositoryTop
Get public repositories which are accessed most. This endpoint aims to let users see the most popular public repositories. Harbor API docs: https://
repositories.go:261
Method
GetStatistics
GetStatistics Get projects number and repositories number relevant to the user This endpoint is aimed to statistic all of the projects number and rep
harbor.go:175
Method
List
List /projects/{project_name}/repositories/{repository_name}/artifacts
artifacts.go:34
Method
List
(query *model.Query)
pkg/user/user.go:51
Method
List
(query *options.RepositoriesListOptions)
pkg/project/repository.go:26
Method
List
(query *options.RepositoriesListOptions)
pkg/project/repository.go:58
Method
List
(query *options.ProjectsListOptions)
pkg/project/project.go:45
Method
List
(query *options.ArtifactsListOptions)
pkg/project/artifacts.go:58
Method
List
()
pkg/rest/client.go:57
Method
ListProject
ListProject List projects This endpoint returns all projects created by Harbor, and can be filtered by project name. Harbor API docs: https://github
project.go:92
Method
ListRepository
ListRepository Get repositories accompany with relevant project and repo name. This endpoint let user search repositories accompanying with relevant
repositories.go:113
Method
ListRepositoryTags
Get tags of a relevant repository. This endpoint aims to retrieve tags from a relevant repository. If deployed with Notary, the signature property of
repositories.go:187
Function
NewBackOff
(initial, max time.Duration)
pkg/rest/util/flowcontrol/backoff.go:48
Function
NewClient
(harborClient *gorequest.SuperAgent, baseURL, username, password string)
harbor.go:44
Function
NewClientSet
(host, username, password string)
clientset.go:23
Function
NewForConfig
(c *rest2.Config)
pkg/client/clientset.go:37
Function
NewProjectsV1Client
(restClient *rest2.Config)
pkg/project/project.go:64
Method
NewTicker
(d time.Duration)
pkg/rest/util/clock/clock.go:66
Method
NewTicker
Unimplemented, will panic. TODO: make interval clock use FakeClock so this can be implemented.
pkg/rest/util/clock/clock.go:265
Method
NewTimer
(d time.Duration)
pkg/rest/util/clock/clock.go:60
Method
NewTimer
Unimplemented, will panic. TODO: make interval clock use FakeClock so this can be implemented.
pkg/rest/util/clock/clock.go:259
Function
NewTokenBucketRateLimiterWithClock
NewTokenBucketRateLimiterWithClock is identical to NewTokenBucketRateLimiter but allows an injectable clock, for testing.
pkg/rest/util/flowcontrol/throttle.go:72
Method
Now
Now returns the current time.
pkg/rest/util/clock/clock.go:46
Method
Now
Now returns f's time.
pkg/rest/util/clock/clock.go:110
Method
Now
Now returns i's time.
pkg/rest/util/clock/clock.go:241
Method
Now
()
pkg/rest/util/flowcontrol/throttle.go:63
Method
Post
()
pkg/rest/client.go:61
Function
Project
(host, username, password string)
example/project.go:25
Method
Project
Project applies the namespace scope to a request (<resource>/[ns/<namespace>/]<name>)
pkg/rest/request.go:350
Method
Put
()
pkg/rest/client.go:65
Method
QPS
QPS returns QPS of this rate limiter
pkg/rest/util/flowcontrol/throttle.go:36
Method
QPS
()
pkg/rest/util/flowcontrol/throttle.go:98
Method
QPS
()
pkg/rest/util/flowcontrol/throttle.go:120
Method
QPS
()
pkg/rest/util/flowcontrol/throttle.go:146
Function
Repositories
(host, username, password string)
example/repository.go:25
Method
Reset
Reset calls Reset() on the underlying timer.
pkg/rest/util/clock/clock.go:297
Method
Reset
Reset conditionally updates the firing time of the timer. If the timer has neither fired nor been stopped then this call resets the timer to the fake
pkg/rest/util/clock/clock.go:344
Method
Reset
Reset forces clearing of all backoff data for a given key.
pkg/rest/util/flowcontrol/backoff.go:84
Method
ScanImage
Scan the image. Trigger jobservice to call Clair API to scan the image identified by the repo_name and tag. Only project usernames have permission to
repositories.go:220
Method
Search
Search for projects and repositories The Search endpoint returns information about the projects and repositories offered at public status or related
harbor.go:144
Method
SetTime
Sets the time.
pkg/rest/util/clock/clock.go:124
Method
Since
Since returns time since the specified timestamp.
pkg/rest/util/clock/clock.go:51
Method
Since
Since returns time since the time in f.
pkg/rest/util/clock/clock.go:117
Method
Since
Since returns time since the time in i.
pkg/rest/util/clock/clock.go:247
Method
Sleep
(time.Duration)
pkg/rest/util/clock/clock.go:38
Method
Sleep
(d time.Duration)
pkg/rest/util/clock/clock.go:72
Method
Sleep
(d time.Duration)
pkg/rest/util/clock/clock.go:269
Method
Sleep
(d time.Duration)
pkg/rest/util/flowcontrol/throttle.go:66
Method
Stop
Stop calls Stop() on the underlying timer.
pkg/rest/util/clock/clock.go:292
Method
Stop
Stop conditionally stops the timer. If the timer has neither fired nor been stopped then this call stops the timer and returns true, otherwise this c
pkg/rest/util/clock/clock.go:315
Method
Stop
()
pkg/rest/util/clock/clock.go:360
Method
Stop
()
pkg/rest/util/clock/clock.go:371
← previous
next →
101–200 of 250, ranked by callers