Documentation
¶
Index ¶
- func FetchMembersOfAsset(ctx core.Context) ([]core.User, error)
- func NewHTTPController(repository core.AssetRepository, ...) *httpController
- func NewService(assetRepository core.AssetRepository, ...) *service
- type AssetDTO
- type AssetDetailsDTO
- type AssetDetailsWithSecretsDTO
- type AssetWithSecretsDTO
- type LookupResponse
- type PatchRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchMembersOfAsset ¶ added in v0.18.5
func NewHTTPController ¶ added in v0.17.1
func NewHTTPController(repository core.AssetRepository, assetVersionRepository core.AssetVersionRepository, assetService core.AssetService, dependencyVulnService core.DependencyVulnService, statisticsService core.StatisticsService, thirdPartyIntegration core.ThirdPartyIntegration) *httpController
func NewService ¶
func NewService(assetRepository core.AssetRepository, dependencyVulnRepository core.DependencyVulnRepository, dependencyVulnService core.DependencyVulnService) *service
Types ¶
type AssetDTO ¶ added in v0.17.1
type AssetDTO struct {
ID uuid.UUID `json:"id"`
Name string `json:"name"`
Avatar *string `json:"avatar,omitempty"`
Slug string `json:"slug"`
Description string `json:"description"`
ProjectID uuid.UUID `json:"projectId"`
AvailabilityRequirement models.RequirementLevel `json:"availabilityRequirement"`
IntegrityRequirement models.RequirementLevel `json:"integrityRequirement"`
ConfidentialityRequirement models.RequirementLevel `json:"confidentialityRequirement"`
ReachableFromInternet bool `json:"reachableFromInternet"`
RepositoryID *string `json:"repositoryId"`
RepositoryName *string `json:"repositoryName"`
LastSecretScan *time.Time `json:"lastSecretScan"`
LastSastScan *time.Time `json:"lastSastScan"`
LastScaScan *time.Time `json:"lastScaScan"`
LastIacScan *time.Time `json:"lastIacScan"`
LastContainerScan *time.Time `json:"lastContainerScan"`
LastDastScan *time.Time `json:"lastDastScan"`
SigningPubKey *string `json:"signingPubKey"`
EnableTicketRange bool `json:"enableTicketRange"`
CVSSAutomaticTicketThreshold *float64 `json:"cvssAutomaticTicketThreshold"`
RiskAutomaticTicketThreshold *float64 `json:"riskAutomaticTicketThreshold"`
VulnAutoReopenAfterDays *int `json:"vulnAutoReopenAfterDays"`
AssetVersions []models.AssetVersion `json:"refs"`
ExternalEntityProviderID *string `json:"externalEntityProviderId,omitempty"`
ExternalEntityID *string `json:"externalEntityId,omitempty"`
RepositoryProvider *string `json:"repositoryProvider,omitempty"`
IsPublic bool `json:"isPublic"`
}
type AssetDetailsDTO ¶ added in v0.18.5
func ToDetailsDTO ¶ added in v0.18.5
func ToDetailsDTO(asset models.Asset, members []core.User) AssetDetailsDTO
type AssetDetailsWithSecretsDTO ¶ added in v0.18.5
type AssetDetailsWithSecretsDTO struct {
AssetWithSecretsDTO
Members []core.User `json:"members"`
}
func ToDetailsDTOWithSecrets ¶ added in v0.18.5
func ToDetailsDTOWithSecrets(asset models.Asset, members []core.User) AssetDetailsWithSecretsDTO
type AssetWithSecretsDTO ¶ added in v0.18.5
type LookupResponse ¶ added in v0.17.1
type PatchRequest ¶ added in v0.17.1
type PatchRequest struct {
Name *string `json:"name"`
Description *string `json:"description"`
CVSSAutomaticTicketThreshold *float64 `json:"cvssAutomaticTicketThreshold"`
RiskAutomaticTicketThreshold *float64 `json:"riskAutomaticTicketThreshold"`
EnableTicketRange bool `json:"enableTicketRange"`
CentralDependencyVulnManagement *bool `json:"centralDependencyVulnManagement"`
ReachableFromInternet *bool `json:"reachableFromInternet"`
ConfidentialityRequirement *models.RequirementLevel `json:"confidentialityRequirement"`
IntegrityRequirement *models.RequirementLevel `json:"integrityRequirement"`
AvailabilityRequirement *models.RequirementLevel `json:"availabilityRequirement"`
RepositoryID *string `json:"repositoryId"`
RepositoryName *string `json:"repositoryName"`
ConfigFiles *map[string]any `json:"configFiles"`
VulnAutoReopenAfterDays *int `json:"vulnAutoReopenAfterDays"`
WebhookSecret *string `json:"webhookSecret"`
BadgeSecret *string `json:"badgeSecret"`
RepositoryProvider *string `json:"repositoryProvider" validate:"omitempty,oneof=github gitlab"` // either null or github or gitlab, etc.
IsPublic *bool `json:"isPublic"`
}
Click to show internal directories.
Click to hide internal directories.