Documentation ¶
Index ¶
- Constants
- Variables
- func Check(rt *goja.Runtime, err error)
- func Checkf(rt *goja.Runtime, err error, format string, a ...interface{})
- func ExportTo(rt *goja.Runtime, target interface{}, args ...goja.Value)
- func IDFromLocation(rt *goja.Runtime, loc string) int64
- func NameFromLocation(loc string) string
- func Throwf(rt *goja.Runtime, format string, a ...interface{})
- type ContentStore
- type GetCatalogQuery
- type Harbor
- func (h *Harbor) CreateArtifactTag(projectName, repositoryName, reference, newTag string) string
- func (h *Harbor) CreateProject(body goja.Value) string
- func (h *Harbor) CreateProjectMember(projectName string, userID int64, roleIDs ...int64) string
- func (h *Harbor) CreateRegistry(r models.Registry) int64
- func (h *Harbor) CreateReplicationPolicy(policy models.ReplicationPolicy) int64
- func (h *Harbor) CreateRobot(robot models.RobotCreate) int64
- func (h *Harbor) CreateScanner(registration models.ScannerRegistrationReq) string
- func (h *Harbor) CreateUser(username string, passwords ...string) int64
- func (h *Harbor) DeleteAllProjects(excludeProjects []string)
- func (h *Harbor) DeleteArtifact(projectName, repositoryName, reference string)
- func (h *Harbor) DeleteProject(projectName string, args ...goja.Value)
- func (h *Harbor) DeleteRegistry(id int64)
- func (h *Harbor) DeleteReplicationPolicy(id int64)
- func (h *Harbor) DeleteRepository(projectName, repositoryName string)
- func (h *Harbor) DeleteUser(userid int64)
- func (h *Harbor) Free()
- func (h *Harbor) GetArtifact(projectName, repositoryName, reference string) *models.Artifact
- func (h *Harbor) GetCatalog(args ...goja.Value) map[string]interface{}
- func (h *Harbor) GetGC(id int64) *models.GCHistory
- func (h *Harbor) GetManifest(ref string) map[string]interface{}
- func (h *Harbor) GetProject(projectName string) *models.Project
- func (h *Harbor) GetReplicationExecution(executionID int64) *models.ReplicationExecution
- func (h *Harbor) GetRepository(projectName, repositoryName string) *models.Repository
- func (h *Harbor) GetScanAllMetrics() *models.Stats
- func (h *Harbor) Initialize(c goja.ConstructorCall)
- func (h *Harbor) ListArtifactTags(projectName, repositoryName, digestOrTag string, args ...goja.Value) []*models.Tag
- func (h *Harbor) ListArtifacts(projectName, repositoryName string, args ...goja.Value) ListArtifactsResult
- func (h *Harbor) ListAuditLogs(args ...goja.Value) ListAuditLogsResult
- func (h *Harbor) ListAuditLogsOfProject(projectName string, args ...goja.Value) ListAuditLogsOfProjectResult
- func (h *Harbor) ListProjectMembers(projectName string, args ...goja.Value) ListProjectMembersResult
- func (h *Harbor) ListProjects(args ...goja.Value) ListProjectsResult
- func (h *Harbor) ListQuotas(args ...goja.Value) ListQuotasResult
- func (h *Harbor) ListRegistries(args ...goja.Value) ListRegistriesResult
- func (h *Harbor) ListReplicationPolicies(args ...goja.Value) ListReplicationPoliciesResult
- func (h *Harbor) ListRepositories(projectName string, args ...goja.Value) ListRepositoriesResult
- func (h *Harbor) ListUsers(args ...goja.Value) ListUsersResult
- func (h *Harbor) PrepareArtifactTags(option PrepareArtifactTagsOption) string
- func (h *Harbor) PrepareArtifacts(option PrepareArtifactsOption)
- func (h *Harbor) Pull(ref string, args ...goja.Value)
- func (h *Harbor) Push(option PushOption, args ...goja.Value) string
- func (h *Harbor) SearchUsers(args ...goja.Value) SearchUsersResult
- func (h *Harbor) SetScannerAsDefault(registrationID string)
- func (h *Harbor) StartGC() int64
- func (h *Harbor) StartGCAndWait()
- func (h *Harbor) StartReplication(policyID int64) int64
- func (h *Harbor) StartScanAll()
- type ListArtifactsResult
- type ListAuditLogsOfProjectResult
- type ListAuditLogsResult
- type ListProjectMembersResult
- type ListProjectsResult
- type ListQuotasResult
- type ListRegistriesResult
- type ListReplicationPoliciesResult
- type ListRepositoriesResult
- type ListUsersResult
- type Module
- type Option
- type PrepareArtifactTagsOption
- type PrepareArtifactsOption
- type PullOption
- type PushOption
- type RootModule
- type SearchUsersResult
Constants ¶
View Source
const DefaultPoolSise = 300
Variables ¶
View Source
var DefaultRootPath = filepath.Join(os.TempDir(), "harbor")
Functions ¶
func NameFromLocation ¶
Types ¶
type ContentStore ¶
func (*ContentStore) Free ¶
func (s *ContentStore) Free()
func (*ContentStore) Generate ¶
func (s *ContentStore) Generate(humanSize goja.Value) (*ocispec.Descriptor, error)
func (*ContentStore) GenerateMany ¶
func (s *ContentStore) GenerateMany(humanSize goja.Value, count int) ([]*ocispec.Descriptor, error)
type GetCatalogQuery ¶
type Harbor ¶
type Harbor struct {
// contains filtered or unexported fields
}
func (*Harbor) CreateArtifactTag ¶
func (*Harbor) CreateProjectMember ¶
func (*Harbor) CreateReplicationPolicy ¶
func (h *Harbor) CreateReplicationPolicy(policy models.ReplicationPolicy) int64
func (*Harbor) CreateRobot ¶
func (h *Harbor) CreateRobot(robot models.RobotCreate) int64
func (*Harbor) CreateScanner ¶
func (h *Harbor) CreateScanner(registration models.ScannerRegistrationReq) string
func (*Harbor) DeleteAllProjects ¶
func (*Harbor) DeleteArtifact ¶
func (*Harbor) DeleteProject ¶
func (*Harbor) DeleteRegistry ¶
func (*Harbor) DeleteReplicationPolicy ¶
func (*Harbor) DeleteRepository ¶
func (*Harbor) DeleteUser ¶
func (*Harbor) GetArtifact ¶
func (*Harbor) GetManifest ¶
func (*Harbor) GetReplicationExecution ¶
func (h *Harbor) GetReplicationExecution(executionID int64) *models.ReplicationExecution
func (*Harbor) GetRepository ¶
func (h *Harbor) GetRepository(projectName, repositoryName string) *models.Repository
func (*Harbor) GetScanAllMetrics ¶
func (*Harbor) Initialize ¶
func (h *Harbor) Initialize(c goja.ConstructorCall)
func (*Harbor) ListArtifactTags ¶
func (*Harbor) ListArtifacts ¶
func (h *Harbor) ListArtifacts(projectName, repositoryName string, args ...goja.Value) ListArtifactsResult
func (*Harbor) ListAuditLogs ¶
func (h *Harbor) ListAuditLogs(args ...goja.Value) ListAuditLogsResult
func (*Harbor) ListAuditLogsOfProject ¶
func (h *Harbor) ListAuditLogsOfProject(projectName string, args ...goja.Value) ListAuditLogsOfProjectResult
func (*Harbor) ListProjectMembers ¶
func (h *Harbor) ListProjectMembers(projectName string, args ...goja.Value) ListProjectMembersResult
func (*Harbor) ListProjects ¶
func (h *Harbor) ListProjects(args ...goja.Value) ListProjectsResult
func (*Harbor) ListQuotas ¶
func (h *Harbor) ListQuotas(args ...goja.Value) ListQuotasResult
func (*Harbor) ListRegistries ¶
func (h *Harbor) ListRegistries(args ...goja.Value) ListRegistriesResult
func (*Harbor) ListReplicationPolicies ¶
func (h *Harbor) ListReplicationPolicies(args ...goja.Value) ListReplicationPoliciesResult
func (*Harbor) ListRepositories ¶
func (h *Harbor) ListRepositories(projectName string, args ...goja.Value) ListRepositoriesResult
func (*Harbor) PrepareArtifactTags ¶
func (h *Harbor) PrepareArtifactTags(option PrepareArtifactTagsOption) string
func (*Harbor) PrepareArtifacts ¶
func (h *Harbor) PrepareArtifacts(option PrepareArtifactsOption)
func (*Harbor) SearchUsers ¶
func (h *Harbor) SearchUsers(args ...goja.Value) SearchUsersResult
func (*Harbor) SetScannerAsDefault ¶
func (*Harbor) StartGCAndWait ¶
func (h *Harbor) StartGCAndWait()
func (*Harbor) StartReplication ¶
func (*Harbor) StartScanAll ¶
func (h *Harbor) StartScanAll()
type ListArtifactsResult ¶
type ListAuditLogsResult ¶
type ListProjectMembersResult ¶
type ListProjectMembersResult struct { ProjectMembers []*models.ProjectMemberEntity `js:"projectMembers"` Total int64 `js:"total"` }
type ListProjectsResult ¶
type ListQuotasResult ¶
type ListRegistriesResult ¶
type ListReplicationPoliciesResult ¶
type ListReplicationPoliciesResult struct { Policies []*models.ReplicationPolicy `js:"policies"` Total int64 `js:"total"` }
type ListRepositoriesResult ¶
type ListRepositoriesResult struct { Repositories []*models.Repository `js:"repositories"` Total int64 `js:"total"` }
type ListUsersResult ¶
type PrepareArtifactsOption ¶
type PullOption ¶
type PullOption struct {
Discard bool
}
type PushOption ¶
type PushOption struct { Ref string Store *ContentStore Blobs []ocispec.Descriptor }
type RootModule ¶
type RootModule struct{}
func (*RootModule) NewModuleInstance ¶
func (*RootModule) NewModuleInstance(vu modules.VU) modules.Instance
type SearchUsersResult ¶
type SearchUsersResult struct { Users []*models.UserSearchRespItem `js:"users"` Total int64 `js:"total"` }
Click to show internal directories.
Click to hide internal directories.