MCPcopy Create free account

hub / github.com/TimeBye/go-harbor / functions

Functions250 in github.com/TimeBye/go-harbor

MethodAccept
Accept will block until a token becomes available
pkg/rest/util/flowcontrol/throttle.go:90
MethodAccept
()
pkg/rest/util/flowcontrol/throttle.go:118
MethodAccept
()
pkg/rest/util/flowcontrol/throttle.go:142
MethodAddProjectMember
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
MethodAddProjectMetadata
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
MethodAfter
Same as time.After(d).
pkg/rest/util/clock/clock.go:56
MethodAfter
Unimplemented, will panic. TODO: make interval clock use FakeClock so this can be implemented.
pkg/rest/util/clock/clock.go:253
FunctionArtifact
(host, username, password string)
example/artifacts.go:25
MethodArtifacts
(Repository string)
pkg/project/repository.go:79
MethodC
C returns the underlying timer's channel.
pkg/rest/util/clock/clock.go:287
MethodC
C returns the channel that notifies when this timer has fired.
pkg/rest/util/clock/clock.go:308
MethodC
()
pkg/rest/util/clock/clock.go:359
MethodC
()
pkg/rest/util/clock/clock.go:367
MethodC
()
pkg/rest/util/clock/clock.go:379
MethodCheckProject
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
MethodCreateProject
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
MethodDeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TLSClientConfig.
pkg/rest/zz_generated.deepcopy.go:50
MethodDelete
(name string)
pkg/user/user.go:61
MethodDelete
(name string)
pkg/project/repository.go:69
MethodDelete
(name string)
pkg/project/project.go:55
MethodDelete
(name string)
pkg/project/artifacts.go:71
MethodDelete
Delete begins a DELETE request. Short for c.Verb("DELETE").
pkg/rest/client.go:113
MethodDeleteEntry
(id string)
pkg/rest/util/flowcontrol/backoff.go:132
MethodDeleteProject
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
MethodDeleteProjectMember
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
MethodDeleteProjectMetadata
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
MethodDeleteRepository
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
MethodDeleteRepositoryTag
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
MethodDo
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
MethodDoRaw
()
pkg/rest/request.go:54
MethodDoRaw
DoRaw executes the request but does not process the response body.
pkg/rest/request.go:555
MethodError
Error returns a textual description of 'r'.
pkg/rest/request.go:64
MethodGet
(name string)
pkg/user/user.go:41
MethodGet
(name string)
pkg/project/repository.go:47
MethodGet
(name string)
pkg/project/project.go:35
MethodGet
(name string)
pkg/project/artifacts.go:46
MethodGet
Get begins a GET request. Short for c.Verb("GET").
pkg/rest/client.go:108
MethodGet
Get the current backoff Duration
pkg/rest/util/flowcontrol/backoff.go:58
MethodGetImageDetails
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
MethodGetProjectByID
Return specific project detail information. This endpoint returns specific project information by project ID. Harbor API docs: https://github.com/vm
project.go:132
MethodGetProjectLogByID
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
MethodGetProjectMemberRole
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
MethodGetProjectMembers
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
MethodGetProjectMetadata
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
MethodGetProjectMetadataById
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
MethodGetRepositorySignature
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
MethodGetRepositoryTag
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
MethodGetRepositoryTagManifests
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
MethodGetRepositoryTop
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
MethodGetStatistics
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
MethodList
List /projects/{project_name}/repositories/{repository_name}/artifacts
artifacts.go:34
MethodList
(query *model.Query)
pkg/user/user.go:51
MethodList
(query *options.RepositoriesListOptions)
pkg/project/repository.go:26
MethodList
(query *options.RepositoriesListOptions)
pkg/project/repository.go:58
MethodList
(query *options.ProjectsListOptions)
pkg/project/project.go:45
MethodList
(query *options.ArtifactsListOptions)
pkg/project/artifacts.go:58
MethodList
()
pkg/rest/client.go:57
MethodListProject
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
MethodListRepository
ListRepository Get repositories accompany with relevant project and repo name. This endpoint let user search repositories accompanying with relevant
repositories.go:113
MethodListRepositoryTags
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
FunctionNewBackOff
(initial, max time.Duration)
pkg/rest/util/flowcontrol/backoff.go:48
FunctionNewClient
(harborClient *gorequest.SuperAgent, baseURL, username, password string)
harbor.go:44
FunctionNewClientSet
(host, username, password string)
clientset.go:23
FunctionNewForConfig
(c *rest2.Config)
pkg/client/clientset.go:37
FunctionNewProjectsV1Client
(restClient *rest2.Config)
pkg/project/project.go:64
MethodNewTicker
(d time.Duration)
pkg/rest/util/clock/clock.go:66
MethodNewTicker
Unimplemented, will panic. TODO: make interval clock use FakeClock so this can be implemented.
pkg/rest/util/clock/clock.go:265
MethodNewTimer
(d time.Duration)
pkg/rest/util/clock/clock.go:60
MethodNewTimer
Unimplemented, will panic. TODO: make interval clock use FakeClock so this can be implemented.
pkg/rest/util/clock/clock.go:259
FunctionNewTokenBucketRateLimiterWithClock
NewTokenBucketRateLimiterWithClock is identical to NewTokenBucketRateLimiter but allows an injectable clock, for testing.
pkg/rest/util/flowcontrol/throttle.go:72
MethodNow
Now returns the current time.
pkg/rest/util/clock/clock.go:46
MethodNow
Now returns f's time.
pkg/rest/util/clock/clock.go:110
MethodNow
Now returns i's time.
pkg/rest/util/clock/clock.go:241
MethodNow
()
pkg/rest/util/flowcontrol/throttle.go:63
MethodPost
()
pkg/rest/client.go:61
FunctionProject
(host, username, password string)
example/project.go:25
MethodProject
Project applies the namespace scope to a request (<resource>/[ns/<namespace>/]<name>)
pkg/rest/request.go:350
MethodPut
()
pkg/rest/client.go:65
MethodQPS
QPS returns QPS of this rate limiter
pkg/rest/util/flowcontrol/throttle.go:36
MethodQPS
()
pkg/rest/util/flowcontrol/throttle.go:98
MethodQPS
()
pkg/rest/util/flowcontrol/throttle.go:120
MethodQPS
()
pkg/rest/util/flowcontrol/throttle.go:146
FunctionRepositories
(host, username, password string)
example/repository.go:25
MethodReset
Reset calls Reset() on the underlying timer.
pkg/rest/util/clock/clock.go:297
MethodReset
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
MethodReset
Reset forces clearing of all backoff data for a given key.
pkg/rest/util/flowcontrol/backoff.go:84
MethodScanImage
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
MethodSearch
Search for projects and repositories The Search endpoint returns information about the projects and repositories offered at public status or related
harbor.go:144
MethodSetTime
Sets the time.
pkg/rest/util/clock/clock.go:124
MethodSince
Since returns time since the specified timestamp.
pkg/rest/util/clock/clock.go:51
MethodSince
Since returns time since the time in f.
pkg/rest/util/clock/clock.go:117
MethodSince
Since returns time since the time in i.
pkg/rest/util/clock/clock.go:247
MethodSleep
(time.Duration)
pkg/rest/util/clock/clock.go:38
MethodSleep
(d time.Duration)
pkg/rest/util/clock/clock.go:72
MethodSleep
(d time.Duration)
pkg/rest/util/clock/clock.go:269
MethodSleep
(d time.Duration)
pkg/rest/util/flowcontrol/throttle.go:66
MethodStop
Stop calls Stop() on the underlying timer.
pkg/rest/util/clock/clock.go:292
MethodStop
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
MethodStop
()
pkg/rest/util/clock/clock.go:360
MethodStop
()
pkg/rest/util/clock/clock.go:371
← previousnext →101–200 of 250, ranked by callers