Documentation ¶
Index ¶
- func NewArtifactsScanDataSource() datasource.DataSource
- type ArtifactsScanData
- type ArtifactsScanExposureIssues
- type ArtifactsScanExposureIssuesCategories
- type ArtifactsScanResult
- type ArtifactsScanSeverity
- type XrayArtifactsScanDataSource
- func (d *XrayArtifactsScanDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *XrayArtifactsScanDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *XrayArtifactsScanDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *XrayArtifactsScanDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type XrayArtifactsScanDataSourceModel
- type XrayArtifactsScanResultExposuresIssuesCategoriesModel
- type XrayArtifactsScanResultExposuresIssuesModel
- type XrayArtifactsScanResultModel
- type XrayArtifactsScanResultSeverityModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewArtifactsScanDataSource ¶
func NewArtifactsScanDataSource() datasource.DataSource
Types ¶
type ArtifactsScanData ¶
type ArtifactsScanData struct { Name string `json:"name"` RepoPath string `json:"repo_path"` PackageID string `json:"package_id"` Version string `json:"version"` SecIssues ArtifactsScanSeverity `json:"sec_issues"` Size string `json:"size"` Violations int64 `json:"violations"` Created string `json:"created"` DeployedBy string `json:"deployed_by"` RepoFullPath string `json:"repo_full_path"` ExposuresIssues ArtifactsScanExposureIssues `json:"exposures_issues"` MaliciousPackages []string `json:"malicious_packages"` }
type ArtifactsScanExposureIssues ¶
type ArtifactsScanExposureIssues struct { Categories ArtifactsScanExposureIssuesCategories `json:"categories"` LastScanned string `json:"last_scanned"` }
type ArtifactsScanExposureIssuesCategories ¶
type ArtifactsScanExposureIssuesCategories struct { Applications ArtifactsScanSeverity `json:"applications"` IAC ArtifactsScanSeverity `json:"iac"` Secrets ArtifactsScanSeverity `json:"secrets"` Services ArtifactsScanSeverity `json:"services"` }
type ArtifactsScanResult ¶
type ArtifactsScanResult struct {
Data []ArtifactsScanData `json:"data"`
}
type ArtifactsScanSeverity ¶
type XrayArtifactsScanDataSource ¶
type XrayArtifactsScanDataSource struct {
ProviderData util.ProviderMetadata
}
func (*XrayArtifactsScanDataSource) Configure ¶
func (d *XrayArtifactsScanDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*XrayArtifactsScanDataSource) Metadata ¶
func (d *XrayArtifactsScanDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*XrayArtifactsScanDataSource) Read ¶
func (d *XrayArtifactsScanDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*XrayArtifactsScanDataSource) Schema ¶
func (d *XrayArtifactsScanDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type XrayArtifactsScanDataSourceModel ¶
type XrayArtifactsScanDataSourceModel struct { Repo types.String `tfsdk:"repo"` OrderBy types.String `tfsdk:"order_by"` RepoPath types.String `tfsdk:"repo_path"` CreatedStart types.String `tfsdk:"created_start"` CreatedEnd types.String `tfsdk:"created_end"` Direction types.String `tfsdk:"direction"` NumOfRows types.Int64 `tfsdk:"num_of_rows"` Offset types.Int64 `tfsdk:"offset"` Results []types.Object `tfsdk:"results"` }
type XrayArtifactsScanResultExposuresIssuesCategoriesModel ¶
type XrayArtifactsScanResultExposuresIssuesCategoriesModel struct { Applications types.Object `tfsdk:"applications"` Secrets types.Object `tfsdk:"secrets"` Services types.Object `tfsdk:"services"` IAC types.Object `tfsdk:"iac"` }
func (XrayArtifactsScanResultExposuresIssuesCategoriesModel) AttributeTypes ¶
func (m XrayArtifactsScanResultExposuresIssuesCategoriesModel) AttributeTypes() map[string]attr.Type
type XrayArtifactsScanResultExposuresIssuesModel ¶
type XrayArtifactsScanResultExposuresIssuesModel struct { Categories types.Object `tfsdk:"categories"` LastScanned types.String `tfsdk:"last_scanned"` }
func (XrayArtifactsScanResultExposuresIssuesModel) AttributeTypes ¶
func (m XrayArtifactsScanResultExposuresIssuesModel) AttributeTypes() map[string]attr.Type
type XrayArtifactsScanResultModel ¶
type XrayArtifactsScanResultModel struct { Name types.String `tfsdk:"name"` RepoPath types.String `tfsdk:"repo_path"` PackageID types.String `tfsdk:"package_id"` Version types.String `tfsdk:"version"` SecIssues types.Object `tfsdk:"sec_issues"` Size types.String `tfsdk:"size"` Violations types.Int64 `tfsdk:"violations"` Created types.String `tfsdk:"created"` DeployedBy types.String `tfsdk:"deployed_by"` RepoFullPath types.String `tfsdk:"repo_full_path"` ExposuresIssues types.Object `tfsdk:"exposures_issues"` MaliciousPackages types.Set `tfsdk:"malicious_packages"` }
func (XrayArtifactsScanResultModel) AttributeTypes ¶
func (m XrayArtifactsScanResultModel) AttributeTypes() map[string]attr.Type
type XrayArtifactsScanResultSeverityModel ¶
type XrayArtifactsScanResultSeverityModel struct { Critical types.Int64 `tfsdk:"critical"` High types.Int64 `tfsdk:"high"` Information types.Int64 `tfsdk:"information"` Low types.Int64 `tfsdk:"low"` Medium types.Int64 `tfsdk:"medium"` Total types.Int64 `tfsdk:"total"` Unknown types.Int64 `tfsdk:"unknown"` }
func (XrayArtifactsScanResultSeverityModel) AttributeTypes ¶
func (m XrayArtifactsScanResultSeverityModel) AttributeTypes() map[string]attr.Type
Click to show internal directories.
Click to hide internal directories.