Documentation ¶
Index ¶
- Constants
- func NewBinaryManagerBuildsResource() resource.Resource
- func NewBinaryManagerReleaseBundlesV2Resource() resource.Resource
- func NewBinaryManagerReposResource() resource.Resource
- func NewCustomIssueResource() resource.Resource
- func NewIgnoreRuleResource() resource.Resource
- func NewLicensePolicyResource() resource.Resource
- func NewLicensesReportResource() resource.Resource
- func NewOperationalRiskPolicyResource() resource.Resource
- func NewOperationalRisksReportResource() resource.Resource
- func NewRepositoryConfigResource() resource.Resource
- func NewSecurityPolicyResource() resource.Resource
- func NewSettingsResource() resource.Resource
- func NewViolationsReportResource() resource.Resource
- func NewVulnerabilitiesReportResource() resource.Resource
- func NewWatchResource() resource.Resource
- func NewWebhookResource() resource.Resource
- func NewWorkersCountResource() resource.Resource
- type AllOtherArtifactsAPIModel
- type BasicSettingsRequestAPIModel
- type BasicSettingsResponseAPIModel
- type BinaryManagerBuildsAPIModel
- type BinaryManagerBuildsResource
- func (r *BinaryManagerBuildsResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *BinaryManagerBuildsResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *BinaryManagerBuildsResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *BinaryManagerBuildsResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *BinaryManagerBuildsResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *BinaryManagerBuildsResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *BinaryManagerBuildsResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *BinaryManagerBuildsResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type BinaryManagerBuildsResourceModel
- type BinaryManagerReleaseBundlesV2APIModel
- type BinaryManagerReleaseBundlesV2Resource
- func (r *BinaryManagerReleaseBundlesV2Resource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *BinaryManagerReleaseBundlesV2Resource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *BinaryManagerReleaseBundlesV2Resource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *BinaryManagerReleaseBundlesV2Resource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *BinaryManagerReleaseBundlesV2Resource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *BinaryManagerReleaseBundlesV2Resource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *BinaryManagerReleaseBundlesV2Resource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *BinaryManagerReleaseBundlesV2Resource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type BinaryManagerReleaseBundlesV2ResourceModel
- type BinaryManagerRepoAPIModel
- type BinaryManagerReposAPIModel
- type BinaryManagerReposResource
- func (r *BinaryManagerReposResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *BinaryManagerReposResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *BinaryManagerReposResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *BinaryManagerReposResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *BinaryManagerReposResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *BinaryManagerReposResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *BinaryManagerReposResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *BinaryManagerReposResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type BinaryManagerReposResourceModel
- type BlockDownloadSettingsAPIModel
- type BuildsAPIModel
- type CVEAPIModel
- type CVSSScoreAPIModel
- type ComponentAPIModel
- type CustomIssueAPIModel
- type CustomIssueResource
- func (r *CustomIssueResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *CustomIssueResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *CustomIssueResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *CustomIssueResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *CustomIssueResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *CustomIssueResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *CustomIssueResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *CustomIssueResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type CustomIssueResourceModel
- type DbSyncDailyUpdatesTimeAPIModel
- type DbSyncDailyUpdatesTimeErrorAPIModel
- type ExposuresAPIModel
- type FiltersAPIModel
- type IgnoreFilterNameVersionAPIModel
- type IgnoreFilterNameVersionPathAPIModel
- type IgnoreFilterNameVersionProjectAPIModel
- type IgnoreFiltersAPIModel
- type IgnoreRuleAPIModel
- type IgnoreRuleResource
- func (r *IgnoreRuleResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *IgnoreRuleResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *IgnoreRuleResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *IgnoreRuleResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *IgnoreRuleResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *IgnoreRuleResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *IgnoreRuleResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *IgnoreRuleResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type IgnoreRuleResourceModel
- type IsRFC3339TimeValidator
- type LicenseFilterAPIModel
- type LicensePolicyResource
- func (r *LicensePolicyResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *LicensePolicyResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *LicensePolicyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *LicensePolicyResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *LicensePolicyResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *LicensePolicyResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *LicensePolicyResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *LicensePolicyResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type LicensesReportResource
- func (r *LicensesReportResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *LicensesReportResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *LicensesReportResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *LicensesReportResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *LicensesReportResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *LicensesReportResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *LicensesReportResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type OperationalRiskCriteriaAPIModel
- type OperationalRiskPolicyResource
- func (r *OperationalRiskPolicyResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *OperationalRiskPolicyResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *OperationalRiskPolicyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *OperationalRiskPolicyResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *OperationalRiskPolicyResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *OperationalRiskPolicyResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *OperationalRiskPolicyResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *OperationalRiskPolicyResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type OperationalRisksReportResource
- func (r *OperationalRisksReportResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *OperationalRisksReportResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *OperationalRisksReportResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *OperationalRisksReportResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *OperationalRisksReportResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *OperationalRisksReportResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *OperationalRisksReportResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type PathsConfigurationAPIModel
- type PatternAPIModel
- type PolicyAPIModel
- type PolicyCVSSRangeAPIModel
- type PolicyError
- type PolicyExposuresAPIModel
- type PolicyResource
- func (r *PolicyResource) Create(ctx context.Context, ...)
- func (r *PolicyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *PolicyResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *PolicyResource) Read(ctx context.Context, ...)
- func (r *PolicyResource) Update(ctx context.Context, ...)
- type PolicyResourceModel
- type PolicyRuleAPIModel
- type PolicyRuleActionsAPIModel
- type PolicyRuleCriteriaAPIModel
- type ProjectsAPIModel
- type ReleaseBundlesAPIModel
- type RepoConfigResource
- func (r *RepoConfigResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *RepoConfigResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *RepoConfigResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *RepoConfigResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *RepoConfigResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *RepoConfigResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *RepoConfigResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *RepoConfigResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- func (r *RepoConfigResource) UpgradeState(ctx context.Context) map[int64]resource.StateUpgrader
- func (r RepoConfigResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, ...)
- type RepoConfigResourceModel
- type RepoConfigurationAPIModel
- type ReportAPIModel
- type ReportResource
- func (r *ReportResource) Create(ctx context.Context, reportType string, ...)
- func (r *ReportResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ReportResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ReportResource) Update(ctx context.Context, reportType string, ...)
- type ReportResourceModel
- type RepositoryAPIModel
- type RepositoryConfigurationAPIModel
- type ResourcesAPIModel
- type SecurityFilterAPIModel
- type SecurityPolicyResource
- func (r *SecurityPolicyResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *SecurityPolicyResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *SecurityPolicyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *SecurityPolicyResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *SecurityPolicyResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *SecurityPolicyResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *SecurityPolicyResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *SecurityPolicyResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- func (r SecurityPolicyResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, ...)
- type SettingsResource
- func (r *SettingsResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *SettingsResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *SettingsResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *SettingsResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *SettingsResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *SettingsResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *SettingsResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *SettingsResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type SettingsResourceModel
- type SourceAPIModel
- type StartAndEndDateAPIModel
- type ViolationsReportResource
- func (r *ViolationsReportResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *ViolationsReportResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ViolationsReportResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ViolationsReportResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *ViolationsReportResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ViolationsReportResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ViolationsReportResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type VulnerabilitiesReportResource
- func (r *VulnerabilitiesReportResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *VulnerabilitiesReportResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *VulnerabilitiesReportResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *VulnerabilitiesReportResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *VulnerabilitiesReportResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *VulnerabilitiesReportResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *VulnerabilitiesReportResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type VulnerableRangeAPIModel
- type WatchAPIModel
- type WatchAssignedPolicyAPIModel
- type WatchFilterAPIModel
- type WatchFilterAntValueAPIModel
- type WatchFilterKvValueAPIModel
- type WatchGeneralDataAPIModel
- type WatchProjectResourceAPIModel
- type WatchProjectResourcesAPIModel
- type WatchResource
- func (r *WatchResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *WatchResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *WatchResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *WatchResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *WatchResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *WatchResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *WatchResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *WatchResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- func (r WatchResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, ...)
- type WatchResourceModel
- type WebhookAPIModel
- type WebhookResource
- func (r *WebhookResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *WebhookResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *WebhookResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *WebhookResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *WebhookResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *WebhookResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *WebhookResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *WebhookResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type WebhookResourceModel
- type WorkersCountAPIModel
- type WorkersCountNewContentAPIModel
- type WorkersCountNewExistingContentAPIModel
- type WorkersCountResource
- func (r *WorkersCountResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *WorkersCountResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *WorkersCountResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *WorkersCountResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *WorkersCountResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *WorkersCountResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *WorkersCountResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *WorkersCountResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- func (r *WorkersCountResource) UpgradeState(ctx context.Context) map[int64]resource.StateUpgrader
- type WorkersCountResourceModelV0
- type WorkersCountResourceModelV1
Constants ¶
const ( PoliciesEndpoint = "xray/api/v2/policies" PolicyEndpoint = "xray/api/v2/policies/{name}" )
const ( ReportsEndpoint = "xray/api/v1/reports/{reportType}" ReportEndpoint = "xray/api/v1/reports/{reportId}" )
const ( CustomIssuesEndpoint = "xray/api/v1/events" CustomIssueEndpoint = "xray/api/v1/events/{id}" CustomIssueEndpointV2 = "xray/api/v2/events/{id}" )
const ( IgnoreRulesEndpoint = "xray/api/v1/ignore_rules" IgnoreRuleEndpoint = "xray/api/v1/ignore_rules/{id}" )
const ( DBSyncEndPoint = "xray/api/v1/configuration/dbsync/time" BasicSettingsUpdateEndpoint = "artifactory/api/xrayRepo/updateXrayBasicSettings" )
const ( WatchesEndpoint = "xray/api/v2/watches" WatchEndpoint = "xray/api/v2/watches/{name}" )
const ( WebhooksEndpoint = "xray/api/v1/webhooks" WebhookEndpoint = "xray/api/v1/webhooks/{name}" )
const BinaryManagerBuildsEndpoint = "xray/api/v1/binMgr/{id}/builds"
const BinaryManagerReleaseBundleV2Endpoint = "xray/api/v1/binMgr/{id}/release_bundle_v2"
const BinaryManagerReposEndpoint = "xray/api/v1/binMgr/{id}/repos"
const WorkersCountEndpoint = "xray/api/v1/configuration/workersCount"
Variables ¶
This section is empty.
Functions ¶
func NewCustomIssueResource ¶
func NewIgnoreRuleResource ¶
func NewSettingsResource ¶
func NewWatchResource ¶
func NewWebhookResource ¶
func NewWorkersCountResource ¶
Types ¶
type BasicSettingsRequestAPIModel ¶
type BasicSettingsRequestAPIModel struct { Enabled bool `json:"xrayEnabled"` AllowBlocked bool `json:"allowBlockedArtifactsDownload"` BlockUnscannedTimeout int64 `json:"blockUnscannedTimeoutSeconds"` BlockUnfinishedScansTimeout int64 `json:"blockUnfinishedScansTimeoutSeconds"` }
the API doc is wrong and schemas for request and response are not identical!
type BinaryManagerBuildsResource ¶
type BinaryManagerBuildsResource struct { ProviderData util.ProviderMetadata TypeName string }
func (*BinaryManagerBuildsResource) Configure ¶
func (r *BinaryManagerBuildsResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*BinaryManagerBuildsResource) Create ¶
func (r *BinaryManagerBuildsResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*BinaryManagerBuildsResource) Delete ¶
func (r *BinaryManagerBuildsResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*BinaryManagerBuildsResource) ImportState ¶
func (r *BinaryManagerBuildsResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*BinaryManagerBuildsResource) Metadata ¶
func (r *BinaryManagerBuildsResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*BinaryManagerBuildsResource) Read ¶
func (r *BinaryManagerBuildsResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*BinaryManagerBuildsResource) Schema ¶
func (r *BinaryManagerBuildsResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*BinaryManagerBuildsResource) Update ¶
func (r *BinaryManagerBuildsResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type BinaryManagerReleaseBundlesV2Resource ¶
type BinaryManagerReleaseBundlesV2Resource struct { ProviderData util.ProviderMetadata TypeName string }
func (*BinaryManagerReleaseBundlesV2Resource) Configure ¶
func (r *BinaryManagerReleaseBundlesV2Resource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*BinaryManagerReleaseBundlesV2Resource) Create ¶
func (r *BinaryManagerReleaseBundlesV2Resource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*BinaryManagerReleaseBundlesV2Resource) Delete ¶
func (r *BinaryManagerReleaseBundlesV2Resource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*BinaryManagerReleaseBundlesV2Resource) ImportState ¶
func (r *BinaryManagerReleaseBundlesV2Resource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*BinaryManagerReleaseBundlesV2Resource) Metadata ¶
func (r *BinaryManagerReleaseBundlesV2Resource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*BinaryManagerReleaseBundlesV2Resource) Read ¶
func (r *BinaryManagerReleaseBundlesV2Resource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*BinaryManagerReleaseBundlesV2Resource) Schema ¶
func (r *BinaryManagerReleaseBundlesV2Resource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*BinaryManagerReleaseBundlesV2Resource) Update ¶
func (r *BinaryManagerReleaseBundlesV2Resource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type BinaryManagerReposAPIModel ¶
type BinaryManagerReposAPIModel struct { BinManagerID string `json:"bin_mgr_id"` IndexedRepos []BinaryManagerRepoAPIModel `json:"indexed_repos"` NonIndexedRepos []BinaryManagerRepoAPIModel `json:"non_indexed_repos"` }
type BinaryManagerReposResource ¶
type BinaryManagerReposResource struct { ProviderData util.ProviderMetadata TypeName string }
func (*BinaryManagerReposResource) Configure ¶
func (r *BinaryManagerReposResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*BinaryManagerReposResource) Create ¶
func (r *BinaryManagerReposResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*BinaryManagerReposResource) Delete ¶
func (r *BinaryManagerReposResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*BinaryManagerReposResource) ImportState ¶
func (r *BinaryManagerReposResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*BinaryManagerReposResource) Metadata ¶
func (r *BinaryManagerReposResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*BinaryManagerReposResource) Read ¶
func (r *BinaryManagerReposResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*BinaryManagerReposResource) Schema ¶
func (r *BinaryManagerReposResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*BinaryManagerReposResource) Update ¶
func (r *BinaryManagerReposResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type BuildsAPIModel ¶
type CVEAPIModel ¶
type CVSSScoreAPIModel ¶
type ComponentAPIModel ¶
type ComponentAPIModel struct { ID string `json:"id"` VulnerableVersions []string `json:"vulnerable_versions"` FixedVersions []string `json:"fixed_versions"` VulnerableRanges []VulnerableRangeAPIModel `json:"vulnerable_ranges"` }
type CustomIssueAPIModel ¶
type CustomIssueAPIModel struct { ID string `json:"id"` Description string `json:"description"` Summary string `json:"summary"` Type string `json:"type"` Provider string `json:"provider"` PackageType string `json:"package_type"` Severity string `json:"severity"` Components []ComponentAPIModel `json:"components"` CVEs []CVEAPIModel `json:"cves"` Sources []SourceAPIModel `json:"sources"` }
type CustomIssueResource ¶
type CustomIssueResource struct { ProviderData util.ProviderMetadata TypeName string }
func (*CustomIssueResource) Configure ¶
func (r *CustomIssueResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*CustomIssueResource) Create ¶
func (r *CustomIssueResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*CustomIssueResource) Delete ¶
func (r *CustomIssueResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*CustomIssueResource) ImportState ¶
func (r *CustomIssueResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*CustomIssueResource) Metadata ¶
func (r *CustomIssueResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*CustomIssueResource) Read ¶
func (r *CustomIssueResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*CustomIssueResource) Schema ¶
func (r *CustomIssueResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*CustomIssueResource) Update ¶
func (r *CustomIssueResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type CustomIssueResourceModel ¶
type CustomIssueResourceModel struct { ID types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Description types.String `tfsdk:"description"` Summary types.String `tfsdk:"summary"` Type types.String `tfsdk:"type"` ProviderName types.String `tfsdk:"provider_name"` PackageType types.String `tfsdk:"package_type"` Severity types.String `tfsdk:"severity"` Component types.Set `tfsdk:"component"` CVE types.Set `tfsdk:"cve"` Source types.Set `tfsdk:"source"` }
type DbSyncDailyUpdatesTimeAPIModel ¶
type DbSyncDailyUpdatesTimeAPIModel struct {
DbSyncTime string `json:"db_sync_updates_time"`
}
type DbSyncDailyUpdatesTimeErrorAPIModel ¶
type DbSyncDailyUpdatesTimeErrorAPIModel struct {
Error string `json:"error"`
}
type ExposuresAPIModel ¶
type FiltersAPIModel ¶
type FiltersAPIModel struct { VulnerableComponent string `json:"vulnerable_component,omitempty"` // Vulnerability report filter ImpactedArtifact string `json:"impacted_artifact,omitempty"` HasRemediation bool `json:"has_remediation,omitempty"` CVE string `json:"cve,omitempty"` IssueId string `json:"issue_id,omitempty"` CVSSScore *CVSSScoreAPIModel `json:"cvss_score,omitempty"` Published *StartAndEndDateAPIModel `json:"published,omitempty"` Unknown bool `json:"unknown"` // Licenses report filter Unrecognized bool `json:"unrecognized"` LicenseNames []string `json:"license_names,omitempty"` LicensePatterns []string `json:"license_patterns,omitempty"` Type string `json:"type,omitempty"` // Violations report filter WatchNames []string `json:"watch_names,omitempty"` WatchPatterns []string `json:"watch_patterns,omitempty"` PolicyNames []string `json:"policy_names,omitempty"` Updated *StartAndEndDateAPIModel `json:"updated"` SecurityFilters *SecurityFilterAPIModel `json:"security_filters,omitempty"` LicenseFilters *LicenseFilterAPIModel `json:"license_filters,omitempty"` Risks []string `json:"risks,omitempty"` // Operational risks filter ScanDate *StartAndEndDateAPIModel `json:"scan_date,omitempty"` // Common attributes Component string `json:"component,omitempty"` Artifact string `json:"artifact,omitempty"` Severities []string `json:"severities,omitempty"` }
type IgnoreFilterNameVersionPathAPIModel ¶
type IgnoreFilterNameVersionPathAPIModel struct { IgnoreFilterNameVersionAPIModel Path string `json:"path,omitempty"` }
type IgnoreFilterNameVersionProjectAPIModel ¶
type IgnoreFilterNameVersionProjectAPIModel struct { IgnoreFilterNameVersionAPIModel Project string `json:"project,omitempty"` }
type IgnoreFiltersAPIModel ¶
type IgnoreFiltersAPIModel struct { Vulnerabilities []string `json:"vulnerabilities,omitempty"` Licenses []string `json:"licenses,omitempty"` CVEs []string `json:"cves,omitempty"` Policies []string `json:"policies,omitempty"` Watches []string `json:"watches,omitempty"` DockerLayers []string `json:"docker-layers,omitempty"` OperationalRisks []string `json:"operational_risk,omitempty"` ReleaseBundles []IgnoreFilterNameVersionAPIModel `json:"release-bundles,omitempty"` Builds []IgnoreFilterNameVersionProjectAPIModel `json:"builds,omitempty"` Components []IgnoreFilterNameVersionAPIModel `json:"components,omitempty"` Artifacts []IgnoreFilterNameVersionPathAPIModel `json:"artifacts,omitempty"` }
type IgnoreRuleAPIModel ¶
type IgnoreRuleAPIModel struct { ID string `json:"id,omitempty"` Author string `json:"author,omitempty"` Created *time.Time `json:"created,omitempty"` IsExpired bool `json:"is_expired,omitempty"` Notes string `json:"notes"` ExpiresAt *time.Time `json:"expires_at,omitempty"` IgnoreFilters IgnoreFiltersAPIModel `json:"ignore_filters"` }
type IgnoreRuleResource ¶
type IgnoreRuleResource struct { ProviderData util.ProviderMetadata TypeName string }
func (*IgnoreRuleResource) Configure ¶
func (r *IgnoreRuleResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*IgnoreRuleResource) Create ¶
func (r *IgnoreRuleResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*IgnoreRuleResource) Delete ¶
func (r *IgnoreRuleResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*IgnoreRuleResource) ImportState ¶
func (r *IgnoreRuleResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*IgnoreRuleResource) Metadata ¶
func (r *IgnoreRuleResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*IgnoreRuleResource) Read ¶
func (r *IgnoreRuleResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*IgnoreRuleResource) Schema ¶
func (r *IgnoreRuleResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*IgnoreRuleResource) Update ¶
func (r *IgnoreRuleResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type IgnoreRuleResourceModel ¶
type IgnoreRuleResourceModel struct { ID types.String `tfsdk:"id"` ProjectKey types.String `tfsdk:"project_key"` Notes types.String `tfsdk:"notes"` ExpiredAt types.String `tfsdk:"expiration_date"` Author types.String `tfsdk:"author"` Created types.String `tfsdk:"created"` IsExpired types.Bool `tfsdk:"is_expired"` Vulnerabilities types.Set `tfsdk:"vulnerabilities"` CVEs types.Set `tfsdk:"cves"` Licenses types.Set `tfsdk:"licenses"` OperationalRisks types.Set `tfsdk:"operational_risk"` Policies types.Set `tfsdk:"policies"` Watches types.Set `tfsdk:"watches"` DockerLayers types.Set `tfsdk:"docker_layers"` ReleaseBundles types.Set `tfsdk:"release_bundle"` Builds types.Set `tfsdk:"build"` Components types.Set `tfsdk:"component"` Artifacts types.Set `tfsdk:"artifact"` }
type IsRFC3339TimeValidator ¶
type IsRFC3339TimeValidator struct{}
func IsRFC3339Time ¶
func IsRFC3339Time() IsRFC3339TimeValidator
func (IsRFC3339TimeValidator) Description ¶
func (v IsRFC3339TimeValidator) Description(ctx context.Context) string
Description returns a plain text description of the validator's behavior, suitable for a practitioner to understand its impact.
func (IsRFC3339TimeValidator) MarkdownDescription ¶
func (v IsRFC3339TimeValidator) MarkdownDescription(ctx context.Context) string
MarkdownDescription returns a markdown formatted description of the validator's behavior, suitable for a practitioner to understand its impact.
func (IsRFC3339TimeValidator) ValidateString ¶
func (v IsRFC3339TimeValidator) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse)
Validate runs the main validation logic of the validator, reading configuration data out of `req` and updating `resp` with diagnostics.
type LicenseFilterAPIModel ¶
type LicensePolicyResource ¶
type LicensePolicyResource struct {
PolicyResource
}
func (*LicensePolicyResource) Configure ¶
func (r *LicensePolicyResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*LicensePolicyResource) Create ¶
func (r *LicensePolicyResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*LicensePolicyResource) Delete ¶
func (r *LicensePolicyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*LicensePolicyResource) ImportState ¶
func (r *LicensePolicyResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*LicensePolicyResource) Metadata ¶
func (r *LicensePolicyResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*LicensePolicyResource) Read ¶
func (r *LicensePolicyResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*LicensePolicyResource) Schema ¶
func (r *LicensePolicyResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*LicensePolicyResource) Update ¶
func (r *LicensePolicyResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type LicensesReportResource ¶
type LicensesReportResource struct {
ReportResource
}
func (*LicensesReportResource) Configure ¶
func (r *LicensesReportResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*LicensesReportResource) Create ¶
func (r *LicensesReportResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*LicensesReportResource) Delete ¶
func (r *LicensesReportResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*LicensesReportResource) Metadata ¶
func (r *LicensesReportResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*LicensesReportResource) Read ¶
func (r *LicensesReportResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*LicensesReportResource) Schema ¶
func (r *LicensesReportResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*LicensesReportResource) Update ¶
func (r *LicensesReportResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type OperationalRiskCriteriaAPIModel ¶
type OperationalRiskCriteriaAPIModel struct { UseAndCondition bool `json:"use_and_condition"` IsEOL bool `json:"is_eol"` ReleaseDateGreaterThanMonths *int64 `json:"release_date_greater_than_months,omitempty"` NewerVersionsGreaterThan *int64 `json:"newer_versions_greater_than,omitempty"` ReleaseCadencePerYearLessThan *int64 `json:"release_cadence_per_year_less_than,omitempty"` CommitsLessThan *int64 `json:"commits_less_than,omitempty"` CommittersLessThan *int64 `json:"committers_less_than,omitempty"` Risk string `json:"risk,omitempty"` }
type OperationalRiskPolicyResource ¶
type OperationalRiskPolicyResource struct {
PolicyResource
}
func (*OperationalRiskPolicyResource) Configure ¶
func (r *OperationalRiskPolicyResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*OperationalRiskPolicyResource) Create ¶
func (r *OperationalRiskPolicyResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*OperationalRiskPolicyResource) Delete ¶
func (r *OperationalRiskPolicyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*OperationalRiskPolicyResource) ImportState ¶
func (r *OperationalRiskPolicyResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*OperationalRiskPolicyResource) Metadata ¶
func (r *OperationalRiskPolicyResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*OperationalRiskPolicyResource) Read ¶
func (r *OperationalRiskPolicyResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*OperationalRiskPolicyResource) Schema ¶
func (r *OperationalRiskPolicyResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*OperationalRiskPolicyResource) Update ¶
func (r *OperationalRiskPolicyResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type OperationalRisksReportResource ¶
type OperationalRisksReportResource struct {
ReportResource
}
func (*OperationalRisksReportResource) Configure ¶
func (r *OperationalRisksReportResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*OperationalRisksReportResource) Create ¶
func (r *OperationalRisksReportResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*OperationalRisksReportResource) Delete ¶
func (r *OperationalRisksReportResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*OperationalRisksReportResource) Metadata ¶
func (r *OperationalRisksReportResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*OperationalRisksReportResource) Read ¶
func (r *OperationalRisksReportResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*OperationalRisksReportResource) Schema ¶
func (r *OperationalRisksReportResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*OperationalRisksReportResource) Update ¶
func (r *OperationalRisksReportResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type PathsConfigurationAPIModel ¶
type PathsConfigurationAPIModel struct { Patterns []PatternAPIModel `json:"patterns,omitempty"` OtherArtifacts AllOtherArtifactsAPIModel `json:"all_other_artifacts,omitempty"` }
type PatternAPIModel ¶
type PolicyAPIModel ¶
type PolicyAPIModel struct { Name string `json:"name"` Type string `json:"type"` ProjectKey string `json:"-"` Author string `json:"author,omitempty"` // Omitempty is used because the field is computed Description string `json:"description"` Rules *[]PolicyRuleAPIModel `json:"rules"` Created string `json:"created,omitempty"` // Omitempty is used because the field is computed Modified string `json:"modified,omitempty"` // Omitempty is used because the field is computed }
type PolicyCVSSRangeAPIModel ¶
type PolicyError ¶
type PolicyError struct {
Error string `json:"error"`
}
type PolicyExposuresAPIModel ¶
type PolicyResource ¶
type PolicyResource struct { ProviderData util.ProviderMetadata TypeName string }
func (*PolicyResource) Create ¶
func (r *PolicyResource) Create( ctx context.Context, toAPIModel func(context.Context, PolicyResourceModel, *PolicyAPIModel) diag.Diagnostics, fromAPIModel func(context.Context, PolicyAPIModel, *PolicyResourceModel) diag.Diagnostics, req resource.CreateRequest, resp *resource.CreateResponse, )
func (*PolicyResource) Delete ¶
func (r *PolicyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*PolicyResource) ImportState ¶
func (r *PolicyResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*PolicyResource) Read ¶
func (r *PolicyResource) Read( ctx context.Context, fromAPIModel func(context.Context, PolicyAPIModel, *PolicyResourceModel) diag.Diagnostics, req resource.ReadRequest, resp *resource.ReadResponse, )
func (*PolicyResource) Update ¶
func (r *PolicyResource) Update( ctx context.Context, toAPIModel func(context.Context, PolicyResourceModel, *PolicyAPIModel) diag.Diagnostics, fromAPIModel func(context.Context, PolicyAPIModel, *PolicyResourceModel) diag.Diagnostics, req resource.UpdateRequest, resp *resource.UpdateResponse, )
type PolicyResourceModel ¶
type PolicyResourceModel struct { ID types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Description types.String `tfsdk:"description"` ProjectKey types.String `tfsdk:"project_key"` Type types.String `tfsdk:"type"` Rules types.Set `tfsdk:"rule"` Author types.String `tfsdk:"author"` Created types.String `tfsdk:"created"` Modified types.String `tfsdk:"modified"` }
type PolicyRuleAPIModel ¶
type PolicyRuleAPIModel struct { Name string `json:"name"` Priority int64 `json:"priority"` Criteria *PolicyRuleCriteriaAPIModel `json:"criteria"` Actions PolicyRuleActionsAPIModel `json:"actions"` }
type PolicyRuleActionsAPIModel ¶
type PolicyRuleActionsAPIModel struct { Webhooks []string `json:"webhooks,omitempty"` Mails []string `json:"mails,omitempty"` FailBuild bool `json:"fail_build"` BlockDownload BlockDownloadSettingsAPIModel `json:"block_download"` BlockReleaseBundleDistribution bool `json:"block_release_bundle_distribution"` BlockReleaseBundlePromotion bool `json:"block_release_bundle_promotion"` NotifyWatchRecipients bool `json:"notify_watch_recipients"` NotifyDeployer bool `json:"notify_deployer"` CreateJiraTicketEnabled bool `json:"create_ticket_enabled"` FailureGracePeriodDays int64 `json:"build_failure_grace_period_in_days"` // License Actions CustomSeverity string `json:"custom_severity,omitempty"` }
type PolicyRuleCriteriaAPIModel ¶
type PolicyRuleCriteriaAPIModel struct { // Security Criteria MinimumSeverity string `json:"min_severity,omitempty"` // Omitempty is used because the empty field is conflicting with CVSSRange CVSSRange *PolicyCVSSRangeAPIModel `json:"cvss_range,omitempty"` // Omitempty is used in FixVersionDependant because an empty field throws an error in Xray below 3.44.3 FixVersionDependant *bool `json:"fix_version_dependant,omitempty"` ApplicableCVEsOnly *bool `json:"applicable_cves_only,omitempty"` MaliciousPackage *bool `json:"malicious_package,omitempty"` VulnerabilityIds []string `json:"vulnerability_ids,omitempty"` Exposures *PolicyExposuresAPIModel `json:"exposures,omitempty"` PackageName string `json:"package_name,omitempty"` PackageType string `json:"package_type,omitempty"` PackageVersions []string `json:"package_versions,omitempty"` // License Criteria AllowUnknown *bool `json:"allow_unknown,omitempty"` // Omitempty is used because the empty field is conflicting with MultiLicensePermissive MultiLicensePermissive *bool `json:"multi_license_permissive,omitempty"` // Omitempty is used because the empty field is conflicting with AllowUnknown BannedLicenses []string `json:"banned_licenses,omitempty"` AllowedLicenses []string `json:"allowed_licenses,omitempty"` // Operational Risk custom criteria OperationalRiskCustom *OperationalRiskCriteriaAPIModel `json:"op_risk_custom,omitempty"` OperationalRiskMinRisk string `json:"op_risk_min_risk,omitempty"` }
type ProjectsAPIModel ¶
type ReleaseBundlesAPIModel ¶
type RepoConfigResource ¶
type RepoConfigResource struct { ProviderData util.ProviderMetadata TypeName string }
func (*RepoConfigResource) Configure ¶
func (r *RepoConfigResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*RepoConfigResource) Create ¶
func (r *RepoConfigResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*RepoConfigResource) Delete ¶
func (r *RepoConfigResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*RepoConfigResource) ImportState ¶
func (r *RepoConfigResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*RepoConfigResource) Metadata ¶
func (r *RepoConfigResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*RepoConfigResource) Read ¶
func (r *RepoConfigResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*RepoConfigResource) Schema ¶
func (r *RepoConfigResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*RepoConfigResource) Update ¶
func (r *RepoConfigResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
func (*RepoConfigResource) UpgradeState ¶
func (r *RepoConfigResource) UpgradeState(ctx context.Context) map[int64]resource.StateUpgrader
func (RepoConfigResource) ValidateConfig ¶
func (r RepoConfigResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, resp *resource.ValidateConfigResponse)
type RepoConfigResourceModel ¶
type RepoConfigurationAPIModel ¶
type RepoConfigurationAPIModel struct { // Omitempty is used because 'vuln_contextual_analysis' is not supported by self-hosted Xray installation. VulnContextualAnalysis *bool `json:"vuln_contextual_analysis,omitempty"` RetentionInDays *int64 `json:"retention_in_days,omitempty"` Exposures *ExposuresAPIModel `json:"exposures,omitempty"` }
type ReportAPIModel ¶
type ReportAPIModel struct { ReportId int64 `json:"report_id,omitempty"` Name string `json:"name"` ProjectKey string `json:"-"` Resources *ResourcesAPIModel `json:"resources,omitempty"` Filters *FiltersAPIModel `json:"filters"` }
type ReportResource ¶
type ReportResource struct { ProviderData util.ProviderMetadata TypeName string }
func (*ReportResource) Create ¶
func (r *ReportResource) Create( ctx context.Context, reportType string, toAPIModel func(context.Context, ReportResourceModel, *ReportAPIModel) diag.Diagnostics, req resource.CreateRequest, resp *resource.CreateResponse, )
func (*ReportResource) Delete ¶
func (r *ReportResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*ReportResource) Read ¶
func (r *ReportResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*ReportResource) Update ¶
func (r *ReportResource) Update( ctx context.Context, reportType string, toAPIModel func(context.Context, ReportResourceModel, *ReportAPIModel) diag.Diagnostics, req resource.UpdateRequest, resp *resource.UpdateResponse, )
type ReportResourceModel ¶
type RepositoryAPIModel ¶
type RepositoryConfigurationAPIModel ¶
type RepositoryConfigurationAPIModel struct { RepoName string `json:"repo_name"` // Pointer is used to be able to verify if the RepoConfig or PathsConfiguration struct is nil RepoConfig *RepoConfigurationAPIModel `json:"repo_config,omitempty"` RepoPathsConfig *PathsConfigurationAPIModel `json:"repo_paths_config,omitempty"` }
type ResourcesAPIModel ¶
type ResourcesAPIModel struct { Repositories *[]RepositoryAPIModel `json:"repositories,omitempty"` Builds *BuildsAPIModel `json:"builds,omitempty"` ReleaseBundles *ReleaseBundlesAPIModel `json:"release_bundles,omitempty"` Projects *ProjectsAPIModel `json:"projects,omitempty"` }
type SecurityFilterAPIModel ¶
type SecurityFilterAPIModel struct { Cve string `json:"cve,omitempty"` IssueId string `json:"issue_id,omitempty"` CVSSScore *CVSSScoreAPIModel `json:"cvss_score,omitempty"` SummaryContains string `json:"summary_contains"` HasRemediation bool `json:"has_remediation,omitempty"` Published *StartAndEndDateAPIModel `json:"published,omitempty"` }
type SecurityPolicyResource ¶
type SecurityPolicyResource struct {
PolicyResource
}
func (*SecurityPolicyResource) Configure ¶
func (r *SecurityPolicyResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*SecurityPolicyResource) Create ¶
func (r *SecurityPolicyResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*SecurityPolicyResource) Delete ¶
func (r *SecurityPolicyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*SecurityPolicyResource) ImportState ¶
func (r *SecurityPolicyResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*SecurityPolicyResource) Metadata ¶
func (r *SecurityPolicyResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*SecurityPolicyResource) Read ¶
func (r *SecurityPolicyResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*SecurityPolicyResource) Schema ¶
func (r *SecurityPolicyResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*SecurityPolicyResource) Update ¶
func (r *SecurityPolicyResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
func (SecurityPolicyResource) ValidateConfig ¶
func (r SecurityPolicyResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, resp *resource.ValidateConfigResponse)
type SettingsResource ¶
type SettingsResource struct { ProviderData util.ProviderMetadata TypeName string }
func (*SettingsResource) Configure ¶
func (r *SettingsResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*SettingsResource) Create ¶
func (r *SettingsResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*SettingsResource) Delete ¶
func (r *SettingsResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete No delete functionality provided by API for the settings or DB sync call. This function will remove the object from the Terraform state
func (*SettingsResource) ImportState ¶
func (r *SettingsResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*SettingsResource) Metadata ¶
func (r *SettingsResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*SettingsResource) Read ¶
func (r *SettingsResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*SettingsResource) Schema ¶
func (r *SettingsResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*SettingsResource) Update ¶
func (r *SettingsResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type SettingsResourceModel ¶
type SettingsResourceModel struct { ID types.String `tfsdk:"id"` DBSyncUpdateTime types.String `tfsdk:"db_sync_updates_time"` Enabled types.Bool `tfsdk:"enabled"` AllowBlocked types.Bool `tfsdk:"allow_blocked"` BlockUnscannedTimeout types.Int64 `tfsdk:"block_unscanned_timeout"` BlockUnfinishedScansTimeout types.Int64 `tfsdk:"block_unfinished_scans_timeout"` }
type SourceAPIModel ¶
type StartAndEndDateAPIModel ¶
type ViolationsReportResource ¶
type ViolationsReportResource struct {
ReportResource
}
func (*ViolationsReportResource) Configure ¶
func (r *ViolationsReportResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*ViolationsReportResource) Create ¶
func (r *ViolationsReportResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*ViolationsReportResource) Delete ¶
func (r *ViolationsReportResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*ViolationsReportResource) Metadata ¶
func (r *ViolationsReportResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*ViolationsReportResource) Read ¶
func (r *ViolationsReportResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*ViolationsReportResource) Schema ¶
func (r *ViolationsReportResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*ViolationsReportResource) Update ¶
func (r *ViolationsReportResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type VulnerabilitiesReportResource ¶
type VulnerabilitiesReportResource struct {
ReportResource
}
func (*VulnerabilitiesReportResource) Configure ¶
func (r *VulnerabilitiesReportResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*VulnerabilitiesReportResource) Create ¶
func (r *VulnerabilitiesReportResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*VulnerabilitiesReportResource) Delete ¶
func (r *VulnerabilitiesReportResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*VulnerabilitiesReportResource) Metadata ¶
func (r *VulnerabilitiesReportResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*VulnerabilitiesReportResource) Read ¶
func (r *VulnerabilitiesReportResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*VulnerabilitiesReportResource) Schema ¶
func (r *VulnerabilitiesReportResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*VulnerabilitiesReportResource) Update ¶
func (r *VulnerabilitiesReportResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type VulnerableRangeAPIModel ¶
type WatchAPIModel ¶
type WatchAPIModel struct { GeneralData WatchGeneralDataAPIModel `json:"general_data"` ProjectResources WatchProjectResourcesAPIModel `json:"project_resources"` AssignedPolicies []WatchAssignedPolicyAPIModel `json:"assigned_policies"` WatchRecipients []string `json:"watch_recipients"` }
type WatchFilterAPIModel ¶
type WatchFilterAPIModel struct { Type string `json:"type"` Value json.RawMessage `json:"value"` }
type WatchProjectResourcesAPIModel ¶
type WatchProjectResourcesAPIModel struct {
Resources []WatchProjectResourceAPIModel `json:"resources"`
}
type WatchResource ¶
type WatchResource struct { ProviderData util.ProviderMetadata TypeName string }
func (*WatchResource) Configure ¶
func (r *WatchResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*WatchResource) Create ¶
func (r *WatchResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*WatchResource) Delete ¶
func (r *WatchResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*WatchResource) ImportState ¶
func (r *WatchResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*WatchResource) Metadata ¶
func (r *WatchResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*WatchResource) Read ¶
func (r *WatchResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*WatchResource) Schema ¶
func (r *WatchResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*WatchResource) Update ¶
func (r *WatchResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
func (WatchResource) ValidateConfig ¶
func (r WatchResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, resp *resource.ValidateConfigResponse)
type WatchResourceModel ¶
type WatchResourceModel struct { Name types.String `tfsdk:"name"` ProjectKey types.String `tfsdk:"project_key"` Description types.String `tfsdk:"description"` Active types.Bool `tfsdk:"active"` WatchResource types.Set `tfsdk:"watch_resource"` AssignedPolicies types.Set `tfsdk:"assigned_policy"` WatchRecipients types.Set `tfsdk:"watch_recipients"` }
type WebhookAPIModel ¶
type WebhookResource ¶
type WebhookResource struct { ProviderData util.ProviderMetadata TypeName string }
func (*WebhookResource) Configure ¶
func (r *WebhookResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*WebhookResource) Create ¶
func (r *WebhookResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*WebhookResource) Delete ¶
func (r *WebhookResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*WebhookResource) ImportState ¶
func (r *WebhookResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*WebhookResource) Metadata ¶
func (r *WebhookResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*WebhookResource) Read ¶
func (r *WebhookResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*WebhookResource) Schema ¶
func (r *WebhookResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*WebhookResource) Update ¶
func (r *WebhookResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type WebhookResourceModel ¶
type WebhookResourceModel struct { Name types.String `tfsdk:"name"` URL types.String `tfsdk:"url"` Description types.String `tfsdk:"description"` UseProxy types.Bool `tfsdk:"use_proxy"` UserName types.String `tfsdk:"user_name"` Password types.String `tfsdk:"password"` Headers types.Map `tfsdk:"headers"` }
type WorkersCountAPIModel ¶
type WorkersCountAPIModel struct { Index WorkersCountNewExistingContentAPIModel `json:"index"` Persist WorkersCountNewExistingContentAPIModel `json:"persist"` Analysis WorkersCountNewExistingContentAPIModel `json:"analysis"` PolicyEnforcer WorkersCountNewExistingContentAPIModel `json:"policy_enforcer"` SBOM WorkersCountNewExistingContentAPIModel `json:"sbom"` UserCatalog WorkersCountNewExistingContentAPIModel `json:"usercatalog"` SBOMImpactAnalysis WorkersCountNewExistingContentAPIModel `json:"sbomimpactanalysis"` MigrationSBOM WorkersCountNewExistingContentAPIModel `json:"migrationsbom"` ImpactAnalysis WorkersCountNewContentAPIModel `json:"impact_analysis"` Notification WorkersCountNewContentAPIModel `json:"notification"` Panoramic WorkersCountNewContentAPIModel `json:"panoramic"` }
WorkersCount uses Xray API which returns the follow JSON structure:
{ "index": { "new_content": 8, "existing_content": 4 }, "persist": { "new_content": 8, "existing_content": 4 }, "analysis": { "new_content": 8, "existing_content": 4 }, "policy_enforcer": { "new_content": 8, "existing_content": 8 }, "sbom": { "new_content": 0, "existing_content": 0 }, "usercatalog": { "new_content": 0, "existing_content": 0 }, "sbomimpactanalysis": { "new_content": 0, "existing_content": 0 }, "migrationsbom": { "new_content": 0, "existing_content": 0 }, "impact_analysis": { "new_content": 8 }, "notification": { "new_content": 8 }, "panoramic": { "new_content": 0 } }
type WorkersCountNewContentAPIModel ¶
type WorkersCountNewContentAPIModel struct {
New int64 `json:"new_content"`
}
type WorkersCountNewExistingContentAPIModel ¶
type WorkersCountNewExistingContentAPIModel struct { WorkersCountNewContentAPIModel Existing int64 `json:"existing_content"` }
type WorkersCountResource ¶
type WorkersCountResource struct { ProviderData util.ProviderMetadata TypeName string }
func (*WorkersCountResource) Configure ¶
func (r *WorkersCountResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*WorkersCountResource) Create ¶
func (r *WorkersCountResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*WorkersCountResource) Delete ¶
func (r *WorkersCountResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete No delete functionality provided by API for the settings or DB sync call. This function will remove the object from the Terraform state
func (*WorkersCountResource) ImportState ¶
func (r *WorkersCountResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*WorkersCountResource) Metadata ¶
func (r *WorkersCountResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*WorkersCountResource) Read ¶
func (r *WorkersCountResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*WorkersCountResource) Schema ¶
func (r *WorkersCountResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*WorkersCountResource) Update ¶
func (r *WorkersCountResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
func (*WorkersCountResource) UpgradeState ¶
func (r *WorkersCountResource) UpgradeState(ctx context.Context) map[int64]resource.StateUpgrader
type WorkersCountResourceModelV0 ¶
type WorkersCountResourceModelV0 struct { ID types.String `tfsdk:"id"` Index types.Set `tfsdk:"index"` Persist types.Set `tfsdk:"persist"` Alert types.Set `tfsdk:"alert"` Analysis types.Set `tfsdk:"analysis"` ImpactAnalysis types.Set `tfsdk:"impact_analysis"` Notification types.Set `tfsdk:"notification"` }
type WorkersCountResourceModelV1 ¶
type WorkersCountResourceModelV1 struct { ID types.String `tfsdk:"id"` Index types.Set `tfsdk:"index"` Persist types.Set `tfsdk:"persist"` Analysis types.Set `tfsdk:"analysis"` PolicyEnforcer types.Set `tfsdk:"policy_enforcer"` SBOM types.Set `tfsdk:"sbom"` UserCatalog types.Set `tfsdk:"user_catalog"` SBOMImpactAnalysis types.Set `tfsdk:"sbom_impact_analysis"` MigrationSBOM types.Set `tfsdk:"migration_sbom"` ImpactAnalysis types.Set `tfsdk:"impact_analysis"` Notification types.Set `tfsdk:"notification"` Panoramic types.Set `tfsdk:"panoramic"` }
Source Files ¶
- policies.go
- reports.go
- resource_xray_binary_manager_builds.go
- resource_xray_binary_manager_release_bundle_v2.go
- resource_xray_binary_manager_repos.go
- resource_xray_custom_issue.go
- resource_xray_ignore_rule.go
- resource_xray_license_policy.go
- resource_xray_licenses_report.go
- resource_xray_operational_risk_policy.go
- resource_xray_operational_risks_report.go
- resource_xray_repository_config.go
- resource_xray_security_policy.go
- resource_xray_settings.go
- resource_xray_violations_report.go
- resource_xray_vulnerabilities_report.go
- resource_xray_watch.go
- resource_xray_webhook.go
- resource_xray_workers_count.go
- util.go