Documentation ¶
Index ¶
Constants ¶
View Source
const ( Host = "http://core.harbor.domain:80/api/v2.0" User = "admin" Password = "Harbor12345" )
Variables ¶
View Source
var ( V2SwaggerClient = v2client.New(runtimeclient.New(u.Host, u.Path, []string{u.Scheme}), strfmt.Default) AuthInfo = runtimeclient.BasicAuth(User, Password) DefaultOpts = config.Defaults() )
Functions ¶
func BuildV2ClientWithMocks ¶
func BuildV2ClientWithMocks(m *MockClients) *v2client.Harbor
Types ¶
type MockClients ¶
type MockClients struct { Artifact mocks.MockArtifactClientService User mocks.MockUserClientService Auditlog mocks.MockAuditlogClientService Configure mocks.MockConfigureClientService GC mocks.MockGcClientService Health mocks.MockHealthClientService Icon mocks.MockIconClientService Immutable mocks.MockImmutableClientService Label mocks.MockLabelClientService Ldap mocks.MockLdapClientService Member mocks.MockMemberClientService OIDC mocks.MockOidcClientService Ping mocks.MockPingClientService Preheat mocks.MockPreheatClientService Project mocks.MockProjectClientService ProjectMetadata mocks.MockProject_metadataClientService Purge mocks.MockPurgeClientService Quota mocks.MockQuotaClientService Registry mocks.MockRegistryClientService Replication mocks.MockReplicationClientService Repository mocks.MockRepositoryClientService Retention mocks.MockRetentionClientService Robot mocks.MockRobotClientService Robotv1 mocks.MockRobotv1ClientService Scan mocks.MockScanClientService ScanAll mocks.MockScan_allClientService Scanner mocks.MockScannerClientService Search mocks.MockSearchClientService Statistic mocks.MockStatisticClientService SystemCVEAllowlist mocks.MockSystem_cve_allowlistClientService Systeminfo mocks.MockSysteminfoClientService Usergroup mocks.MockUsergroupClientService Webhook mocks.MockWebhookClientService Webhookjob mocks.MockWebhookjobClientService }
Click to show internal directories.
Click to hide internal directories.