generated

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package generated provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT.

Index

Constants

View Source
const (
	X_api_keyScopes = "x_api_key.Scopes"
)

Variables

This section is empty.

Functions

func NewArtifactListV2Request

func NewArtifactListV2Request(server string, org OrgParam, project ProjectParam, source string, params *ArtifactListV2Params, body ArtifactListV2JSONRequestBody) (*http.Request, error)

NewArtifactListV2Request calls the generic ArtifactListV2 builder with application/json body

func NewArtifactListV2RequestWithBody

func NewArtifactListV2RequestWithBody(server string, org OrgParam, project ProjectParam, source string, params *ArtifactListV2Params, contentType string, body io.Reader) (*http.Request, error)

NewArtifactListV2RequestWithBody generates requests for ArtifactListV2 with any type of body

func NewCodeRepositoriesListRequest

func NewCodeRepositoriesListRequest(server string, org OrgParam, project ProjectParam, params *CodeRepositoriesListParams, body CodeRepositoriesListJSONRequestBody) (*http.Request, error)

NewCodeRepositoriesListRequest calls the generic CodeRepositoriesList builder with application/json body

func NewCodeRepositoriesListRequestWithBody

func NewCodeRepositoriesListRequestWithBody(server string, org OrgParam, project ProjectParam, params *CodeRepositoriesListParams, contentType string, body io.Reader) (*http.Request, error)

NewCodeRepositoriesListRequestWithBody generates requests for CodeRepositoriesList with any type of body

func NewDownloadSbomRequest

func NewDownloadSbomRequest(server string, org OrgParam, project ProjectParam, orchestrationId string, params *DownloadSbomParams) (*http.Request, error)

NewDownloadSbomRequest generates requests for DownloadSbom

func NewFetchComplianceResultsByArtifactRequest

func NewFetchComplianceResultsByArtifactRequest(server string, org OrgParam, project ProjectParam, artifact Artifact, params *FetchComplianceResultsByArtifactParams, body FetchComplianceResultsByArtifactJSONRequestBody) (*http.Request, error)

NewFetchComplianceResultsByArtifactRequest calls the generic FetchComplianceResultsByArtifact builder with application/json body

func NewFetchComplianceResultsByArtifactRequestWithBody

func NewFetchComplianceResultsByArtifactRequestWithBody(server string, org OrgParam, project ProjectParam, artifact Artifact, params *FetchComplianceResultsByArtifactParams, contentType string, body io.Reader) (*http.Request, error)

NewFetchComplianceResultsByArtifactRequestWithBody generates requests for FetchComplianceResultsByArtifact with any type of body

func NewGetAllRepositoriesSummaryRequest

func NewGetAllRepositoriesSummaryRequest(server string, org OrgParam, project ProjectParam, params *GetAllRepositoriesSummaryParams) (*http.Request, error)

NewGetAllRepositoriesSummaryRequest generates requests for GetAllRepositoriesSummary

func NewGetArtifactChainOfCustodyV2Request

func NewGetArtifactChainOfCustodyV2Request(server string, org OrgParam, project ProjectParam, artifact Artifact, params *GetArtifactChainOfCustodyV2Params) (*http.Request, error)

NewGetArtifactChainOfCustodyV2Request generates requests for GetArtifactChainOfCustodyV2

func NewGetArtifactComponentRemediationByPurlRequest

func NewGetArtifactComponentRemediationByPurlRequest(server string, org OrgParam, project ProjectParam, artifact Artifact, params *GetArtifactComponentRemediationByPurlParams) (*http.Request, error)

NewGetArtifactComponentRemediationByPurlRequest generates requests for GetArtifactComponentRemediationByPurl

func NewGetArtifactV2DetailComponentViewRequest

func NewGetArtifactV2DetailComponentViewRequest(server string, org OrgParam, project ProjectParam, artifact Artifact, params *GetArtifactV2DetailComponentViewParams, body GetArtifactV2DetailComponentViewJSONRequestBody) (*http.Request, error)

NewGetArtifactV2DetailComponentViewRequest calls the generic GetArtifactV2DetailComponentView builder with application/json body

func NewGetArtifactV2DetailComponentViewRequestWithBody

func NewGetArtifactV2DetailComponentViewRequestWithBody(server string, org OrgParam, project ProjectParam, artifact Artifact, params *GetArtifactV2DetailComponentViewParams, contentType string, body io.Reader) (*http.Request, error)

NewGetArtifactV2DetailComponentViewRequestWithBody generates requests for GetArtifactV2DetailComponentView with any type of body

func NewGetArtifactV2OverviewRequest

func NewGetArtifactV2OverviewRequest(server string, org OrgParam, project ProjectParam, source string, artifact Artifact, params *GetArtifactV2OverviewParams) (*http.Request, error)

NewGetArtifactV2OverviewRequest generates requests for GetArtifactV2Overview

func NewGetCodeRepositoryOverviewRequest

func NewGetCodeRepositoryOverviewRequest(server string, org OrgParam, project ProjectParam, codeRepo string, params *GetCodeRepositoryOverviewParams) (*http.Request, error)

NewGetCodeRepositoryOverviewRequest generates requests for GetCodeRepositoryOverview

func NewListArtifactSourcesRequest

func NewListArtifactSourcesRequest(server string, org OrgParam, project ProjectParam, params *ListArtifactSourcesParams, body ListArtifactSourcesJSONRequestBody) (*http.Request, error)

NewListArtifactSourcesRequest calls the generic ListArtifactSources builder with application/json body

func NewListArtifactSourcesRequestWithBody

func NewListArtifactSourcesRequestWithBody(server string, org OrgParam, project ProjectParam, params *ListArtifactSourcesParams, contentType string, body io.Reader) (*http.Request, error)

NewListArtifactSourcesRequestWithBody generates requests for ListArtifactSources with any type of body

Types

type AccountHeader

type AccountHeader = string

AccountHeader defines model for AccountHeader.

type ActivityDetails

type ActivityDetails struct {
	Type ActivityDetailsType `json:"type"`
}

ActivityDetails defines model for ActivityDetails.

type ActivityDetailsType

type ActivityDetailsType string

ActivityDetailsType defines model for ActivityDetails.Type.

const (
	ActivityDetailsTypeDeployment            ActivityDetailsType = "deployment"
	ActivityDetailsTypeEnforcement           ActivityDetailsType = "enforcement"
	ActivityDetailsTypeIntegrityVerification ActivityDetailsType = "integrity_verification"
	ActivityDetailsTypeOrchestration         ActivityDetailsType = "orchestration"
	ActivityDetailsTypeProvenance            ActivityDetailsType = "provenance"
	ActivityDetailsTypeSigning               ActivityDetailsType = "signing"
	ActivityDetailsTypeVerification          ActivityDetailsType = "verification"
	ActivityDetailsTypeVulnerability         ActivityDetailsType = "vulnerability"
)

Defines values for ActivityDetailsType.

type Artifact

type Artifact = string

Artifact defines model for Artifact.

type ArtifactChainOfCustodyV2

type ArtifactChainOfCustodyV2 struct {
	Activity        *ActivityDetails   `json:"activity,omitempty"`
	ArtifactDetails *ArtifactV2Details `json:"artifact_details,omitempty"`
	CreatedAt       *int64             `json:"created_at,omitempty"`

	// ExecutionContext Details of the Execution Context
	ExecutionContext *ExecutionContextV2 `json:"execution_context,omitempty"`
}

ArtifactChainOfCustodyV2 defines model for ArtifactChainOfCustodyV2.

type ArtifactComponentRemediationResponseBody

type ArtifactComponentRemediationResponseBody = ComponentRemediationResponse

ArtifactComponentRemediationResponseBody defines model for ArtifactComponentRemediationResponseBody.

type ArtifactComponentViewRequestBody

type ArtifactComponentViewRequestBody struct {
	ComponentFilter      *[]ComponentFilter `json:"component_filter,omitempty"`
	DependencyTypeFilter *[]DependencyType  `json:"dependency_type_filter,omitempty"`
	ImageLayer           *LayerType         `json:"image_layer,omitempty"`
	LicenseFilter        *LicenseFilter     `json:"license_filter,omitempty"`
	OwaspFilter          *[]OwaspFilter     `json:"owasp_filter,omitempty"`
	PackageManager       *string            `json:"package_manager,omitempty"`
	PackageSupplier      *string            `json:"package_supplier,omitempty"`
}

ArtifactComponentViewRequestBody defines model for ArtifactComponentViewRequestBody.

type ArtifactComponentViewResponse

type ArtifactComponentViewResponse struct {
	DependencyTypes *[]DependencyType `json:"dependency_types,omitempty"`

	// Description details of the component
	Description *string `json:"description,omitempty"`

	// EolFindings Key findings regarding components health
	EolFindings *[]string `json:"eol_findings,omitempty"`

	// EolScore score out of 100 denoting the component health status
	EolScore *int `json:"eol_score,omitempty"`

	// EolStatus Status denoting whether a component is end of life or close to end of life.
	EolStatus       *ArtifactComponentViewResponseEolStatus       `json:"eol_status,omitempty"`
	ExemptionStatus *ArtifactComponentViewResponseExemptionStatus `json:"exemption_status,omitempty"`
	FilterTags      *[]LayerType                                  `json:"filter_tags,omitempty"`

	// IsOutdated boolean field to indicate whether a particular component is outdated or not.
	IsOutdated *bool `json:"is_outdated,omitempty"`

	// IsUnmaintained boolean field to indicate whether a component is deprecated or not.
	IsUnmaintained *bool `json:"is_unmaintained,omitempty"`

	// IssueCount The count of Security Issues, by severity code, for a given Harness Pipeline Execution along with this execution info
	IssueCount *StoIssueCount `json:"issue_count,omitempty"`

	// LatestVersion latest version available of a component
	LatestVersion   *string `json:"latest_version,omitempty"`
	PackageLicense  *string `json:"package_license,omitempty"`
	PackageManager  *string `json:"package_manager,omitempty"`
	PackageName     *string `json:"package_name,omitempty"`
	PackageSupplier *string `json:"package_supplier,omitempty"`
	PackageVersion  *string `json:"package_version,omitempty"`
	Purl            *string `json:"purl,omitempty"`

	// VulnerabilitySource Source of vulnerabilities
	VulnerabilitySource *VulnerabilitySource `json:"vulnerability_source,omitempty"`
}

ArtifactComponentViewResponse defines model for ArtifactComponentViewResponse.

type ArtifactComponentViewResponseBody

type ArtifactComponentViewResponseBody = []ArtifactComponentViewResponse

ArtifactComponentViewResponseBody defines model for ArtifactComponentViewResponseBody.

type ArtifactComponentViewResponseEolStatus

type ArtifactComponentViewResponseEolStatus string

ArtifactComponentViewResponseEolStatus Status denoting whether a component is end of life or close to end of life.

const (
	ArtifactComponentViewResponseEolStatusCLOSETOEOL ArtifactComponentViewResponseEolStatus = "CLOSE_TO_EOL"
	ArtifactComponentViewResponseEolStatusDERIVEDEOL ArtifactComponentViewResponseEolStatus = "DERIVED_EOL"
	ArtifactComponentViewResponseEolStatusEOL        ArtifactComponentViewResponseEolStatus = "EOL"
)

Defines values for ArtifactComponentViewResponseEolStatus.

type ArtifactComponentViewResponseExemptionStatus

type ArtifactComponentViewResponseExemptionStatus string

ArtifactComponentViewResponseExemptionStatus defines model for ArtifactComponentViewResponse.ExemptionStatus.

const (
	FULLYEXEMPTED     ArtifactComponentViewResponseExemptionStatus = "FULLY_EXEMPTED"
	NOTEXEMPTED       ArtifactComponentViewResponseExemptionStatus = "NOT_EXEMPTED"
	PARTIALLYEXEMPTED ArtifactComponentViewResponseExemptionStatus = "PARTIALLY_EXEMPTED"
)

Defines values for ArtifactComponentViewResponseExemptionStatus.

type ArtifactListV2JSONRequestBody

type ArtifactListV2JSONRequestBody = ArtifactListingRequestBody

ArtifactListV2JSONRequestBody defines body for ArtifactListV2 for application/json ContentType.

type ArtifactListV2Params

type ArtifactListV2Params struct {
	// Limit Number of items to return per page.
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`

	// Page Pagination page number strategy: Specify the page number within the paginated collection related to the number of items in each page
	Page *Page `form:"page,omitempty" json:"page,omitempty"`

	// Sort Parameter on the basis of which sorting is done.
	Sort interface{} `form:"sort,omitempty" json:"sort,omitempty"`

	// Order Order on the basis of which sorting is done.
	Order *ArtifactListV2ParamsOrder `form:"order,omitempty" json:"order,omitempty"`

	// HarnessAccount Identifier field of the account the resource is scoped to. This is required for Authorization methods other than the x-api-key header. If you are using the x-api-key header, this can be skipped.
	HarnessAccount AccountHeader `json:"Harness-Account"`
}

ArtifactListV2Params defines parameters for ArtifactListV2.

type ArtifactListV2ParamsOrder

type ArtifactListV2ParamsOrder string

ArtifactListV2ParamsOrder defines parameters for ArtifactListV2.

const (
	ArtifactListV2ParamsOrderASC  ArtifactListV2ParamsOrder = "ASC"
	ArtifactListV2ParamsOrderDESC ArtifactListV2ParamsOrder = "DESC"
)

Defines values for ArtifactListV2ParamsOrder.

type ArtifactListV2Response

type ArtifactListV2Response struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ArtifactV2ListingResponseBody
}

func ParseArtifactListV2Response

func ParseArtifactListV2Response(rsp *http.Response) (*ArtifactListV2Response, error)

ParseArtifactListV2Response parses an HTTP response from a ArtifactListV2WithResponse call

func (ArtifactListV2Response) Status

func (r ArtifactListV2Response) Status() string

Status returns HTTPResponse.Status

func (ArtifactListV2Response) StatusCode

func (r ArtifactListV2Response) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ArtifactListingRequestBody

type ArtifactListingRequestBody struct {
	ArtifactType        *[]ArtifactType                            `json:"artifact_type,omitempty"`
	ComponentFilter     *[]ComponentFilter                         `json:"component_filter,omitempty"`
	ComponentFilterList *[]ComponentFilter                         `json:"component_filter_list,omitempty"`
	EnvironmentType     *ArtifactListingRequestBodyEnvironmentType `json:"environment_type,omitempty"`
	LicenseFilter       *LicenseFilter                             `json:"license_filter,omitempty"`
	LicenseFilterList   *[]LicenseFilter                           `json:"license_filter_list,omitempty"`
	PolicyViolation     *ArtifactListingRequestBodyPolicyViolation `json:"policy_violation,omitempty"`
	SearchTerm          *string                                    `json:"search_term,omitempty"`
	VerificationStatus  *VerificationStatus                        `json:"verification_status,omitempty"`
}

ArtifactListingRequestBody defines model for ArtifactListingRequestBody.

type ArtifactListingRequestBodyEnvironmentType

type ArtifactListingRequestBodyEnvironmentType string

ArtifactListingRequestBodyEnvironmentType defines model for ArtifactListingRequestBody.EnvironmentType.

Defines values for ArtifactListingRequestBodyEnvironmentType.

type ArtifactListingRequestBodyPolicyViolation

type ArtifactListingRequestBodyPolicyViolation string

ArtifactListingRequestBodyPolicyViolation defines model for ArtifactListingRequestBody.PolicyViolation.

Defines values for ArtifactListingRequestBodyPolicyViolation.

type ArtifactSbomResponseBody

type ArtifactSbomResponseBody struct {
	Sbom *string `json:"sbom,omitempty"`
}

ArtifactSbomResponseBody defines model for ArtifactSbomResponseBody.

type ArtifactSourcesListingHttpResponse

type ArtifactSourcesListingHttpResponse = []ArtifactSourcesListingResponse

ArtifactSourcesListingHttpResponse defines model for ArtifactSourcesListingResponse.

type ArtifactSourcesListingResponse

type ArtifactSourcesListingResponse struct {
	ArtifactType *ArtifactTypeData `json:"artifact_type,omitempty"`

	// Count Count of artifacts with the given url and name.
	Count       *int         `json:"count,omitempty"`
	Deployments *Deployments `json:"deployments,omitempty"`

	// Name Artifact name
	Name *string `json:"name,omitempty"`

	// SourceId Identifier of the Artifact Source
	SourceId *string `json:"source_id,omitempty"`

	// StoIssueCount The count of Security Issues, by severity code, for a given Harness Pipeline Execution along with this execution info
	StoIssueCount *StoIssueCount `json:"sto_issue_count,omitempty"`

	// Url Artifact Registry url
	Url *string `json:"url,omitempty"`
}

ArtifactSourcesListingResponse defines model for ArtifactSourcesListingResponse.

type ArtifactType

type ArtifactType string

ArtifactType defines model for ArtifactType.

const (
	ArtifactTypeCONTAINERIMAGE ArtifactType = "CONTAINER_IMAGE"
	ArtifactTypeHELM           ArtifactType = "HELM"
	ArtifactTypeJAR            ArtifactType = "JAR"
	ArtifactTypeMANIFEST       ArtifactType = "MANIFEST"
	ArtifactTypeUNKNOWN        ArtifactType = "UNKNOWN"
	ArtifactTypeWAR            ArtifactType = "WAR"
)

Defines values for ArtifactType.

type ArtifactTypeData

type ArtifactTypeData struct {
	SubType *ArtifactType         `json:"sub_type,omitempty"`
	Type    *ArtifactTypeDataType `json:"type,omitempty"`
}

ArtifactTypeData defines model for ArtifactTypeData.

type ArtifactTypeDataType

type ArtifactTypeDataType string

ArtifactTypeDataType defines model for ArtifactTypeData.Type.

const (
	CONTAINER    ArtifactTypeDataType = "CONTAINER"
	NONCONTAINER ArtifactTypeDataType = "NON_CONTAINER"
)

Defines values for ArtifactTypeDataType.

type ArtifactV2Details

type ArtifactV2Details struct {
	Digest *string `json:"digest,omitempty"`
	Id     *string `json:"id,omitempty"`
	Name   *string `json:"name,omitempty"`
	Tag    *string `json:"tag,omitempty"`
	Type   *string `json:"type,omitempty"`
}

ArtifactV2Details defines model for ArtifactV2Details.

type ArtifactV2ListingResponse

type ArtifactV2ListingResponse struct {
	ArtifactType *ArtifactTypeData `json:"artifact_type,omitempty"`

	// ComponentsCount Number of components of the artifact
	ComponentsCount *int `json:"components_count,omitempty"`
	Deployment      *struct {
		// NonProdEnvCount Count of pre-production environment this artifact is currently deployed.
		NonProdEnvCount *int `json:"non_prod_env_count,omitempty"`

		// ProdEnvCount Count of production environment this artifact is currently deployed.
		ProdEnvCount *int `json:"prod_env_count,omitempty"`
	} `json:"deployment,omitempty"`

	// Digest Digest of the Artifact
	Digest *string `json:"digest,omitempty"`

	// Id Artifact ID
	Id       *string                 `json:"id,omitempty"`
	Metadata *map[string]interface{} `json:"metadata,omitempty"`

	// Name Artifact Name
	Name          *string `json:"name,omitempty"`
	Orchestration *struct {
		// Id Orchestration step execution ID for the aritfact.
		Id *string `json:"id,omitempty"`

		// PipelineExecutionId Build pipeline execution Id used for orchestration of the artifact
		PipelineExecutionId *string `json:"pipeline_execution_id,omitempty"`

		// PipelineId Build pipeline Id used for orchestration of the artifact
		PipelineId *string `json:"pipeline_id,omitempty"`
	} `json:"orchestration,omitempty"`
	PolicyEnforcement *struct {
		// AllowListViolationCount Count of the allow list policy violations
		AllowListViolationCount *string `json:"allow_list_violation_count,omitempty"`

		// DenyListViolationCount Count of the deny list policy violations
		DenyListViolationCount *string `json:"deny_list_violation_count,omitempty"`

		// Id Enforcement Step Id for the artifact lastest enfrocement.
		Id *string `json:"id,omitempty"`
	} `json:"policy_enforcement,omitempty"`
	Scorecard *struct {
		// AvgScore Average score of the artifact SBOM
		AvgScore *string `json:"avg_score,omitempty"`

		// MaxScore Maximum score of the artifact SBOM
		MaxScore *string `json:"max_score,omitempty"`
	} `json:"scorecard,omitempty"`
	Signing *IntegrityVerification `json:"signing,omitempty"`

	// StoIssueCount The count of Security Issues, by severity code, for a given Harness Pipeline Execution along with this execution info
	StoIssueCount *StoIssueCount `json:"sto_issue_count,omitempty"`
	Tags          *[]string      `json:"tags,omitempty"`

	// Updated Last updated time of the artifact
	Updated *string `json:"updated,omitempty"`

	// Url Artifact Origin URL
	Url     *string `json:"url,omitempty"`
	Version *string `json:"version,omitempty"`
}

ArtifactV2ListingResponse defines model for ArtifactV2ListingResponse.

type ArtifactV2ListingResponseBody

type ArtifactV2ListingResponseBody = []ArtifactV2ListingResponse

ArtifactV2ListingResponseBody defines model for ArtifactV2ListingResponseBody.

type ArtifactV2Overview

type ArtifactV2Overview struct {
	ArtifactType *ArtifactTypeData `json:"artifact_type,omitempty"`
	Deployments  *Deployments      `json:"deployments,omitempty"`

	// Digest digest of the artifact
	Digest *string `json:"digest,omitempty"`

	// Id Artifact Identifier
	Id       *string                 `json:"id,omitempty"`
	Metadata *map[string]interface{} `json:"metadata,omitempty"`

	// Name Artifact Name
	Name            string                 `json:"name"`
	PipelineDetails *PipelineDetails       `json:"pipeline_details,omitempty"`
	SbomDetails     *SBOMInfo              `json:"sbom_details,omitempty"`
	Scorecard       *Scorecard             `json:"scorecard,omitempty"`
	Signing         *IntegrityVerification `json:"signing,omitempty"`
	SlsaDetails     *SLSADetails           `json:"slsa_details,omitempty"`
	SourceId        *string                `json:"source_id,omitempty"`

	// StoIssueCount The count of Security Issues, by severity code, for a given Harness Pipeline Execution along with this execution info
	StoIssueCount *StoIssueCount `json:"sto_issue_count,omitempty"`
	Tags          *[]string      `json:"tags,omitempty"`

	// Updated Last Updated time of artifact
	Updated *string `json:"updated,omitempty"`

	// Url Artifact URL
	Url        string      `json:"url"`
	Version    *string     `json:"version,omitempty"`
	Violations *Violations `json:"violations,omitempty"`
}

ArtifactV2Overview defines model for ArtifactV2Overview.

type ArtifactVariant

type ArtifactVariant struct {
	// Type type of the variant of the artifact.
	Type *ArtifactVariantType `json:"type,omitempty"`

	// Value Value of the variant of the artifact.
	Value *string `json:"value,omitempty"`
}

ArtifactVariant defines model for ArtifactVariant.

type ArtifactVariantType

type ArtifactVariantType string

ArtifactVariantType type of the variant of the artifact.

const (
	Branch ArtifactVariantType = "branch"
	Commit ArtifactVariantType = "commit"
	GitTag ArtifactVariantType = "gitTag"
	Tag    ArtifactVariantType = "tag"
)

Defines values for ArtifactVariantType.

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) ArtifactListV2

func (c *Client) ArtifactListV2(ctx context.Context, org OrgParam, project ProjectParam, source string, params *ArtifactListV2Params, body ArtifactListV2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ArtifactListV2WithBody

func (c *Client) ArtifactListV2WithBody(ctx context.Context, org OrgParam, project ProjectParam, source string, params *ArtifactListV2Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CodeRepositoriesList

func (c *Client) CodeRepositoriesList(ctx context.Context, org OrgParam, project ProjectParam, params *CodeRepositoriesListParams, body CodeRepositoriesListJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CodeRepositoriesListWithBody

func (c *Client) CodeRepositoriesListWithBody(ctx context.Context, org OrgParam, project ProjectParam, params *CodeRepositoriesListParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DownloadSbom

func (c *Client) DownloadSbom(ctx context.Context, org OrgParam, project ProjectParam, orchestrationId string, params *DownloadSbomParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) FetchComplianceResultsByArtifact

func (c *Client) FetchComplianceResultsByArtifact(ctx context.Context, org OrgParam, project ProjectParam, artifact Artifact, params *FetchComplianceResultsByArtifactParams, body FetchComplianceResultsByArtifactJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) FetchComplianceResultsByArtifactWithBody

func (c *Client) FetchComplianceResultsByArtifactWithBody(ctx context.Context, org OrgParam, project ProjectParam, artifact Artifact, params *FetchComplianceResultsByArtifactParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAllRepositoriesSummary

func (c *Client) GetAllRepositoriesSummary(ctx context.Context, org OrgParam, project ProjectParam, params *GetAllRepositoriesSummaryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetArtifactChainOfCustodyV2

func (c *Client) GetArtifactChainOfCustodyV2(ctx context.Context, org OrgParam, project ProjectParam, artifact Artifact, params *GetArtifactChainOfCustodyV2Params, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetArtifactComponentRemediationByPurl

func (c *Client) GetArtifactComponentRemediationByPurl(ctx context.Context, org OrgParam, project ProjectParam, artifact Artifact, params *GetArtifactComponentRemediationByPurlParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetArtifactV2DetailComponentView

func (c *Client) GetArtifactV2DetailComponentView(ctx context.Context, org OrgParam, project ProjectParam, artifact Artifact, params *GetArtifactV2DetailComponentViewParams, body GetArtifactV2DetailComponentViewJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetArtifactV2DetailComponentViewWithBody

func (c *Client) GetArtifactV2DetailComponentViewWithBody(ctx context.Context, org OrgParam, project ProjectParam, artifact Artifact, params *GetArtifactV2DetailComponentViewParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetArtifactV2Overview

func (c *Client) GetArtifactV2Overview(ctx context.Context, org OrgParam, project ProjectParam, source string, artifact Artifact, params *GetArtifactV2OverviewParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetCodeRepositoryOverview

func (c *Client) GetCodeRepositoryOverview(ctx context.Context, org OrgParam, project ProjectParam, codeRepo string, params *GetCodeRepositoryOverviewParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListArtifactSources

func (c *Client) ListArtifactSources(ctx context.Context, org OrgParam, project ProjectParam, params *ListArtifactSourcesParams, body ListArtifactSourcesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListArtifactSourcesWithBody

func (c *Client) ListArtifactSourcesWithBody(ctx context.Context, org OrgParam, project ProjectParam, params *ListArtifactSourcesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// DownloadSbom request
	DownloadSbom(ctx context.Context, org OrgParam, project ProjectParam, orchestrationId string, params *DownloadSbomParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListArtifactSourcesWithBody request with any body
	ListArtifactSourcesWithBody(ctx context.Context, org OrgParam, project ProjectParam, params *ListArtifactSourcesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ListArtifactSources(ctx context.Context, org OrgParam, project ProjectParam, params *ListArtifactSourcesParams, body ListArtifactSourcesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ArtifactListV2WithBody request with any body
	ArtifactListV2WithBody(ctx context.Context, org OrgParam, project ProjectParam, source string, params *ArtifactListV2Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ArtifactListV2(ctx context.Context, org OrgParam, project ProjectParam, source string, params *ArtifactListV2Params, body ArtifactListV2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetArtifactV2Overview request
	GetArtifactV2Overview(ctx context.Context, org OrgParam, project ProjectParam, source string, artifact Artifact, params *GetArtifactV2OverviewParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FetchComplianceResultsByArtifactWithBody request with any body
	FetchComplianceResultsByArtifactWithBody(ctx context.Context, org OrgParam, project ProjectParam, artifact Artifact, params *FetchComplianceResultsByArtifactParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	FetchComplianceResultsByArtifact(ctx context.Context, org OrgParam, project ProjectParam, artifact Artifact, params *FetchComplianceResultsByArtifactParams, body FetchComplianceResultsByArtifactJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetArtifactComponentRemediationByPurl request
	GetArtifactComponentRemediationByPurl(ctx context.Context, org OrgParam, project ProjectParam, artifact Artifact, params *GetArtifactComponentRemediationByPurlParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetArtifactV2DetailComponentViewWithBody request with any body
	GetArtifactV2DetailComponentViewWithBody(ctx context.Context, org OrgParam, project ProjectParam, artifact Artifact, params *GetArtifactV2DetailComponentViewParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	GetArtifactV2DetailComponentView(ctx context.Context, org OrgParam, project ProjectParam, artifact Artifact, params *GetArtifactV2DetailComponentViewParams, body GetArtifactV2DetailComponentViewJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CodeRepositoriesListWithBody request with any body
	CodeRepositoriesListWithBody(ctx context.Context, org OrgParam, project ProjectParam, params *CodeRepositoriesListParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CodeRepositoriesList(ctx context.Context, org OrgParam, project ProjectParam, params *CodeRepositoriesListParams, body CodeRepositoriesListJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAllRepositoriesSummary request
	GetAllRepositoriesSummary(ctx context.Context, org OrgParam, project ProjectParam, params *GetAllRepositoriesSummaryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCodeRepositoryOverview request
	GetCodeRepositoryOverview(ctx context.Context, org OrgParam, project ProjectParam, codeRepo string, params *GetCodeRepositoryOverviewParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetArtifactChainOfCustodyV2 request
	GetArtifactChainOfCustodyV2(ctx context.Context, org OrgParam, project ProjectParam, artifact Artifact, params *GetArtifactChainOfCustodyV2Params, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) ArtifactListV2WithBodyWithResponse

func (c *ClientWithResponses) ArtifactListV2WithBodyWithResponse(ctx context.Context, org OrgParam, project ProjectParam, source string, params *ArtifactListV2Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ArtifactListV2Response, error)

ArtifactListV2WithBodyWithResponse request with arbitrary body returning *ArtifactListV2Response

func (*ClientWithResponses) ArtifactListV2WithResponse

func (c *ClientWithResponses) ArtifactListV2WithResponse(ctx context.Context, org OrgParam, project ProjectParam, source string, params *ArtifactListV2Params, body ArtifactListV2JSONRequestBody, reqEditors ...RequestEditorFn) (*ArtifactListV2Response, error)

func (*ClientWithResponses) CodeRepositoriesListWithBodyWithResponse

func (c *ClientWithResponses) CodeRepositoriesListWithBodyWithResponse(ctx context.Context, org OrgParam, project ProjectParam, params *CodeRepositoriesListParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CodeRepositoriesListResponse, error)

CodeRepositoriesListWithBodyWithResponse request with arbitrary body returning *CodeRepositoriesListResponse

func (*ClientWithResponses) CodeRepositoriesListWithResponse

func (*ClientWithResponses) DownloadSbomWithResponse

func (c *ClientWithResponses) DownloadSbomWithResponse(ctx context.Context, org OrgParam, project ProjectParam, orchestrationId string, params *DownloadSbomParams, reqEditors ...RequestEditorFn) (*DownloadSbomResponse, error)

DownloadSbomWithResponse request returning *DownloadSbomResponse

func (*ClientWithResponses) FetchComplianceResultsByArtifactWithBodyWithResponse

func (c *ClientWithResponses) FetchComplianceResultsByArtifactWithBodyWithResponse(ctx context.Context, org OrgParam, project ProjectParam, artifact Artifact, params *FetchComplianceResultsByArtifactParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FetchComplianceResultsByArtifactResponse, error)

FetchComplianceResultsByArtifactWithBodyWithResponse request with arbitrary body returning *FetchComplianceResultsByArtifactResponse

func (*ClientWithResponses) GetAllRepositoriesSummaryWithResponse

func (c *ClientWithResponses) GetAllRepositoriesSummaryWithResponse(ctx context.Context, org OrgParam, project ProjectParam, params *GetAllRepositoriesSummaryParams, reqEditors ...RequestEditorFn) (*GetAllRepositoriesSummaryResponse, error)

GetAllRepositoriesSummaryWithResponse request returning *GetAllRepositoriesSummaryResponse

func (*ClientWithResponses) GetArtifactChainOfCustodyV2WithResponse

func (c *ClientWithResponses) GetArtifactChainOfCustodyV2WithResponse(ctx context.Context, org OrgParam, project ProjectParam, artifact Artifact, params *GetArtifactChainOfCustodyV2Params, reqEditors ...RequestEditorFn) (*GetArtifactChainOfCustodyV2Response, error)

GetArtifactChainOfCustodyV2WithResponse request returning *GetArtifactChainOfCustodyV2Response

func (*ClientWithResponses) GetArtifactComponentRemediationByPurlWithResponse

func (c *ClientWithResponses) GetArtifactComponentRemediationByPurlWithResponse(ctx context.Context, org OrgParam, project ProjectParam, artifact Artifact, params *GetArtifactComponentRemediationByPurlParams, reqEditors ...RequestEditorFn) (*GetArtifactComponentRemediationByPurlResponse, error)

GetArtifactComponentRemediationByPurlWithResponse request returning *GetArtifactComponentRemediationByPurlResponse

func (*ClientWithResponses) GetArtifactV2DetailComponentViewWithBodyWithResponse

func (c *ClientWithResponses) GetArtifactV2DetailComponentViewWithBodyWithResponse(ctx context.Context, org OrgParam, project ProjectParam, artifact Artifact, params *GetArtifactV2DetailComponentViewParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetArtifactV2DetailComponentViewResponse, error)

GetArtifactV2DetailComponentViewWithBodyWithResponse request with arbitrary body returning *GetArtifactV2DetailComponentViewResponse

func (*ClientWithResponses) GetArtifactV2OverviewWithResponse

func (c *ClientWithResponses) GetArtifactV2OverviewWithResponse(ctx context.Context, org OrgParam, project ProjectParam, source string, artifact Artifact, params *GetArtifactV2OverviewParams, reqEditors ...RequestEditorFn) (*GetArtifactV2OverviewResponse, error)

GetArtifactV2OverviewWithResponse request returning *GetArtifactV2OverviewResponse

func (*ClientWithResponses) GetCodeRepositoryOverviewWithResponse

func (c *ClientWithResponses) GetCodeRepositoryOverviewWithResponse(ctx context.Context, org OrgParam, project ProjectParam, codeRepo string, params *GetCodeRepositoryOverviewParams, reqEditors ...RequestEditorFn) (*GetCodeRepositoryOverviewResponse, error)

GetCodeRepositoryOverviewWithResponse request returning *GetCodeRepositoryOverviewResponse

func (*ClientWithResponses) ListArtifactSourcesWithBodyWithResponse

func (c *ClientWithResponses) ListArtifactSourcesWithBodyWithResponse(ctx context.Context, org OrgParam, project ProjectParam, params *ListArtifactSourcesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListArtifactSourcesResponse, error)

ListArtifactSourcesWithBodyWithResponse request with arbitrary body returning *ListArtifactSourcesResponse

func (*ClientWithResponses) ListArtifactSourcesWithResponse

func (c *ClientWithResponses) ListArtifactSourcesWithResponse(ctx context.Context, org OrgParam, project ProjectParam, params *ListArtifactSourcesParams, body ListArtifactSourcesJSONRequestBody, reqEditors ...RequestEditorFn) (*ListArtifactSourcesResponse, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// DownloadSbomWithResponse request
	DownloadSbomWithResponse(ctx context.Context, org OrgParam, project ProjectParam, orchestrationId string, params *DownloadSbomParams, reqEditors ...RequestEditorFn) (*DownloadSbomResponse, error)

	// ListArtifactSourcesWithBodyWithResponse request with any body
	ListArtifactSourcesWithBodyWithResponse(ctx context.Context, org OrgParam, project ProjectParam, params *ListArtifactSourcesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListArtifactSourcesResponse, error)

	ListArtifactSourcesWithResponse(ctx context.Context, org OrgParam, project ProjectParam, params *ListArtifactSourcesParams, body ListArtifactSourcesJSONRequestBody, reqEditors ...RequestEditorFn) (*ListArtifactSourcesResponse, error)

	// ArtifactListV2WithBodyWithResponse request with any body
	ArtifactListV2WithBodyWithResponse(ctx context.Context, org OrgParam, project ProjectParam, source string, params *ArtifactListV2Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ArtifactListV2Response, error)

	ArtifactListV2WithResponse(ctx context.Context, org OrgParam, project ProjectParam, source string, params *ArtifactListV2Params, body ArtifactListV2JSONRequestBody, reqEditors ...RequestEditorFn) (*ArtifactListV2Response, error)

	// GetArtifactV2OverviewWithResponse request
	GetArtifactV2OverviewWithResponse(ctx context.Context, org OrgParam, project ProjectParam, source string, artifact Artifact, params *GetArtifactV2OverviewParams, reqEditors ...RequestEditorFn) (*GetArtifactV2OverviewResponse, error)

	// FetchComplianceResultsByArtifactWithBodyWithResponse request with any body
	FetchComplianceResultsByArtifactWithBodyWithResponse(ctx context.Context, org OrgParam, project ProjectParam, artifact Artifact, params *FetchComplianceResultsByArtifactParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FetchComplianceResultsByArtifactResponse, error)

	FetchComplianceResultsByArtifactWithResponse(ctx context.Context, org OrgParam, project ProjectParam, artifact Artifact, params *FetchComplianceResultsByArtifactParams, body FetchComplianceResultsByArtifactJSONRequestBody, reqEditors ...RequestEditorFn) (*FetchComplianceResultsByArtifactResponse, error)

	// GetArtifactComponentRemediationByPurlWithResponse request
	GetArtifactComponentRemediationByPurlWithResponse(ctx context.Context, org OrgParam, project ProjectParam, artifact Artifact, params *GetArtifactComponentRemediationByPurlParams, reqEditors ...RequestEditorFn) (*GetArtifactComponentRemediationByPurlResponse, error)

	// GetArtifactV2DetailComponentViewWithBodyWithResponse request with any body
	GetArtifactV2DetailComponentViewWithBodyWithResponse(ctx context.Context, org OrgParam, project ProjectParam, artifact Artifact, params *GetArtifactV2DetailComponentViewParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetArtifactV2DetailComponentViewResponse, error)

	GetArtifactV2DetailComponentViewWithResponse(ctx context.Context, org OrgParam, project ProjectParam, artifact Artifact, params *GetArtifactV2DetailComponentViewParams, body GetArtifactV2DetailComponentViewJSONRequestBody, reqEditors ...RequestEditorFn) (*GetArtifactV2DetailComponentViewResponse, error)

	// CodeRepositoriesListWithBodyWithResponse request with any body
	CodeRepositoriesListWithBodyWithResponse(ctx context.Context, org OrgParam, project ProjectParam, params *CodeRepositoriesListParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CodeRepositoriesListResponse, error)

	CodeRepositoriesListWithResponse(ctx context.Context, org OrgParam, project ProjectParam, params *CodeRepositoriesListParams, body CodeRepositoriesListJSONRequestBody, reqEditors ...RequestEditorFn) (*CodeRepositoriesListResponse, error)

	// GetAllRepositoriesSummaryWithResponse request
	GetAllRepositoriesSummaryWithResponse(ctx context.Context, org OrgParam, project ProjectParam, params *GetAllRepositoriesSummaryParams, reqEditors ...RequestEditorFn) (*GetAllRepositoriesSummaryResponse, error)

	// GetCodeRepositoryOverviewWithResponse request
	GetCodeRepositoryOverviewWithResponse(ctx context.Context, org OrgParam, project ProjectParam, codeRepo string, params *GetCodeRepositoryOverviewParams, reqEditors ...RequestEditorFn) (*GetCodeRepositoryOverviewResponse, error)

	// GetArtifactChainOfCustodyV2WithResponse request
	GetArtifactChainOfCustodyV2WithResponse(ctx context.Context, org OrgParam, project ProjectParam, artifact Artifact, params *GetArtifactChainOfCustodyV2Params, reqEditors ...RequestEditorFn) (*GetArtifactChainOfCustodyV2Response, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CodeRepositoriesListJSONRequestBody

type CodeRepositoriesListJSONRequestBody = CodeRepositoryListingRequest

CodeRepositoriesListJSONRequestBody defines body for CodeRepositoriesList for application/json ContentType.

type CodeRepositoriesListParams

type CodeRepositoriesListParams struct {
	// Limit Number of items to return per page.
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`

	// Order Order on the basis of which sorting is done.
	Order *CodeRepositoriesListParamsOrder `form:"order,omitempty" json:"order,omitempty"`

	// Page Pagination page number strategy: Specify the page number within the paginated collection related to the number of items in each page
	Page *Page `form:"page,omitempty" json:"page,omitempty"`

	// Sort Parameter on the basis of which sorting is done.
	Sort *CodeRepositoriesListParamsSort `form:"sort,omitempty" json:"sort,omitempty"`

	// HarnessAccount Identifier field of the account the resource is scoped to. This is required for Authorization methods other than the x-api-key header. If you are using the x-api-key header, this can be skipped.
	HarnessAccount AccountHeader `json:"Harness-Account"`
}

CodeRepositoriesListParams defines parameters for CodeRepositoriesList.

type CodeRepositoriesListParamsOrder

type CodeRepositoriesListParamsOrder string

CodeRepositoriesListParamsOrder defines parameters for CodeRepositoriesList.

Defines values for CodeRepositoriesListParamsOrder.

type CodeRepositoriesListParamsSort

type CodeRepositoriesListParamsSort string

CodeRepositoriesListParamsSort defines parameters for CodeRepositoriesList.

const (
	ComplianceResults CodeRepositoriesListParamsSort = "compliance_results"
	LastScan          CodeRepositoriesListParamsSort = "last_scan"
	Name              CodeRepositoriesListParamsSort = "name"
)

Defines values for CodeRepositoriesListParamsSort.

type CodeRepositoriesListResponse

type CodeRepositoriesListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CodeRepositoryListingResponseBody
}

func ParseCodeRepositoriesListResponse

func ParseCodeRepositoriesListResponse(rsp *http.Response) (*CodeRepositoriesListResponse, error)

ParseCodeRepositoriesListResponse parses an HTTP response from a CodeRepositoriesListWithResponse call

func (CodeRepositoriesListResponse) Status

Status returns HTTPResponse.Status

func (CodeRepositoriesListResponse) StatusCode

func (r CodeRepositoriesListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CodeRepositoryListingRequest

type CodeRepositoryListingRequest struct {
	DependencyFilter     *[]ComponentFilter `json:"dependency_filter,omitempty"`
	DependencyFilterList *[]ComponentFilter `json:"dependency_filter_list,omitempty"`
	LicenseFilter        *LicenseFilter     `json:"license_filter,omitempty"`
	LicenseFilterList    *[]LicenseFilter   `json:"license_filter_list,omitempty"`
	SearchTerm           *string            `json:"search_term,omitempty"`
}

CodeRepositoryListingRequest defines model for CodeRepositoryListingRequest.

type CodeRepositoryListingRequestBody

type CodeRepositoryListingRequestBody = CodeRepositoryListingRequest

CodeRepositoryListingRequestBody defines model for CodeRepositoryListingRequestBody.

type CodeRepositoryListingResponse

type CodeRepositoryListingResponse struct {
	// DependenciesCount Number of dependencies of the repository
	DependenciesCount *int `json:"dependencies_count,omitempty"`

	// Id Code Respository ID
	Id             *string          `json:"id,omitempty"`
	LastActivityAt *string          `json:"last_activity_at,omitempty"`
	LastScan       *PipelineDetails `json:"last_scan,omitempty"`

	// Name Code Repository Name
	Name               *string             `json:"name,omitempty"`
	OrchestrationId    *string             `json:"orchestration_id,omitempty"`
	RepositoryPlatform *RepositoryPlatform `json:"repository_platform,omitempty"`
	RiskAndCompliance  *RiskAndCompliance  `json:"risk_and_compliance,omitempty"`
	Scorecard          *Scorecard          `json:"scorecard,omitempty"`

	// StoIssueCount The count of Security Issues, by severity code, for a given Harness Pipeline Execution along with this execution info
	StoIssueCount *StoIssueCount `json:"sto_issue_count,omitempty"`

	// Url Code Repository URL
	Url     *string          `json:"url,omitempty"`
	Variant *ArtifactVariant `json:"variant,omitempty"`
}

CodeRepositoryListingResponse defines model for CodeRepositoryListingResponse.

type CodeRepositoryListingResponseBody

type CodeRepositoryListingResponseBody = []CodeRepositoryListingResponse

CodeRepositoryListingResponseBody defines model for CodeRepositoryListingResponseBody.

type CodeRepositoryOverview

type CodeRepositoryOverview struct {
	ComplianceSummary  *ComplianceEvaluationSummary `json:"compliance_summary,omitempty"`
	DriftSummary       *DriftDetailsDTO             `json:"drift_summary,omitempty"`
	LastCommit         *string                      `json:"last_commit,omitempty"`
	LastEvaluation     *int64                       `json:"last_evaluation,omitempty"`
	Name               string                       `json:"name"`
	RepoIdentifier     string                       `json:"repo_identifier"`
	RepositoryPlatform *RepositoryPlatform          `json:"repository_platform,omitempty"`
	SbomDetails        *SBOMInfo                    `json:"sbom_details,omitempty"`
	Scorecard          *Scorecard                   `json:"scorecard,omitempty"`
	Url                string                       `json:"url"`
	Variant            *ArtifactVariant             `json:"variant,omitempty"`
	Violations         *Violations                  `json:"violations,omitempty"`

	// Vulnerabilities The count of Security Issues, by severity code, for a given Harness Pipeline Execution along with this execution info
	Vulnerabilities *StoIssueCount `json:"vulnerabilities,omitempty"`
}

CodeRepositoryOverview defines model for CodeRepositoryOverview.

type CodeRepositoryOverviewResponseBody

type CodeRepositoryOverviewResponseBody = CodeRepositoryOverview

CodeRepositoryOverviewResponseBody defines model for CodeRepositoryOverviewResponseBody.

type ComplianceCheckSeverity

type ComplianceCheckSeverity string

ComplianceCheckSeverity defines model for ComplianceCheckSeverity.

const (
	CRITICAL ComplianceCheckSeverity = "CRITICAL"
	HIGH     ComplianceCheckSeverity = "HIGH"
	LOW      ComplianceCheckSeverity = "LOW"
	MEDIUM   ComplianceCheckSeverity = "MEDIUM"
)

Defines values for ComplianceCheckSeverity.

type ComplianceEvaluationHistory

type ComplianceEvaluationHistory struct {
	CreatedAt           *int64                     `json:"created_at,omitempty"`
	Description         *string                    `json:"description,omitempty"`
	Occurrences         *[]ComplianceOccurrenceDTO `json:"occurrences,omitempty"`
	PipelineExecutionId *string                    `json:"pipeline_execution_id,omitempty"`
	PipelineId          *string                    `json:"pipeline_id,omitempty"`
	Reason              *string                    `json:"reason,omitempty"`
	Remediation         *string                    `json:"remediation,omitempty"`
	StageExecutionId    *string                    `json:"stage_execution_id,omitempty"`
	Status              *ComplianceResultStatus    `json:"status,omitempty"`
	StepExecutionId     *string                    `json:"step_execution_id,omitempty"`
}

ComplianceEvaluationHistory defines model for ComplianceEvaluationHistory.

type ComplianceEvaluationSummary

type ComplianceEvaluationSummary struct {
	CriticialFailures *int   `json:"criticial_failures,omitempty"`
	EvaluationTime    *int64 `json:"evaluation_time,omitempty"`
	Failed            *int   `json:"failed,omitempty"`
	HighFailures      *int   `json:"high_failures,omitempty"`
	LowFailures       *int   `json:"low_failures,omitempty"`
	MediumFailures    *int   `json:"medium_failures,omitempty"`
	Passed            *int   `json:"passed,omitempty"`
}

ComplianceEvaluationSummary defines model for ComplianceEvaluationSummary.

type ComplianceOccurrenceDTO

type ComplianceOccurrenceDTO struct {
	// LineNumber Line number of snippet.
	LineNumber *int `json:"line_number,omitempty"`

	// Snippet Depicts occurrence snippet.
	Snippet *string `json:"snippet,omitempty"`

	// SnippetUrl URL to go to snippet
	SnippetUrl *string `json:"snippet_url,omitempty"`
}

ComplianceOccurrenceDTO defines model for ComplianceOccurrenceDTO.

type ComplianceResultByArtifactFilter

type ComplianceResultByArtifactFilter struct {
	ComplianceId *string                   `json:"compliance_id,omitempty"`
	SearchTerm   *string                   `json:"search_term,omitempty"`
	Severity     *ComplianceCheckSeverity  `json:"severity,omitempty"`
	Standards    *[]ComplianceStandardType `json:"standards,omitempty"`
	Status       *[]ComplianceResultStatus `json:"status,omitempty"`
}

ComplianceResultByArtifactFilter defines model for ComplianceResultByArtifactFilter.

type ComplianceResultStatus

type ComplianceResultStatus string

ComplianceResultStatus defines model for ComplianceResultStatus.

const (
	ComplianceResultStatusFAILED  ComplianceResultStatus = "FAILED"
	ComplianceResultStatusPASSED  ComplianceResultStatus = "PASSED"
	ComplianceResultStatusUNKNOWN ComplianceResultStatus = "UNKNOWN"
)

Defines values for ComplianceResultStatus.

type ComplianceStandardType

type ComplianceStandardType string

ComplianceStandardType defines model for ComplianceStandardType.

const (
	CIS   ComplianceStandardType = "CIS"
	OWASP ComplianceStandardType = "OWASP"
)

Defines values for ComplianceStandardType.

type ComponentFilter

type ComponentFilter struct {
	FieldName ComponentFilterFieldName `json:"field_name"`
	Operator  Operator                 `json:"operator"`
	Value     string                   `json:"value"`
}

ComponentFilter defines model for ComponentFilter.

type ComponentFilterFieldName

type ComponentFilterFieldName string

ComponentFilterFieldName defines model for ComponentFilter.FieldName.

const (
	ComponentName    ComponentFilterFieldName = "ComponentName"
	ComponentVersion ComponentFilterFieldName = "ComponentVersion"
)

Defines values for ComponentFilterFieldName.

type ComponentRemediationResponse

type ComponentRemediationResponse struct {
	// CurrentVersion Current version of the component
	CurrentVersion    string             `json:"current_version"`
	DependencyChanges *DependencyChanges `json:"dependency_changes,omitempty"`

	// EolStatus End of life status of the component
	EolStatus *EOLStatus `json:"eol_status,omitempty"`

	// IsOutdated Whether the component is outdated or not
	IsOutdated *bool `json:"is_outdated,omitempty"`

	// RecommendedVersion Recommended version to upgrade
	RecommendedVersion string `json:"recommended_version"`

	// RemediationInfo Remediation information
	RemediationInfo *string `json:"remediation_info,omitempty"`

	// RemediationWarnings List of warnings
	RemediationWarnings *[]RemediationWarning `json:"remediation_warnings,omitempty"`

	// Summary Summary of the remediation
	Summary string `json:"summary"`

	// TargetVersion Target version of the component
	TargetVersion              *string                     `json:"target_version,omitempty"`
	TargetVersionVulnerability *TargetVersionVulnerability `json:"target_version_vulnerability,omitempty"`

	// TargetVersions List of versions to upgrade to for fixing the vulnerability
	TargetVersions []string `json:"target_versions"`
}

ComponentRemediationResponse defines model for ComponentRemediationResponse.

type DependencyChange

type DependencyChange struct {
	// ChangeType Type of change
	ChangeType *DependencyChangeChangeType `json:"change_type,omitempty"`

	// Name Name of the dependency
	Name *string `json:"name,omitempty"`

	// Purl Purl of the dependency
	Purl *string `json:"purl,omitempty"`

	// Version Version of the dependency
	Version *string `json:"version,omitempty"`

	// VulnerabilitiesCount The count of Security Issues, by severity code, for a given Harness Pipeline Execution along with this execution info
	VulnerabilitiesCount *StoIssueCount `json:"vulnerabilities_count,omitempty"`

	// VulnerabilityDelta Number of vulnerabilities changed. Negative value indicates vulnerabilities removed, positive value indicates vulnerabilities added.
	VulnerabilityDelta *int `json:"vulnerability_delta,omitempty"`
}

DependencyChange defines model for DependencyChange.

type DependencyChangeChangeType

type DependencyChangeChangeType string

DependencyChangeChangeType Type of change

const (
	ADDED    DependencyChangeChangeType = "ADDED"
	MODIFIED DependencyChangeChangeType = "MODIFIED"
	REMOVED  DependencyChangeChangeType = "REMOVED"
)

Defines values for DependencyChangeChangeType.

type DependencyChanges

type DependencyChanges struct {
	// Changes List of dependencies added
	Changes *[]DependencyChange `json:"changes,omitempty"`

	// Warnings List of warnings
	Warnings *[]string `json:"warnings,omitempty"`
}

DependencyChanges defines model for DependencyChanges.

type DependencyType

type DependencyType string

DependencyType defines model for DependencyType.

const (
	DependencyTypeDIRECT     DependencyType = "DIRECT"
	DependencyTypeTRANSITIVE DependencyType = "TRANSITIVE"
	DependencyTypeUNKNOWN    DependencyType = "UNKNOWN"
)

Defines values for DependencyType.

type Deployments

type Deployments struct {
	EnvIdentifier   *string          `json:"env_identifier,omitempty"`
	EnvName         *string          `json:"env_name,omitempty"`
	EnvType         interface{}      `json:"env_type,omitempty"`
	NonProdEnvCount *int             `json:"non_prod_env_count,omitempty"`
	PipelineDetails *PipelineDetails `json:"pipeline_details,omitempty"`
	ProdEnvCount    *int             `json:"prod_env_count,omitempty"`
}

Deployments defines model for Deployments.

type DigestParam

type DigestParam = string

DigestParam defines model for DigestParam.

type DownloadSbomParams

type DownloadSbomParams struct {
	// HarnessAccount Identifier field of the account the resource is scoped to. This is required for Authorization methods other than the x-api-key header. If you are using the x-api-key header, this can be skipped.
	HarnessAccount AccountHeader `json:"Harness-Account"`
}

DownloadSbomParams defines parameters for DownloadSbom.

type DownloadSbomResponse

type DownloadSbomResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ArtifactSbomResponseBody
}

func ParseDownloadSbomResponse

func ParseDownloadSbomResponse(rsp *http.Response) (*DownloadSbomResponse, error)

ParseDownloadSbomResponse parses an HTTP response from a DownloadSbomWithResponse call

func (DownloadSbomResponse) Status

func (r DownloadSbomResponse) Status() string

Status returns HTTPResponse.Status

func (DownloadSbomResponse) StatusCode

func (r DownloadSbomResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DriftDetailsDTO

type DriftDetailsDTO struct {
	DriftSummary      *OrchestrationDriftSummary `json:"drift_summary,omitempty"`
	OrgIdentifier     string                     `json:"org_identifier"`
	ProjectIdentifier string                     `json:"project_identifier"`
}

DriftDetailsDTO defines model for DriftDetailsDTO.

type EOLStatus

type EOLStatus string

EOLStatus End of life status of the component

const (
	EOLStatusCLOSETOEOL EOLStatus = "CLOSE_TO_EOL"
	EOLStatusDERIVEDEOL EOLStatus = "DERIVED_EOL"
	EOLStatusEOL        EOLStatus = "EOL"
)

Defines values for EOLStatus.

type ExecutionContextV2

type ExecutionContextV2 struct {
	Type ExecutionContextV2Type `json:"type"`
}

ExecutionContextV2 Details of the Execution Context

type ExecutionContextV2Type

type ExecutionContextV2Type string

ExecutionContextV2Type defines model for ExecutionContextV2.Type.

const (
	Github  ExecutionContextV2Type = "github"
	Harness ExecutionContextV2Type = "harness"
)

Defines values for ExecutionContextV2Type.

type FetchComplianceResultByArtifactRequestBody

type FetchComplianceResultByArtifactRequestBody = ComplianceResultByArtifactFilter

FetchComplianceResultByArtifactRequestBody defines model for FetchComplianceResultByArtifactRequestBody.

type FetchComplianceResultByArtifactResponse

type FetchComplianceResultByArtifactResponse = []FetchComplianceResultByArtifactResponseBody

FetchComplianceResultByArtifactResponse defines model for FetchComplianceResultByArtifactResponse.

type FetchComplianceResultByArtifactResponseBody

type FetchComplianceResultByArtifactResponseBody struct {
	ComplianceId        *string                        `json:"compliance_id,omitempty"`
	Description         *string                        `json:"description,omitempty"`
	EvaluationHistory   *[]ComplianceEvaluationHistory `json:"evaluation_history,omitempty"`
	EvaluationTime      *int64                         `json:"evaluation_time,omitempty"`
	Occurrences         *[]ComplianceOccurrenceDTO     `json:"occurrences,omitempty"`
	PipelineExecutionId *string                        `json:"pipelineExecutionId,omitempty"`
	Reason              *string                        `json:"reason,omitempty"`
	Remediation         *string                        `json:"remediation,omitempty"`
	Severity            *ComplianceCheckSeverity       `json:"severity,omitempty"`
	Standards           *[]ComplianceStandardType      `json:"standards,omitempty"`
	Status              *ComplianceResultStatus        `json:"status,omitempty"`
	Tags                *[]string                      `json:"tags,omitempty"`
	Title               *string                        `json:"title,omitempty"`
}

FetchComplianceResultByArtifactResponseBody defines model for FetchComplianceResultByArtifactResponseBody.

type FetchComplianceResultsByArtifactJSONRequestBody

type FetchComplianceResultsByArtifactJSONRequestBody = ComplianceResultByArtifactFilter

FetchComplianceResultsByArtifactJSONRequestBody defines body for FetchComplianceResultsByArtifact for application/json ContentType.

type FetchComplianceResultsByArtifactParams

type FetchComplianceResultsByArtifactParams struct {
	// Page Pagination page number strategy: Specify the page number within the paginated collection related to the number of items in each page
	Page *Page `form:"page,omitempty" json:"page,omitempty"`

	// Limit Number of items to return per page.
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`

	// Order Order on the basis of which sorting is done.
	Order *FetchComplianceResultsByArtifactParamsOrder `form:"order,omitempty" json:"order,omitempty"`

	// Sort Parameter on the basis of which sorting is done.
	Sort *FetchComplianceResultsByArtifactParamsSort `form:"sort,omitempty" json:"sort,omitempty"`

	// HarnessAccount Identifier field of the account the resource is scoped to. This is required for Authorization methods other than the x-api-key header. If you are using the x-api-key header, this can be skipped.
	HarnessAccount AccountHeader `json:"Harness-Account"`
}

FetchComplianceResultsByArtifactParams defines parameters for FetchComplianceResultsByArtifact.

type FetchComplianceResultsByArtifactParamsOrder

type FetchComplianceResultsByArtifactParamsOrder string

FetchComplianceResultsByArtifactParamsOrder defines parameters for FetchComplianceResultsByArtifact.

const (
	FetchComplianceResultsByArtifactParamsOrderASC  FetchComplianceResultsByArtifactParamsOrder = "ASC"
	FetchComplianceResultsByArtifactParamsOrderDESC FetchComplianceResultsByArtifactParamsOrder = "DESC"
)

Defines values for FetchComplianceResultsByArtifactParamsOrder.

type FetchComplianceResultsByArtifactParamsSort

type FetchComplianceResultsByArtifactParamsSort string

FetchComplianceResultsByArtifactParamsSort defines parameters for FetchComplianceResultsByArtifact.

Defines values for FetchComplianceResultsByArtifactParamsSort.

type FetchComplianceResultsByArtifactResponse

type FetchComplianceResultsByArtifactResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *FetchComplianceResultByArtifactResponse
}

func ParseFetchComplianceResultsByArtifactResponse

func ParseFetchComplianceResultsByArtifactResponse(rsp *http.Response) (*FetchComplianceResultsByArtifactResponse, error)

ParseFetchComplianceResultsByArtifactResponse parses an HTTP response from a FetchComplianceResultsByArtifactWithResponse call

func (FetchComplianceResultsByArtifactResponse) Status

Status returns HTTPResponse.Status

func (FetchComplianceResultsByArtifactResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetAllRepositoriesSummaryParams

type GetAllRepositoriesSummaryParams struct {
	// HarnessAccount Identifier field of the account the resource is scoped to. This is required for Authorization methods other than the x-api-key header. If you are using the x-api-key header, this can be skipped.
	HarnessAccount AccountHeader `json:"Harness-Account"`
}

GetAllRepositoriesSummaryParams defines parameters for GetAllRepositoriesSummary.

type GetAllRepositoriesSummaryResponse

type GetAllRepositoriesSummaryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *RepositoriesSummary
}

func ParseGetAllRepositoriesSummaryResponse

func ParseGetAllRepositoriesSummaryResponse(rsp *http.Response) (*GetAllRepositoriesSummaryResponse, error)

ParseGetAllRepositoriesSummaryResponse parses an HTTP response from a GetAllRepositoriesSummaryWithResponse call

func (GetAllRepositoriesSummaryResponse) Status

Status returns HTTPResponse.Status

func (GetAllRepositoriesSummaryResponse) StatusCode

func (r GetAllRepositoriesSummaryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetArtifactChainOfCustodyV2Params

type GetArtifactChainOfCustodyV2Params struct {
	// HarnessAccount Identifier field of the account the resource is scoped to. This is required for Authorization methods other than the x-api-key header. If you are using the x-api-key header, this can be skipped.
	HarnessAccount AccountHeader `json:"Harness-Account"`
}

GetArtifactChainOfCustodyV2Params defines parameters for GetArtifactChainOfCustodyV2.

type GetArtifactChainOfCustodyV2Response

type GetArtifactChainOfCustodyV2Response struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]ArtifactChainOfCustodyV2
}

func ParseGetArtifactChainOfCustodyV2Response

func ParseGetArtifactChainOfCustodyV2Response(rsp *http.Response) (*GetArtifactChainOfCustodyV2Response, error)

ParseGetArtifactChainOfCustodyV2Response parses an HTTP response from a GetArtifactChainOfCustodyV2WithResponse call

func (GetArtifactChainOfCustodyV2Response) Status

Status returns HTTPResponse.Status

func (GetArtifactChainOfCustodyV2Response) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetArtifactComponentRemediationByPurlParams

type GetArtifactComponentRemediationByPurlParams struct {
	// TargetVersion Target version of the component
	TargetVersion *TargetVersion `form:"target_version,omitempty" json:"target_version,omitempty"`

	// Purl purl of the component
	Purl string `form:"purl" json:"purl"`

	// HarnessAccount Identifier field of the account the resource is scoped to. This is required for Authorization methods other than the x-api-key header. If you are using the x-api-key header, this can be skipped.
	HarnessAccount AccountHeader `json:"Harness-Account"`
}

GetArtifactComponentRemediationByPurlParams defines parameters for GetArtifactComponentRemediationByPurl.

type GetArtifactComponentRemediationByPurlResponse

type GetArtifactComponentRemediationByPurlResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ArtifactComponentRemediationResponseBody
}

func ParseGetArtifactComponentRemediationByPurlResponse

func ParseGetArtifactComponentRemediationByPurlResponse(rsp *http.Response) (*GetArtifactComponentRemediationByPurlResponse, error)

ParseGetArtifactComponentRemediationByPurlResponse parses an HTTP response from a GetArtifactComponentRemediationByPurlWithResponse call

func (GetArtifactComponentRemediationByPurlResponse) Status

Status returns HTTPResponse.Status

func (GetArtifactComponentRemediationByPurlResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetArtifactV2DetailComponentViewJSONRequestBody

type GetArtifactV2DetailComponentViewJSONRequestBody = ArtifactComponentViewRequestBody

GetArtifactV2DetailComponentViewJSONRequestBody defines body for GetArtifactV2DetailComponentView for application/json ContentType.

type GetArtifactV2DetailComponentViewParams

type GetArtifactV2DetailComponentViewParams struct {
	// Limit Number of items to return per page.
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`

	// Order Order on the basis of which sorting is done.
	Order *GetArtifactV2DetailComponentViewParamsOrder `form:"order,omitempty" json:"order,omitempty"`

	// Page Pagination page number strategy: Specify the page number within the paginated collection related to the number of items in each page
	Page *Page `form:"page,omitempty" json:"page,omitempty"`

	// Sort Parameter on the basis of which sorting is done.
	Sort *GetArtifactV2DetailComponentViewParamsSort `form:"sort,omitempty" json:"sort,omitempty"`

	// HarnessAccount Identifier field of the account the resource is scoped to. This is required for Authorization methods other than the x-api-key header. If you are using the x-api-key header, this can be skipped.
	HarnessAccount AccountHeader `json:"Harness-Account"`
}

GetArtifactV2DetailComponentViewParams defines parameters for GetArtifactV2DetailComponentView.

type GetArtifactV2DetailComponentViewParamsOrder

type GetArtifactV2DetailComponentViewParamsOrder string

GetArtifactV2DetailComponentViewParamsOrder defines parameters for GetArtifactV2DetailComponentView.

const (
	GetArtifactV2DetailComponentViewParamsOrderASC  GetArtifactV2DetailComponentViewParamsOrder = "ASC"
	GetArtifactV2DetailComponentViewParamsOrderDESC GetArtifactV2DetailComponentViewParamsOrder = "DESC"
)

Defines values for GetArtifactV2DetailComponentViewParamsOrder.

type GetArtifactV2DetailComponentViewParamsSort

type GetArtifactV2DetailComponentViewParamsSort string

GetArtifactV2DetailComponentViewParamsSort defines parameters for GetArtifactV2DetailComponentView.

const (
	PackageName     GetArtifactV2DetailComponentViewParamsSort = "package_name"
	PackageSupplier GetArtifactV2DetailComponentViewParamsSort = "package_supplier"
)

Defines values for GetArtifactV2DetailComponentViewParamsSort.

type GetArtifactV2DetailComponentViewResponse

type GetArtifactV2DetailComponentViewResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ArtifactComponentViewResponseBody
}

func ParseGetArtifactV2DetailComponentViewResponse

func ParseGetArtifactV2DetailComponentViewResponse(rsp *http.Response) (*GetArtifactV2DetailComponentViewResponse, error)

ParseGetArtifactV2DetailComponentViewResponse parses an HTTP response from a GetArtifactV2DetailComponentViewWithResponse call

func (GetArtifactV2DetailComponentViewResponse) Status

Status returns HTTPResponse.Status

func (GetArtifactV2DetailComponentViewResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetArtifactV2OverviewParams

type GetArtifactV2OverviewParams struct {
	// HarnessAccount Identifier field of the account the resource is scoped to. This is required for Authorization methods other than the x-api-key header. If you are using the x-api-key header, this can be skipped.
	HarnessAccount AccountHeader `json:"Harness-Account"`
}

GetArtifactV2OverviewParams defines parameters for GetArtifactV2Overview.

type GetArtifactV2OverviewResponse

type GetArtifactV2OverviewResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ArtifactV2Overview
}

func ParseGetArtifactV2OverviewResponse

func ParseGetArtifactV2OverviewResponse(rsp *http.Response) (*GetArtifactV2OverviewResponse, error)

ParseGetArtifactV2OverviewResponse parses an HTTP response from a GetArtifactV2OverviewWithResponse call

func (GetArtifactV2OverviewResponse) Status

Status returns HTTPResponse.Status

func (GetArtifactV2OverviewResponse) StatusCode

func (r GetArtifactV2OverviewResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetCodeRepositoryOverviewParams

type GetCodeRepositoryOverviewParams struct {
	// HarnessAccount Identifier field of the account the resource is scoped to. This is required for Authorization methods other than the x-api-key header. If you are using the x-api-key header, this can be skipped.
	HarnessAccount AccountHeader `json:"Harness-Account"`
}

GetCodeRepositoryOverviewParams defines parameters for GetCodeRepositoryOverview.

type GetCodeRepositoryOverviewResponse

type GetCodeRepositoryOverviewResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CodeRepositoryOverviewResponseBody
}

func ParseGetCodeRepositoryOverviewResponse

func ParseGetCodeRepositoryOverviewResponse(rsp *http.Response) (*GetCodeRepositoryOverviewResponse, error)

ParseGetCodeRepositoryOverviewResponse parses an HTTP response from a GetCodeRepositoryOverviewWithResponse call

func (GetCodeRepositoryOverviewResponse) Status

Status returns HTTPResponse.Status

func (GetCodeRepositoryOverviewResponse) StatusCode

func (r GetCodeRepositoryOverviewResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type IntegrityVerification

type IntegrityVerification struct {
	ErrorMessage        *string             `json:"error_message,omitempty"`
	OrgId               *string             `json:"org_id,omitempty"`
	PipelineExecutionId *string             `json:"pipeline_execution_id,omitempty"`
	PipelineId          *string             `json:"pipeline_id,omitempty"`
	ProjectId           *string             `json:"project_id,omitempty"`
	Rekor               *RekorLog           `json:"rekor,omitempty"`
	Status              *VerificationStatus `json:"status,omitempty"`
}

IntegrityVerification defines model for IntegrityVerification.

type LayerType

type LayerType = interface{}

LayerType defines model for LayerType.

type LicenseFilter

type LicenseFilter struct {
	Operator Operator `json:"operator"`
	Value    string   `json:"value"`
}

LicenseFilter defines model for LicenseFilter.

type Limit

type Limit = int

Limit defines model for Limit.

type ListArtifactSourcesJSONRequestBody

type ListArtifactSourcesJSONRequestBody = ArtifactListingRequestBody

ListArtifactSourcesJSONRequestBody defines body for ListArtifactSources for application/json ContentType.

type ListArtifactSourcesParams

type ListArtifactSourcesParams struct {
	// Limit Number of items to return per page.
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`

	// Order Order on the basis of which sorting is done.
	Order *ListArtifactSourcesParamsOrder `form:"order,omitempty" json:"order,omitempty"`

	// Page Pagination page number strategy: Specify the page number within the paginated collection related to the number of items in each page
	Page *Page `form:"page,omitempty" json:"page,omitempty"`

	// Sort Parameter on the basis of which sorting is done.
	Sort interface{} `form:"sort,omitempty" json:"sort,omitempty"`

	// HarnessAccount Identifier field of the account the resource is scoped to. This is required for Authorization methods other than the x-api-key header. If you are using the x-api-key header, this can be skipped.
	HarnessAccount AccountHeader `json:"Harness-Account"`
}

ListArtifactSourcesParams defines parameters for ListArtifactSources.

type ListArtifactSourcesParamsOrder

type ListArtifactSourcesParamsOrder string

ListArtifactSourcesParamsOrder defines parameters for ListArtifactSources.

const (
	ListArtifactSourcesParamsOrderASC  ListArtifactSourcesParamsOrder = "ASC"
	ListArtifactSourcesParamsOrderDESC ListArtifactSourcesParamsOrder = "DESC"
)

Defines values for ListArtifactSourcesParamsOrder.

type ListArtifactSourcesResponse

type ListArtifactSourcesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ArtifactSourcesListingHttpResponse
}

func ParseListArtifactSourcesResponse

func ParseListArtifactSourcesResponse(rsp *http.Response) (*ListArtifactSourcesResponse, error)

ParseListArtifactSourcesResponse parses an HTTP response from a ListArtifactSourcesWithResponse call

func (ListArtifactSourcesResponse) Status

Status returns HTTPResponse.Status

func (ListArtifactSourcesResponse) StatusCode

func (r ListArtifactSourcesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Operator

type Operator = interface{}

Operator defines model for Operator.

type OrchestrationDriftSummary

type OrchestrationDriftSummary struct {
	Base               *string `json:"base,omitempty"`
	BaseTag            *string `json:"base_tag,omitempty"`
	ComponentDrifts    *int    `json:"component_drifts,omitempty"`
	ComponentsAdded    *int    `json:"components_added,omitempty"`
	ComponentsDeleted  *int    `json:"components_deleted,omitempty"`
	ComponentsModified *int    `json:"components_modified,omitempty"`
	DriftId            *string `json:"drift_id,omitempty"`
	LicenseAdded       *int    `json:"license_added,omitempty"`
	LicenseDeleted     *int    `json:"license_deleted,omitempty"`
	LicenseDrifts      *int    `json:"license_drifts,omitempty"`
	TotalDrifts        *int    `json:"total_drifts,omitempty"`
}

OrchestrationDriftSummary defines model for OrchestrationDriftSummary.

type OrchestrationId

type OrchestrationId = string

OrchestrationId defines model for OrchestrationId.

type Order

type Order string

Order defines model for Order.

const (
	OrderASC  Order = "ASC"
	OrderDESC Order = "DESC"
)

Defines values for Order.

type OrderDefaultDesc

type OrderDefaultDesc string

OrderDefaultDesc defines model for OrderDefaultDesc.

const (
	OrderDefaultDescASC  OrderDefaultDesc = "ASC"
	OrderDefaultDescDESC OrderDefaultDesc = "DESC"
)

Defines values for OrderDefaultDesc.

type OrgParam

type OrgParam = string

OrgParam defines model for OrgParam.

type OwaspFilter

type OwaspFilter string

OwaspFilter defines model for OwaspFilter.

const (
	CLOSETOEOLCOMPONENT   OwaspFilter = "CLOSE_TO_EOL_COMPONENT"
	EOLCOMPONENT          OwaspFilter = "EOL_COMPONENT"
	OUTDATEDCOMPONENT     OwaspFilter = "OUTDATED_COMPONENT"
	UNMAINTAINEDCOMPONENT OwaspFilter = "UNMAINTAINED_COMPONENT"
	VULNERABLECOMPONENT   OwaspFilter = "VULNERABLE_COMPONENT"
)

Defines values for OwaspFilter.

type Page

type Page = int

Page defines model for Page.

type PipelineDetails

type PipelineDetails struct {
	// ExecutionId Execution Id of the pipeline.
	ExecutionId *string `json:"execution_id,omitempty"`

	// Id Id of the pipeline.
	Id *string `json:"id,omitempty"`

	// Name Name of the pipeline.
	Name *string `json:"name,omitempty"`

	// OrgId Organisation where pipeline is present.
	OrgId *string `json:"org_id,omitempty"`

	// ProjectId Project where pipeline is present.
	ProjectId *string `json:"project_id,omitempty"`

	// StageExecutionId Execution Id for the Stage
	StageExecutionId *string `json:"stage_execution_id,omitempty"`

	// StageType Stage type in which the step executed
	StageType *PipelineDetailsStageType `json:"stage_type,omitempty"`
	Status    *PipelineDetailsStatus    `json:"status,omitempty"`

	// StepExecutionId Execution Id for the step
	StepExecutionId *string `json:"step_execution_id,omitempty"`

	// TriggeredAt Time of trigger of the deployment pipeline
	TriggeredAt *int64 `json:"triggered_at"`

	// TriggeredBy Name of who trigger the deployment pipeline
	TriggeredBy *string `json:"triggered_by,omitempty"`

	// TriggeredById Id of who trigger the deployment pipeline
	TriggeredById *string `json:"triggered_by_id,omitempty"`

	// TriggeredType Trigger type of the deployment pipeline
	TriggeredType *string `json:"triggered_type,omitempty"`
}

PipelineDetails defines model for PipelineDetails.

type PipelineDetailsStageType

type PipelineDetailsStageType string

PipelineDetailsStageType Stage type in which the step executed

const (
	BUILD    PipelineDetailsStageType = "BUILD"
	DEPLOY   PipelineDetailsStageType = "DEPLOY"
	SECURITY PipelineDetailsStageType = "SECURITY"
)

Defines values for PipelineDetailsStageType.

type PipelineDetailsStatus

type PipelineDetailsStatus string

PipelineDetailsStatus defines model for PipelineDetails.Status.

const (
	PipelineDetailsStatusFAILED  PipelineDetailsStatus = "FAILED"
	PipelineDetailsStatusPASSED  PipelineDetailsStatus = "PASSED"
	PipelineDetailsStatusUNKNOWN PipelineDetailsStatus = "UNKNOWN"
)

Defines values for PipelineDetailsStatus.

type ProjectParam

type ProjectParam = string

ProjectParam defines model for ProjectParam.

type ProvenanceId

type ProvenanceId = string

ProvenanceId defines model for ProvenanceId.

type RekorLog

type RekorLog struct {
	EntryUuid *string `json:"entry_uuid,omitempty"`
	Hash      *string `json:"hash,omitempty"`
	Signature *string `json:"signature,omitempty"`
	SignedAt  *string `json:"signed_at,omitempty"`
	SignedBy  *string `json:"signed_by,omitempty"`
	TLogIndex *string `json:"t_log_index,omitempty"`
}

RekorLog defines model for RekorLog.

type RemediationWarning

type RemediationWarning struct {
	Message    string  `json:"message"`
	ReviewPurl *string `json:"review_purl,omitempty"`
}

RemediationWarning defines model for RemediationWarning.

type RepositoriesSummary

type RepositoriesSummary struct {
	EvaluationSummary *ComplianceEvaluationSummary `json:"evaluation_summary,omitempty"`
	Total             *int                         `json:"total,omitempty"`

	// Vulnerabilities The count of Security Issues, by severity code, for a given Harness Pipeline Execution along with this execution info
	Vulnerabilities *StoIssueCount `json:"vulnerabilities,omitempty"`
}

RepositoriesSummary defines model for RepositoriesSummary.

type RepositoryPlatform

type RepositoryPlatform string

RepositoryPlatform defines model for RepositoryPlatform.

const (
	AZURE     RepositoryPlatform = "AZURE"
	BITBUCKET RepositoryPlatform = "BITBUCKET"
	GIT       RepositoryPlatform = "GIT"
	GITHUB    RepositoryPlatform = "GITHUB"
	GITLAB    RepositoryPlatform = "GITLAB"
	HARNESS   RepositoryPlatform = "HARNESS"
)

Defines values for RepositoryPlatform.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type RiskAndCompliance

type RiskAndCompliance struct {
	// Critical The number of Critical-severity compliance Issues
	Critical *int `json:"critical,omitempty"`

	// High The number of High-severity compliance Issues
	High *int `json:"high,omitempty"`

	// LastScanned Timestamp at which the Respository was last scanned
	LastScanned *string `json:"last_scanned,omitempty"`

	// Low The number of Low-severity compliance Issues
	Low *int `json:"low,omitempty"`

	// Medium The number of Medium-severity compliance Issues
	Medium          *int             `json:"medium,omitempty"`
	PipelineDetails *PipelineDetails `json:"pipeline_details,omitempty"`
}

RiskAndCompliance defines model for RiskAndCompliance.

type SBOMInfo

type SBOMInfo struct {
	ComponentsCount *int             `json:"components_count,omitempty"`
	DriftId         *string          `json:"drift_id,omitempty"`
	OrchestrationId *string          `json:"orchestration_id,omitempty"`
	OrgId           *string          `json:"org_id,omitempty"`
	PipelineDetails *PipelineDetails `json:"pipeline_details,omitempty"`
	ProjectId       *string          `json:"project_id,omitempty"`
	TotalDrifts     *int             `json:"total_drifts,omitempty"`
}

SBOMInfo defines model for SBOMInfo.

type SLSADetails

type SLSADetails struct {
	OrgId           *string          `json:"org_id,omitempty"`
	PipelineDetails *PipelineDetails `json:"pipeline_details,omitempty"`
	ProjectId       *string          `json:"project_id,omitempty"`
	ProvenanceId    *string          `json:"provenance_id,omitempty"`
	Status          *string          `json:"status,omitempty"`
}

SLSADetails defines model for SLSADetails.

type Scorecard

type Scorecard struct {
	AvgScore *string `json:"avg_score,omitempty"`
	MaxScore *string `json:"max_score,omitempty"`
}

Scorecard defines model for Scorecard.

type SignatureId

type SignatureId = string

SignatureId defines model for SignatureId.

type StoIssueCount

type StoIssueCount struct {
	// Critical The number of Critical-severity Issues
	Critical *int `json:"critical,omitempty"`

	// ExecutionId Harness Execution ID
	ExecutionId *string `json:"execution_id,omitempty"`

	// High The number of High-severity Issues
	High *int `json:"high,omitempty"`

	// Ignored The number of Issues ignored due to Exemptions, and therefore not included in other counts
	Ignored *int `json:"ignored,omitempty"`

	// Info The number of Informational Issues
	Info *int `json:"info,omitempty"`

	// IssueId Identifier used in sto module to identify an issue.
	IssueId *string `json:"issue_id,omitempty"`

	// LastScanned Timestamp at which the target variant was last scanned
	LastScanned *string `json:"last_scanned,omitempty"`

	// Low The number of Low-severity Issues
	Low *int `json:"low,omitempty"`

	// Medium The number of Medium-severity Issues
	Medium          *int             `json:"medium,omitempty"`
	PipelineDetails *PipelineDetails `json:"pipeline_details,omitempty"`

	// PipelineId Harness Pipeline Id
	PipelineId *string `json:"pipeline_id,omitempty"`

	// TargetId Associated Target ID
	TargetId *string `json:"target_id,omitempty"`

	// TargetName Name of the Scan Target
	TargetName *string `json:"target_name,omitempty"`

	// TargetVariantId Associated Target Variant ID
	TargetVariantId *string `json:"target_variant_id,omitempty"`

	// TargetVariantName Name of the Scan Target
	TargetVariantName *string `json:"target_variant_name,omitempty"`

	// Tool The name of the tool that performed the scan
	Tool *string `json:"tool,omitempty"`

	// Total The number of total-severity Issues
	Total *int `json:"total,omitempty"`

	// Type Scan Target's type
	Type *StoIssueCountType `json:"type,omitempty"`
}

StoIssueCount The count of Security Issues, by severity code, for a given Harness Pipeline Execution along with this execution info

type StoIssueCountType

type StoIssueCountType string

StoIssueCountType Scan Target's type

const (
	Image      StoIssueCountType = "image"
	Repository StoIssueCountType = "repository"
)

Defines values for StoIssueCountType.

type TargetVersion

type TargetVersion = string

TargetVersion defines model for TargetVersion.

type TargetVersionVulnerability

type TargetVersionVulnerability struct {
	Info *string `json:"info,omitempty"`

	// VulnerabilitiesCount The count of Security Issues, by severity code, for a given Harness Pipeline Execution along with this execution info
	VulnerabilitiesCount *StoIssueCount `json:"vulnerabilities_count,omitempty"`
	Warning              *string        `json:"warning,omitempty"`
}

TargetVersionVulnerability defines model for TargetVersionVulnerability.

type VerificationStatus

type VerificationStatus string

VerificationStatus defines model for VerificationStatus.

const (
	FAILED VerificationStatus = "FAILED"
	PASSED VerificationStatus = "PASSED"
)

Defines values for VerificationStatus.

type Violations

type Violations struct {
	AllowListViolations *int             `json:"allow_list_violations,omitempty"`
	DenyListViolations  *int             `json:"deny_list_violations,omitempty"`
	EnforcementId       *string          `json:"enforcement_id,omitempty"`
	PipelineDetails     *PipelineDetails `json:"pipeline_details,omitempty"`
}

Violations defines model for Violations.

type VulnerabilitySource

type VulnerabilitySource string

VulnerabilitySource Source of vulnerabilities

const (
	INTERNAL VulnerabilitySource = "INTERNAL"
	STO      VulnerabilitySource = "STO"
)

Defines values for VulnerabilitySource.

Jump to

Keyboard shortcuts

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