Versions in this module Expand all Collapse all v0 v0.0.4 Apr 1, 2023 v0.0.3 Apr 1, 2023 Changes in this version + const MemberTypeGroup + const MemberTypeUser + const RemediationTypeNoViolations + const RemediationTypeNonFailing + const RootOrganization + const StageBuild + const StageContinuousMonitoring + const StageDevelop + const StageOperate + const StageProxy + const StageRelease + const StageStageRelease + func ComponentLabelApply(iq IQ, comp Component, appID, label string) error + func ComponentLabelUnapply(iq IQ, comp Component, appID, label string) error + func ComponentVersions(iq IQ, comp Component) (versions []string, err error) + func CreateApplication(iq IQ, name, id, organizationID string) (string, error) + func CreateOrganization(iq IQ, name string) (string, error) + func CreateSourceControlEntry(iq IQ, applicationID, repositoryURL, token string) error + func DeleteApplication(iq IQ, applicationID string) error + func DeleteComponentLabelForApplication(iq IQ, appID, label string) error + func DeleteComponentLabelForOrganization(iq IQ, organization, label string) error + func DeleteSourceControlEntry(iq IQ, applicationID, sourceControlID string) error + func DeleteSourceControlEntryByApp(iq IQ, applicationID string) error + func DeleteUser(iq IQ, username string) error + func GetSystemAdminID(iq IQ) (string, error) + func RevokeApplicationGroup(iq IQ, name, roleName, group string) error + func RevokeApplicationUser(iq IQ, name, roleName, user string) error + func RevokeGlobalGroup(iq IQ, roleName, group string) error + func RevokeGlobalUser(iq IQ, roleName, user string) error + func RevokeOrganizationGroup(iq IQ, name, roleName, group string) error + func RevokeOrganizationUser(iq IQ, name, roleName, user string) error + func RevokeRepositoriesGroup(iq IQ, roleName, group string) error + func RevokeRepositoriesUser(iq IQ, roleName, user string) error + func SetApplicationGroup(iq IQ, name, roleName, group string) error + func SetApplicationUser(iq IQ, name, roleName, user string) error + func SetGlobalGroup(iq IQ, roleName, group string) error + func SetGlobalUser(iq IQ, roleName, user string) error + func SetOrganizationGroup(iq IQ, name, roleName, group string) error + func SetOrganizationUser(iq IQ, name, roleName, user string) error + func SetRepositoriesGroup(iq IQ, roleName, group string) error + func SetRepositoriesUser(iq IQ, roleName, user string) error + func SetRetentionPolicies(iq IQ, orgName string, policies DataRetentionPolicies) error + func SetUser(iq IQ, user User) (err error) + func UpdateSourceControlEntry(iq IQ, applicationID, repositoryURL, token string) error + type Application struct + ApplicationTags []struct{ ... } + ContactUserName string + ID string + Name string + OrganizationID string + PublicID string + func GetAllApplications(iq IQ) ([]Application, error) + func GetApplicationByPublicID(iq IQ, applicationPublicID string) (*Application, error) + func GetApplicationsByOrganization(iq IQ, organizationName string) ([]Application, error) + type ApplicationReports struct + Stages map[Stage]DataRetentionPolicy + type ApplicationViolation struct + Application Application + PolicyViolations []PolicyViolation + func GetAllPolicyViolations(iq IQ) ([]ApplicationViolation, error) + func GetPolicyViolationsByName(iq IQ, policyNames ...string) ([]ApplicationViolation, error) + type Component struct + ComponentID *ComponentIdentifier + Hash string + MatchState string + PackageURL string + Pathnames []string + Proprietary bool + func NewComponentFromPURL(purl string) (*Component, error) + func NewComponentFromString(str string) (*Component, error) + type ComponentDetail struct + CatalogDate string + Component Component + LicenseData LicenseData + MatchState string + RelativePopularity int64 + SecurityData struct{ ... } + func GetAllComponents(iq IQ) ([]ComponentDetail, error) + func GetComponent(iq IQ, component Component) (ComponentDetail, error) + func GetComponents(iq IQ, components []Component) ([]ComponentDetail, error) + func GetComponentsByApplication(iq IQ, appPublicID string) ([]ComponentDetail, error) + type ComponentEvaluationResult struct + CatalogDate string + Component Component + LicensesData LicenseData + MatchState string + PolicyData struct{ ... } + SecurityData struct{ ... } + func (c *ComponentEvaluationResult) HighestThreatPolicy() *PolicyViolation + type ComponentIdentifier struct + Coordinates Coordinates + Format string + func (c ComponentIdentifier) String() string + type Coordinates struct + ArtifactID string + Classifier string + Extension string + GroupID string + Version string + func (c Coordinates) String() string + type DataRetentionPolicies struct + ApplicationReports ApplicationReports + SuccessMetrics DataRetentionPolicy + func GetRetentionPolicies(iq IQ, orgName string) (policies DataRetentionPolicies, err error) + type DataRetentionPolicy struct + EnablePurging bool + InheritPolicy bool + MaxAge string + type Evaluation struct + ApplicationID string + ErrorMessage interface{} + EvaluationDate string + IsError bool + Results []ComponentEvaluationResult + SubmittedDate string + func EvaluateComponents(iq IQ, components []Component, applicationID string) (*Evaluation, error) + type IQ interface + func New(host, username, password string) (IQ, error) + type IQCategory struct + Color string + ID string + Name string + type IqCliResults struct + ApplicationID string + PolicyAction string + PolicyEvaluationResult policyEvaluationResult + ReportDataURL string + ReportHTMLURL string + ReportPDFURL string + ScanID string + func ReadIqCliResultFile(filename string) (IqCliResults, error) + type IqComponentLabel struct + Color string + Description string + ID string + Label string + LabelLowercase string + OwnerID string + func CreateComponentLabelForApplication(iq IQ, appID, label, description, color string) (IqComponentLabel, error) + func CreateComponentLabelForOrganization(iq IQ, organization, label, description, color string) (IqComponentLabel, error) + func GetComponentLabelsByAppID(iq IQ, appID string) ([]IqComponentLabel, error) + func GetComponentLabelsByOrganization(iq IQ, organization string) ([]IqComponentLabel, error) + type License struct + LicenseID string + LicenseName string + type LicenseData struct + DeclaredLicenses []License + EffectiveLicenseThreats []struct{ ... } + ObservedLicenses []License + OverriddenLicenses []License + Status string + type Member struct + OwnerID string + OwnerType string + Type string + UserOrGroupName string + type MemberMapping struct + Members []Member + RoleID string + func ApplicationAuthorizations(iq IQ, name string) ([]MemberMapping, error) + func ApplicationAuthorizationsByRole(iq IQ, roleName string) ([]MemberMapping, error) + func GlobalAuthorizations(iq IQ) ([]MemberMapping, error) + func MembersByRole(iq IQ, roleName string) ([]MemberMapping, error) + func OrganizationAuthorizations(iq IQ, name string) ([]MemberMapping, error) + func OrganizationAuthorizationsByRole(iq IQ, roleName string) ([]MemberMapping, error) + func RepositoriesAuthorizations(iq IQ) ([]MemberMapping, error) + func RepositoriesAuthorizationsByRole(iq IQ, roleName string) ([]MemberMapping, error) + type Metrics struct + Aggregations []aggregation + ApplicationID string + ApplicationName string + ApplicationPublicID string + OrganizationID string + OrganizationName string + func GenerateMetrics(iq IQ, builder *MetricsRequestBuilder) ([]Metrics, error) + type MetricsRequestBuilder struct + func NewMetricsRequestBuilder() *MetricsRequestBuilder + func (b *MetricsRequestBuilder) EndingOn(v time.Time) *MetricsRequestBuilder + func (b *MetricsRequestBuilder) Monthly() *MetricsRequestBuilder + func (b *MetricsRequestBuilder) StartingOn(v time.Time) *MetricsRequestBuilder + func (b *MetricsRequestBuilder) Weekly() *MetricsRequestBuilder + func (b *MetricsRequestBuilder) WithApplication(v string) *MetricsRequestBuilder + func (b *MetricsRequestBuilder) WithOrganization(v string) *MetricsRequestBuilder + type Organization struct + ID string + Name string + Tags []IQCategory + func GetAllOrganizations(iq IQ) ([]Organization, error) + func GetOrganizationByName(iq IQ, organizationName string) (*Organization, error) + type PolicyInfo struct + ID string + Name string + OwnerID string + OwnerType string + PolicyType string + ThreatLevel int + func GetPolicies(iq IQ) ([]PolicyInfo, error) + func GetPolicyInfoByName(iq IQ, policyName string) (PolicyInfo, error) + type PolicyReportComponent struct + Violations []policyReportViolation + type PolicyViolation struct + ConstraintViolations []struct{ ... } + PolicyID string + PolicyName string + ReportURL string + StageID string + ThreatLevel int + type Remediation struct + Component Component + VersionChanges []remediationVersionChange + func GetRemediationByApp(iq IQ, component Component, stage, applicationID string) (Remediation, error) + func GetRemediationByOrg(iq IQ, component Component, stage, organizationName string) (Remediation, error) + func GetRemediationsByAppReport(iq IQ, applicationID, reportID string) (remediations []Remediation, err error) + func (r Remediation) ComponentForRemediationType(remType string) (Component, error) + type Report struct + Policy ReportPolicy + Raw ReportRaw + func GetAllReports(iq IQ) ([]Report, error) + func GetReportByAppID(iq IQ, appID, stage string) (report Report, err error) + func GetReportByAppReportID(iq IQ, appID, reportID string) (report Report, err error) + func GetReportsByOrganization(iq IQ, organizationName string) (reports []Report, err error) + type ReportDiff struct + Fixed []PolicyReportComponent + Reports []Report + Waived []PolicyReportComponent + func ReportsDiff(iq IQ, appID, report1ID, report2ID string) (ReportDiff, error) + type ReportInfo struct + ApplicationID string + EmbeddableReportHTMLURL string + EvaluationDateStr string + ReportDataURL string + ReportHTMLURL string + ReportPdfURL string + Stage string + func GetAllReportInfos(iq IQ) ([]ReportInfo, error) + func GetReportInfoByAppIDStage(iq IQ, appID, stage string) (ReportInfo, error) + func GetReportInfosByAppID(iq IQ, appID string) (infos []ReportInfo, err error) + func GetReportInfosByOrganization(iq IQ, organizationName string) (infos []ReportInfo, err error) + func (r *ReportInfo) EvaluationDate() time.Time + func (r *ReportInfo) ReportID() string + type ReportPolicy struct + Application Application + Components []PolicyReportComponent + Counts policyReportCounts + ReportInfo ReportInfo + ReportTime int64 + ReportTitle string + func GetPolicyReportByAppID(iq IQ, appID, stage string) (ReportPolicy, error) + type ReportRaw struct + Components []rawReportComponent + MatchSummary rawReportMatchSummary + ReportInfo ReportInfo + func GetRawReportByAppID(iq IQ, appID, stage string) (ReportRaw, error) + type Role struct + Description string + ID string + Name string + func RoleByName(iq IQ, name string) (Role, error) + func Roles(iq IQ) ([]Role, error) + type SearchQueryBuilder struct + func NewSearchQueryBuilder() *SearchQueryBuilder + func (b *SearchQueryBuilder) Build() string + func (b *SearchQueryBuilder) ComponentIdentifier(c ComponentIdentifier) *SearchQueryBuilder + func (b *SearchQueryBuilder) Coordinates(c Coordinates) *SearchQueryBuilder + func (b *SearchQueryBuilder) Format(v string) *SearchQueryBuilder + func (b *SearchQueryBuilder) Hash(v string) *SearchQueryBuilder + func (b *SearchQueryBuilder) PackageURL(v string) *SearchQueryBuilder + func (b *SearchQueryBuilder) Stage(v string) *SearchQueryBuilder + type SearchResult struct + ApplicationID string + ApplicationName string + ComponentIdentifier ComponentIdentifier + Hash string + PackageURL string + ReportURL string + func SearchComponents(iq IQ, query nexus.SearchQueryBuilder) ([]SearchResult, error) + type SecurityIssue struct + Reference string + Severity float64 + Source string + Status string + ThreatCategory string + URL string + type SourceControlEntry struct + ApplicationID string + ID string + RepositoryURL string + Token string + func GetAllSourceControlEntries(iq IQ) ([]SourceControlEntry, error) + func GetSourceControlEntry(iq IQ, applicationID string) (SourceControlEntry, error) + type Stage string + type User struct + Email string + FirstName string + LastName string + Password string + Username string + func GetUser(iq IQ, username string) (user User, err error)