datasource

package
v3.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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 ArtifactsScanSeverity struct {
	Critical    int64 `json:"critical"`
	High        int64 `json:"high"`
	Information int64 `json:"information"`
	Low         int64 `json:"low"`
	Medium      int64 `json:"medium"`
	Total       int64 `json:"total"`
	Unknown     int64 `json:"unknown"`
}

type XrayArtifactsScanDataSource

type XrayArtifactsScanDataSource struct {
	ProviderData util.ProviderMetadata
}

func (*XrayArtifactsScanDataSource) Configure

func (*XrayArtifactsScanDataSource) Metadata

func (*XrayArtifactsScanDataSource) Read

func (*XrayArtifactsScanDataSource) Schema

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

type XrayArtifactsScanResultExposuresIssuesModel

type XrayArtifactsScanResultExposuresIssuesModel struct {
	Categories  types.Object `tfsdk:"categories"`
	LastScanned types.String `tfsdk:"last_scanned"`
}

func (XrayArtifactsScanResultExposuresIssuesModel) AttributeTypes

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL