Documentation ¶
Index ¶
- Constants
- type AddDeploymentTargetAddDeploymentTargetAddDeploymentTargetPayload
- type AddDeploymentTargetAddDeploymentTargetAddDeploymentTargetPayloadDeploymentTarget
- type AddDeploymentTargetInput
- type AddDeploymentTargetResponse
- type AddImageAddImageAddImagePayload
- type AddImageAddImageAddImagePayloadImage
- type AddImageIndexAddImageIndexAddImageIndexPayload
- type AddImageIndexAddImageIndexAddImageIndexPayloadImageIndex
- type AddImageIndexInput
- func (v *AddImageIndexInput) GetCreatedAt() *time.Time
- func (v *AddImageIndexInput) GetDigest() string
- func (v *AddImageIndexInput) GetId() string
- func (v *AddImageIndexInput) GetImageNames() []*ImageNameRef
- func (v *AddImageIndexInput) GetImages() []*ImageRef
- func (v *AddImageIndexInput) GetOrganization() *OrganizationRef
- type AddImageIndexResponse
- type AddImageInput
- func (v *AddImageInput) GetCreatedAt() *time.Time
- func (v *AddImageInput) GetDeployments() []*ApplicationDeploymentRef
- func (v *AddImageInput) GetDigest() string
- func (v *AddImageInput) GetId() string
- func (v *AddImageInput) GetImageIndexes() []*ImageIndexRef
- func (v *AddImageInput) GetOrganization() *OrganizationRef
- func (v *AddImageInput) GetPlatform() string
- func (v *AddImageInput) GetScans() []*ImageScanStateRef
- type AddImageNameAddImageNameAddImageNamePayload
- type AddImageNameAddImageNameAddImageNamePayloadImageName
- type AddImageNameInput
- type AddImageNameResponse
- type AddImageResponse
- type AddImageScanResultInput
- func (v *AddImageScanResultInput) GetComponents() []*ImageComponentRef
- func (v *AddImageScanResultInput) GetCreatedAt() *time.Time
- func (v *AddImageScanResultInput) GetId() string
- func (v *AddImageScanResultInput) GetImageScanState() *ImageScanStateRef
- func (v *AddImageScanResultInput) GetVulnCriticalCount() int
- func (v *AddImageScanResultInput) GetVulnHighCount() int
- func (v *AddImageScanResultInput) GetVulnInfoCount() int
- func (v *AddImageScanResultInput) GetVulnLowCount() int
- func (v *AddImageScanResultInput) GetVulnMediumCount() int
- func (v *AddImageScanResultInput) GetVulnNoneCount() int
- func (v *AddImageScanResultInput) GetVulnTotalCount() int
- func (v *AddImageScanResultInput) GetVulnUnknownCount() int
- type AddImageScanStateAddImageScanStateAddImageScanStatePayload
- type AddImageScanStateAddImageScanStateAddImageScanStatePayloadImageScanState
- type AddImageScanStateInput
- func (v *AddImageScanStateInput) GetCreatedAt() *time.Time
- func (v *AddImageScanStateInput) GetDatabaseVersions() []*KeyValueRef
- func (v *AddImageScanStateInput) GetId() string
- func (v *AddImageScanStateInput) GetImage() *ImageRef
- func (v *AddImageScanStateInput) GetResult() *ImageScanResultRef
- func (v *AddImageScanStateInput) GetStatus() ImageScanStateStatus
- func (v *AddImageScanStateInput) GetStatusReason() string
- func (v *AddImageScanStateInput) GetTools() []*ToolInfoRef
- func (v *AddImageScanStateInput) GetUpdatedAt() *time.Time
- type AddImageScanStateResponse
- type AddImageScanStateUpdateImageScanStateUpdateImageScanStatePayload
- type AddImageUpdateImageUpdateImagePayload
- type AddOrganizationAddOrganizationAddOrganizationPayload
- type AddOrganizationAddOrganizationAddOrganizationPayloadOrganization
- type AddOrganizationInput
- type AddOrganizationResponse
- type AddScanAddImageScanResultAddImageScanResultPayload
- type AddScanAddImageScanResultAddImageScanResultPayloadImageScanResult
- type AddScanResponse
- type AddScanUpdateImageScanStateUpdateImageScanStatePayload
- type AddTeamAddTeamAddTeamPayload
- type AddTeamAddTeamAddTeamPayloadTeam
- type AddTeamInput
- type AddTeamResponse
- type ApplicationComponentRef
- type ApplicationDeploymentRef
- func (v *ApplicationDeploymentRef) GetComponent() *ApplicationComponentRef
- func (v *ApplicationDeploymentRef) GetDeployedAt() *time.Time
- func (v *ApplicationDeploymentRef) GetDeployedBy() string
- func (v *ApplicationDeploymentRef) GetDeploymentRisk() *ApplicationDeploymentRiskRef
- func (v *ApplicationDeploymentRef) GetDeploymentStage() DeploymentStage
- func (v *ApplicationDeploymentRef) GetId() string
- func (v *ApplicationDeploymentRef) GetImage() []*ImageRef
- func (v *ApplicationDeploymentRef) GetSource() string
- func (v *ApplicationDeploymentRef) GetToolsUsed() string
- type ApplicationDeploymentRiskRef
- func (v *ApplicationDeploymentRiskRef) GetApplicationDeployment() *ApplicationDeploymentRef
- func (v *ApplicationDeploymentRiskRef) GetArtifactAlertsScore() int
- func (v *ApplicationDeploymentRiskRef) GetBuildAlertsScore() int
- func (v *ApplicationDeploymentRiskRef) GetCreatedAt() *time.Time
- func (v *ApplicationDeploymentRiskRef) GetDeploymentAlertsScore() int
- func (v *ApplicationDeploymentRiskRef) GetId() string
- func (v *ApplicationDeploymentRiskRef) GetImageRiskStatus() RiskStatus
- func (v *ApplicationDeploymentRiskRef) GetSourceCodeAlertsScore() int
- type ApplicationEnvironmentRef
- func (v *ApplicationEnvironmentRef) GetApplication() *ApplicationRef
- func (v *ApplicationEnvironmentRef) GetComponents() []*ApplicationComponentRef
- func (v *ApplicationEnvironmentRef) GetDeploymentTarget() *DeploymentTargetRef
- func (v *ApplicationEnvironmentRef) GetId() string
- func (v *ApplicationEnvironmentRef) GetNamespace() string
- func (v *ApplicationEnvironmentRef) GetRiskStatus() *ApplicationRiskStatusRef
- func (v *ApplicationEnvironmentRef) GetToolsUsed() string
- func (v *ApplicationEnvironmentRef) GetType() string
- type ApplicationRef
- type ApplicationRiskStatusRef
- func (v *ApplicationRiskStatusRef) GetApplicationEnvironment() *ApplicationEnvironmentRef
- func (v *ApplicationRiskStatusRef) GetArtifactAlerts() int
- func (v *ApplicationRiskStatusRef) GetBuildAlerts() int
- func (v *ApplicationRiskStatusRef) GetCreatedAt() *time.Time
- func (v *ApplicationRiskStatusRef) GetDeploymentAlerts() int
- func (v *ApplicationRiskStatusRef) GetId() string
- func (v *ApplicationRiskStatusRef) GetRiskStatus() RiskStatus
- func (v *ApplicationRiskStatusRef) GetSourceCodeAlerts() int
- func (v *ApplicationRiskStatusRef) GetUpdatedAt() *time.Time
- type CWERef
- type DeploymentStage
- type DeploymentTargetRef
- type GetImageIndexAndImagesGetImageIndex
- type GetImageIndexAndImagesGetImageIndexImagesImage
- type GetImageIndexAndImagesResponse
- type GetOrganizationGetOrganization
- type GetOrganizationResponse
- type ImageComponentRef
- func (v *ImageComponentRef) GetCpe() string
- func (v *ImageComponentRef) GetId() string
- func (v *ImageComponentRef) GetImageScanResult() *ImageScanResultRef
- func (v *ImageComponentRef) GetLicenses() []string
- func (v *ImageComponentRef) GetName() string
- func (v *ImageComponentRef) GetPurl() string
- func (v *ImageComponentRef) GetType() string
- func (v *ImageComponentRef) GetVersion() string
- func (v *ImageComponentRef) GetVulnerabilities() []*VulnerabilityRef
- type ImageIndexRef
- type ImageNameRef
- type ImageRef
- func (v *ImageRef) GetCreatedAt() *time.Time
- func (v *ImageRef) GetDeployments() []*ApplicationDeploymentRef
- func (v *ImageRef) GetDigest() string
- func (v *ImageRef) GetId() string
- func (v *ImageRef) GetImageIndexes() []*ImageIndexRef
- func (v *ImageRef) GetOrganization() *OrganizationRef
- func (v *ImageRef) GetPlatform() string
- func (v *ImageRef) GetScans() []*ImageScanStateRef
- type ImageScanResultRef
- func (v *ImageScanResultRef) GetComponents() []*ImageComponentRef
- func (v *ImageScanResultRef) GetCreatedAt() *time.Time
- func (v *ImageScanResultRef) GetId() string
- func (v *ImageScanResultRef) GetImageScanState() *ImageScanStateRef
- func (v *ImageScanResultRef) GetVulnCriticalCount() int
- func (v *ImageScanResultRef) GetVulnHighCount() int
- func (v *ImageScanResultRef) GetVulnInfoCount() int
- func (v *ImageScanResultRef) GetVulnLowCount() int
- func (v *ImageScanResultRef) GetVulnMediumCount() int
- func (v *ImageScanResultRef) GetVulnNoneCount() int
- func (v *ImageScanResultRef) GetVulnTotalCount() int
- func (v *ImageScanResultRef) GetVulnUnknownCount() int
- type ImageScanStatePatch
- func (v *ImageScanStatePatch) GetCreatedAt() *time.Time
- func (v *ImageScanStatePatch) GetDatabaseVersions() []*KeyValueRef
- func (v *ImageScanStatePatch) GetImage() *ImageRef
- func (v *ImageScanStatePatch) GetResult() *ImageScanResultRef
- func (v *ImageScanStatePatch) GetStatus() ImageScanStateStatus
- func (v *ImageScanStatePatch) GetStatusReason() string
- func (v *ImageScanStatePatch) GetTools() []*ToolInfoRef
- func (v *ImageScanStatePatch) GetUpdatedAt() *time.Time
- type ImageScanStateRef
- func (v *ImageScanStateRef) GetCreatedAt() *time.Time
- func (v *ImageScanStateRef) GetDatabaseVersions() []*KeyValueRef
- func (v *ImageScanStateRef) GetId() string
- func (v *ImageScanStateRef) GetImage() *ImageRef
- func (v *ImageScanStateRef) GetResult() *ImageScanResultRef
- func (v *ImageScanStateRef) GetStatus() ImageScanStateStatus
- func (v *ImageScanStateRef) GetStatusReason() string
- func (v *ImageScanStateRef) GetTools() []*ToolInfoRef
- func (v *ImageScanStateRef) GetUpdatedAt() *time.Time
- type ImageScanStateStatus
- type KeyValueRef
- type LinkImageIndexToNameResponse
- type LinkImageIndexToNameUpdateImageNameUpdateImageNamePayload
- type OrganizationRef
- type QueryDeploymentTargetByIdQueryDeploymentTarget
- func (v *QueryDeploymentTargetByIdQueryDeploymentTarget) GetId() string
- func (v *QueryDeploymentTargetByIdQueryDeploymentTarget) GetIsFirewall() bool
- func (v *QueryDeploymentTargetByIdQueryDeploymentTarget) GetName() string
- func (v *QueryDeploymentTargetByIdQueryDeploymentTarget) GetOrganization() *QueryDeploymentTargetByIdQueryDeploymentTargetOrganization
- type QueryDeploymentTargetByIdQueryDeploymentTargetOrganization
- type QueryDeploymentTargetByIdResponse
- type QueryOrganizationByNameQueryOrganization
- type QueryOrganizationByNameResponse
- type RiskStatus
- type RolePermission
- type RoleRef
- type SetImageScanStateResponse
- type SetImageScanStateUpdateImageScanStateUpdateImageScanStatePayload
- type TeamRef
- type ToolInfoRef
- type ValidateRequestQueryGetImageScanState
- type ValidateRequestQueryGetImageScanStateImage
- type ValidateRequestQueryGetImageScanStateImageImageIndexesImageIndex
- type ValidateRequestQueryGetImageScanStateImageImageIndexesImageIndexImageNamesImageName
- type ValidateRequestQueryResponse
- type VulnerabilityRef
- func (v *VulnerabilityRef) GetAdvisoryURLs() []string
- func (v *VulnerabilityRef) GetComponents() []*ImageComponentRef
- func (v *VulnerabilityRef) GetCwes() []*CWERef
- func (v *VulnerabilityRef) GetDescription() string
- func (v *VulnerabilityRef) GetDetail() string
- func (v *VulnerabilityRef) GetId() string
- func (v *VulnerabilityRef) GetNamespace() string
- func (v *VulnerabilityRef) GetNamespaceId() string
- func (v *VulnerabilityRef) GetNvdid() string
- func (v *VulnerabilityRef) GetRatings() []VulnerabilitySeverity
- func (v *VulnerabilityRef) GetRecommendation() string
- type VulnerabilitySeverity
Constants ¶
const AddDeploymentTarget_Operation = `` /* 176-byte string literal not displayed */
The query or mutation executed by AddDeploymentTarget.
const AddImageIndex_Operation = `` /* 144-byte string literal not displayed */
The query or mutation executed by AddImageIndex.
const AddImageName_Operation = `` /* 140-byte string literal not displayed */
The query or mutation executed by AddImageName.
const AddImageScanState_Operation = `` /* 291-byte string literal not displayed */
The query or mutation executed by AddImageScanState.
const AddImage_Operation = `` /* 261-byte string literal not displayed */
The query or mutation executed by AddImage.
const AddOrganization_Operation = `` /* 160-byte string literal not displayed */
The query or mutation executed by AddOrganization.
const AddScan_Operation = `` /* 288-byte string literal not displayed */
The query or mutation executed by AddScan.
const AddTeam_Operation = `` /* 128-byte string literal not displayed */
The query or mutation executed by AddTeam.
const GetImageIndexAndImages_Operation = `
query GetImageIndexAndImages ($id: String!) {
getImageIndex(id: $id) {
images {
digest
platform
}
}
}
`
The query or mutation executed by GetImageIndexAndImages.
const GetOrganization_Operation = `
query GetOrganization ($id: String!) {
getOrganization(id: $id) {
id
name
}
}
`
The query or mutation executed by GetOrganization.
const LinkImageIndexToName_Operation = `` /* 195-byte string literal not displayed */
The query or mutation executed by LinkImageIndexToName.
const QueryDeploymentTargetById_Operation = `` /* 169-byte string literal not displayed */
The query or mutation executed by QueryDeploymentTargetById.
const QueryOrganizationByName_Operation = `
query QueryOrganizationByName ($input: String!) {
queryOrganization(filter: {name:{eq:$input}}) {
id
name
}
}
`
The query or mutation executed by QueryOrganizationByName.
const SetImageScanState_Operation = `` /* 218-byte string literal not displayed */
The query or mutation executed by SetImageScanState.
const ValidateRequestQuery_Operation = `` /* 165-byte string literal not displayed */
The query or mutation executed by ValidateRequestQuery.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddDeploymentTargetAddDeploymentTargetAddDeploymentTargetPayload ¶
type AddDeploymentTargetAddDeploymentTargetAddDeploymentTargetPayload struct { NumUids int `json:"numUids"` DeploymentTarget []*AddDeploymentTargetAddDeploymentTargetAddDeploymentTargetPayloadDeploymentTarget `json:"deploymentTarget"` }
AddDeploymentTargetAddDeploymentTargetAddDeploymentTargetPayload includes the requested fields of the GraphQL type AddDeploymentTargetPayload.
func (*AddDeploymentTargetAddDeploymentTargetAddDeploymentTargetPayload) GetDeploymentTarget ¶
func (v *AddDeploymentTargetAddDeploymentTargetAddDeploymentTargetPayload) GetDeploymentTarget() []*AddDeploymentTargetAddDeploymentTargetAddDeploymentTargetPayloadDeploymentTarget
GetDeploymentTarget returns AddDeploymentTargetAddDeploymentTargetAddDeploymentTargetPayload.DeploymentTarget, and is useful for accessing the field via an interface.
func (*AddDeploymentTargetAddDeploymentTargetAddDeploymentTargetPayload) GetNumUids ¶
func (v *AddDeploymentTargetAddDeploymentTargetAddDeploymentTargetPayload) GetNumUids() int
GetNumUids returns AddDeploymentTargetAddDeploymentTargetAddDeploymentTargetPayload.NumUids, and is useful for accessing the field via an interface.
type AddDeploymentTargetAddDeploymentTargetAddDeploymentTargetPayloadDeploymentTarget ¶
type AddDeploymentTargetAddDeploymentTargetAddDeploymentTargetPayloadDeploymentTarget struct { // id is randomly assigned Id string `json:"id"` Name string `json:"name"` }
AddDeploymentTargetAddDeploymentTargetAddDeploymentTargetPayloadDeploymentTarget includes the requested fields of the GraphQL type DeploymentTarget. The GraphQL type's documentation follows.
DeploymentTarget describes a single place that things can be deployed into, such as an AWS account or a Kubernetes cluster.
func (*AddDeploymentTargetAddDeploymentTargetAddDeploymentTargetPayloadDeploymentTarget) GetId ¶
func (v *AddDeploymentTargetAddDeploymentTargetAddDeploymentTargetPayloadDeploymentTarget) GetId() string
GetId returns AddDeploymentTargetAddDeploymentTargetAddDeploymentTargetPayloadDeploymentTarget.Id, and is useful for accessing the field via an interface.
func (*AddDeploymentTargetAddDeploymentTargetAddDeploymentTargetPayloadDeploymentTarget) GetName ¶
func (v *AddDeploymentTargetAddDeploymentTargetAddDeploymentTargetPayloadDeploymentTarget) GetName() string
GetName returns AddDeploymentTargetAddDeploymentTargetAddDeploymentTargetPayloadDeploymentTarget.Name, and is useful for accessing the field via an interface.
type AddDeploymentTargetInput ¶
type AddDeploymentTargetInput struct { // id is randomly assigned Id string `json:"id"` Name string `json:"name"` IsFirewall bool `json:"isFirewall"` Organization *OrganizationRef `json:"organization,omitempty"` }
func (*AddDeploymentTargetInput) GetId ¶
func (v *AddDeploymentTargetInput) GetId() string
GetId returns AddDeploymentTargetInput.Id, and is useful for accessing the field via an interface.
func (*AddDeploymentTargetInput) GetIsFirewall ¶
func (v *AddDeploymentTargetInput) GetIsFirewall() bool
GetIsFirewall returns AddDeploymentTargetInput.IsFirewall, and is useful for accessing the field via an interface.
func (*AddDeploymentTargetInput) GetName ¶
func (v *AddDeploymentTargetInput) GetName() string
GetName returns AddDeploymentTargetInput.Name, and is useful for accessing the field via an interface.
func (*AddDeploymentTargetInput) GetOrganization ¶
func (v *AddDeploymentTargetInput) GetOrganization() *OrganizationRef
GetOrganization returns AddDeploymentTargetInput.Organization, and is useful for accessing the field via an interface.
type AddDeploymentTargetResponse ¶
type AddDeploymentTargetResponse struct {
AddDeploymentTarget *AddDeploymentTargetAddDeploymentTargetAddDeploymentTargetPayload `json:"addDeploymentTarget"`
}
AddDeploymentTargetResponse is returned by AddDeploymentTarget on success.
func AddDeploymentTarget ¶
func AddDeploymentTarget( ctx context.Context, client graphql.Client, input *AddDeploymentTargetInput, ) (*AddDeploymentTargetResponse, error)
DeploymentTarget related queries/mutations
func (*AddDeploymentTargetResponse) GetAddDeploymentTarget ¶
func (v *AddDeploymentTargetResponse) GetAddDeploymentTarget() *AddDeploymentTargetAddDeploymentTargetAddDeploymentTargetPayload
GetAddDeploymentTarget returns AddDeploymentTargetResponse.AddDeploymentTarget, and is useful for accessing the field via an interface.
type AddImageAddImageAddImagePayload ¶
type AddImageAddImageAddImagePayload struct {
Image []*AddImageAddImageAddImagePayloadImage `json:"image"`
}
AddImageAddImageAddImagePayload includes the requested fields of the GraphQL type AddImagePayload.
func (*AddImageAddImageAddImagePayload) GetImage ¶
func (v *AddImageAddImageAddImagePayload) GetImage() []*AddImageAddImageAddImagePayloadImage
GetImage returns AddImageAddImageAddImagePayload.Image, and is useful for accessing the field via an interface.
type AddImageAddImageAddImagePayloadImage ¶
type AddImageAddImageAddImagePayloadImage struct { // id is a hash of the image's digest and ownership. Id string `json:"id"` }
AddImageAddImageAddImagePayloadImage includes the requested fields of the GraphQL type Image. The GraphQL type's documentation follows.
Image holds a specific deployable image, with a platform. This is the underlying object that is scanned by security scanners. It may also be what is deployed, but generally these are found indrectly through the ImageIndex, with a platform filter.
func (*AddImageAddImageAddImagePayloadImage) GetId ¶
func (v *AddImageAddImageAddImagePayloadImage) GetId() string
GetId returns AddImageAddImageAddImagePayloadImage.Id, and is useful for accessing the field via an interface.
type AddImageIndexAddImageIndexAddImageIndexPayload ¶
type AddImageIndexAddImageIndexAddImageIndexPayload struct { NumUids int `json:"numUids"` ImageIndex []*AddImageIndexAddImageIndexAddImageIndexPayloadImageIndex `json:"imageIndex"` }
AddImageIndexAddImageIndexAddImageIndexPayload includes the requested fields of the GraphQL type AddImageIndexPayload.
func (*AddImageIndexAddImageIndexAddImageIndexPayload) GetImageIndex ¶
func (v *AddImageIndexAddImageIndexAddImageIndexPayload) GetImageIndex() []*AddImageIndexAddImageIndexAddImageIndexPayloadImageIndex
GetImageIndex returns AddImageIndexAddImageIndexAddImageIndexPayload.ImageIndex, and is useful for accessing the field via an interface.
func (*AddImageIndexAddImageIndexAddImageIndexPayload) GetNumUids ¶
func (v *AddImageIndexAddImageIndexAddImageIndexPayload) GetNumUids() int
GetNumUids returns AddImageIndexAddImageIndexAddImageIndexPayload.NumUids, and is useful for accessing the field via an interface.
type AddImageIndexAddImageIndexAddImageIndexPayloadImageIndex ¶
type AddImageIndexAddImageIndexAddImageIndexPayloadImageIndex struct { // id is a hash of the image index's digest and ownership. Id string `json:"id"` }
AddImageIndexAddImageIndexAddImageIndexPayloadImageIndex includes the requested fields of the GraphQL type ImageIndex. The GraphQL type's documentation follows.
ImageIndex holds the association between an ImageName and a specific list of images, each of which will have a platform (hopefully) and a unique digest.
ImageIndex also has a list of deployments, which indicate where this image is currently in use.
func (*AddImageIndexAddImageIndexAddImageIndexPayloadImageIndex) GetId ¶
func (v *AddImageIndexAddImageIndexAddImageIndexPayloadImageIndex) GetId() string
GetId returns AddImageIndexAddImageIndexAddImageIndexPayloadImageIndex.Id, and is useful for accessing the field via an interface.
type AddImageIndexInput ¶
type AddImageIndexInput struct { // id is a hash of the image index's digest and ownership. Id string `json:"id"` // Digest is the image index's digest, or the image digest if it not an index Digest string `json:"digest"` Organization *OrganizationRef `json:"organization,omitempty"` ImageNames []*ImageNameRef `json:"imageNames,omitempty"` Images []*ImageRef `json:"images,omitempty"` CreatedAt *time.Time `json:"createdAt"` }
func (*AddImageIndexInput) GetCreatedAt ¶
func (v *AddImageIndexInput) GetCreatedAt() *time.Time
GetCreatedAt returns AddImageIndexInput.CreatedAt, and is useful for accessing the field via an interface.
func (*AddImageIndexInput) GetDigest ¶
func (v *AddImageIndexInput) GetDigest() string
GetDigest returns AddImageIndexInput.Digest, and is useful for accessing the field via an interface.
func (*AddImageIndexInput) GetId ¶
func (v *AddImageIndexInput) GetId() string
GetId returns AddImageIndexInput.Id, and is useful for accessing the field via an interface.
func (*AddImageIndexInput) GetImageNames ¶
func (v *AddImageIndexInput) GetImageNames() []*ImageNameRef
GetImageNames returns AddImageIndexInput.ImageNames, and is useful for accessing the field via an interface.
func (*AddImageIndexInput) GetImages ¶
func (v *AddImageIndexInput) GetImages() []*ImageRef
GetImages returns AddImageIndexInput.Images, and is useful for accessing the field via an interface.
func (*AddImageIndexInput) GetOrganization ¶
func (v *AddImageIndexInput) GetOrganization() *OrganizationRef
GetOrganization returns AddImageIndexInput.Organization, and is useful for accessing the field via an interface.
type AddImageIndexResponse ¶
type AddImageIndexResponse struct {
AddImageIndex *AddImageIndexAddImageIndexAddImageIndexPayload `json:"addImageIndex"`
}
AddImageIndexResponse is returned by AddImageIndex on success.
func AddImageIndex ¶
func AddImageIndex( ctx context.Context, client graphql.Client, input *AddImageIndexInput, ) (*AddImageIndexResponse, error)
func (*AddImageIndexResponse) GetAddImageIndex ¶
func (v *AddImageIndexResponse) GetAddImageIndex() *AddImageIndexAddImageIndexAddImageIndexPayload
GetAddImageIndex returns AddImageIndexResponse.AddImageIndex, and is useful for accessing the field via an interface.
type AddImageInput ¶
type AddImageInput struct { // id is a hash of the image's digest and ownership. Id string `json:"id"` // Digest is the image's digest Digest string `json:"digest"` Organization *OrganizationRef `json:"organization,omitempty"` ImageIndexes []*ImageIndexRef `json:"imageIndexes,omitempty"` // docker platform string, e.g. linux/arm64/v8 or linux/amd64 or linux/arm64 Platform string `json:"platform"` Deployments []*ApplicationDeploymentRef `json:"deployments,omitempty"` Scans []*ImageScanStateRef `json:"scans,omitempty"` CreatedAt *time.Time `json:"createdAt"` }
func (*AddImageInput) GetCreatedAt ¶
func (v *AddImageInput) GetCreatedAt() *time.Time
GetCreatedAt returns AddImageInput.CreatedAt, and is useful for accessing the field via an interface.
func (*AddImageInput) GetDeployments ¶
func (v *AddImageInput) GetDeployments() []*ApplicationDeploymentRef
GetDeployments returns AddImageInput.Deployments, and is useful for accessing the field via an interface.
func (*AddImageInput) GetDigest ¶
func (v *AddImageInput) GetDigest() string
GetDigest returns AddImageInput.Digest, and is useful for accessing the field via an interface.
func (*AddImageInput) GetId ¶
func (v *AddImageInput) GetId() string
GetId returns AddImageInput.Id, and is useful for accessing the field via an interface.
func (*AddImageInput) GetImageIndexes ¶
func (v *AddImageInput) GetImageIndexes() []*ImageIndexRef
GetImageIndexes returns AddImageInput.ImageIndexes, and is useful for accessing the field via an interface.
func (*AddImageInput) GetOrganization ¶
func (v *AddImageInput) GetOrganization() *OrganizationRef
GetOrganization returns AddImageInput.Organization, and is useful for accessing the field via an interface.
func (*AddImageInput) GetPlatform ¶
func (v *AddImageInput) GetPlatform() string
GetPlatform returns AddImageInput.Platform, and is useful for accessing the field via an interface.
func (*AddImageInput) GetScans ¶
func (v *AddImageInput) GetScans() []*ImageScanStateRef
GetScans returns AddImageInput.Scans, and is useful for accessing the field via an interface.
type AddImageNameAddImageNameAddImageNamePayload ¶
type AddImageNameAddImageNameAddImageNamePayload struct { NumUids int `json:"numUids"` ImageName []*AddImageNameAddImageNameAddImageNamePayloadImageName `json:"imageName"` }
AddImageNameAddImageNameAddImageNamePayload includes the requested fields of the GraphQL type AddImageNamePayload.
func (*AddImageNameAddImageNameAddImageNamePayload) GetImageName ¶
func (v *AddImageNameAddImageNameAddImageNamePayload) GetImageName() []*AddImageNameAddImageNameAddImageNamePayloadImageName
GetImageName returns AddImageNameAddImageNameAddImageNamePayload.ImageName, and is useful for accessing the field via an interface.
func (*AddImageNameAddImageNameAddImageNamePayload) GetNumUids ¶
func (v *AddImageNameAddImageNameAddImageNamePayload) GetNumUids() int
GetNumUids returns AddImageNameAddImageNameAddImageNamePayload.NumUids, and is useful for accessing the field via an interface.
type AddImageNameAddImageNameAddImageNamePayloadImageName ¶
type AddImageNameAddImageNameAddImageNamePayloadImageName struct { // id is the name and ownership hashed. Id string `json:"id"` }
AddImageNameAddImageNameAddImageNamePayloadImageName includes the requested fields of the GraphQL type ImageName.
func (*AddImageNameAddImageNameAddImageNamePayloadImageName) GetId ¶
func (v *AddImageNameAddImageNameAddImageNamePayloadImageName) GetId() string
GetId returns AddImageNameAddImageNameAddImageNamePayloadImageName.Id, and is useful for accessing the field via an interface.
type AddImageNameInput ¶
type AddImageNameInput struct { // id is the name and ownership hashed. Id string `json:"id"` Organization *OrganizationRef `json:"organization,omitempty"` // Name is the base name of the image, such as 'docker.io/library/fooimage' Name string `json:"name"` ImageIndexes []*ImageIndexRef `json:"imageIndexes,omitempty"` CreatedAt *time.Time `json:"createdAt"` }
func (*AddImageNameInput) GetCreatedAt ¶
func (v *AddImageNameInput) GetCreatedAt() *time.Time
GetCreatedAt returns AddImageNameInput.CreatedAt, and is useful for accessing the field via an interface.
func (*AddImageNameInput) GetId ¶
func (v *AddImageNameInput) GetId() string
GetId returns AddImageNameInput.Id, and is useful for accessing the field via an interface.
func (*AddImageNameInput) GetImageIndexes ¶
func (v *AddImageNameInput) GetImageIndexes() []*ImageIndexRef
GetImageIndexes returns AddImageNameInput.ImageIndexes, and is useful for accessing the field via an interface.
func (*AddImageNameInput) GetName ¶
func (v *AddImageNameInput) GetName() string
GetName returns AddImageNameInput.Name, and is useful for accessing the field via an interface.
func (*AddImageNameInput) GetOrganization ¶
func (v *AddImageNameInput) GetOrganization() *OrganizationRef
GetOrganization returns AddImageNameInput.Organization, and is useful for accessing the field via an interface.
type AddImageNameResponse ¶
type AddImageNameResponse struct {
AddImageName *AddImageNameAddImageNameAddImageNamePayload `json:"addImageName"`
}
AddImageNameResponse is returned by AddImageName on success.
func AddImageName ¶
func AddImageName( ctx context.Context, client graphql.Client, input *AddImageNameInput, ) (*AddImageNameResponse, error)
func (*AddImageNameResponse) GetAddImageName ¶
func (v *AddImageNameResponse) GetAddImageName() *AddImageNameAddImageNameAddImageNamePayload
GetAddImageName returns AddImageNameResponse.AddImageName, and is useful for accessing the field via an interface.
type AddImageResponse ¶
type AddImageResponse struct { AddImage *AddImageAddImageAddImagePayload `json:"addImage"` UpdateImage *AddImageUpdateImageUpdateImagePayload `json:"updateImage"` }
AddImageResponse is returned by AddImage on success.
func AddImage ¶
func AddImage( ctx context.Context, client graphql.Client, imageId string, imageIndexId string, input *AddImageInput, ) (*AddImageResponse, error)
func (*AddImageResponse) GetAddImage ¶
func (v *AddImageResponse) GetAddImage() *AddImageAddImageAddImagePayload
GetAddImage returns AddImageResponse.AddImage, and is useful for accessing the field via an interface.
func (*AddImageResponse) GetUpdateImage ¶
func (v *AddImageResponse) GetUpdateImage() *AddImageUpdateImageUpdateImagePayload
GetUpdateImage returns AddImageResponse.UpdateImage, and is useful for accessing the field via an interface.
type AddImageScanResultInput ¶
type AddImageScanResultInput struct { // id is randomly assigned Id string `json:"id"` ImageScanState *ImageScanStateRef `json:"imageScanState,omitempty"` Components []*ImageComponentRef `json:"components,omitempty"` VulnCriticalCount int `json:"vulnCriticalCount"` VulnHighCount int `json:"vulnHighCount"` VulnMediumCount int `json:"vulnMediumCount"` VulnLowCount int `json:"vulnLowCount"` VulnInfoCount int `json:"vulnInfoCount"` VulnUnknownCount int `json:"vulnUnknownCount"` VulnNoneCount int `json:"vulnNoneCount"` VulnTotalCount int `json:"vulnTotalCount"` CreatedAt *time.Time `json:"createdAt"` }
func (*AddImageScanResultInput) GetComponents ¶
func (v *AddImageScanResultInput) GetComponents() []*ImageComponentRef
GetComponents returns AddImageScanResultInput.Components, and is useful for accessing the field via an interface.
func (*AddImageScanResultInput) GetCreatedAt ¶
func (v *AddImageScanResultInput) GetCreatedAt() *time.Time
GetCreatedAt returns AddImageScanResultInput.CreatedAt, and is useful for accessing the field via an interface.
func (*AddImageScanResultInput) GetId ¶
func (v *AddImageScanResultInput) GetId() string
GetId returns AddImageScanResultInput.Id, and is useful for accessing the field via an interface.
func (*AddImageScanResultInput) GetImageScanState ¶
func (v *AddImageScanResultInput) GetImageScanState() *ImageScanStateRef
GetImageScanState returns AddImageScanResultInput.ImageScanState, and is useful for accessing the field via an interface.
func (*AddImageScanResultInput) GetVulnCriticalCount ¶
func (v *AddImageScanResultInput) GetVulnCriticalCount() int
GetVulnCriticalCount returns AddImageScanResultInput.VulnCriticalCount, and is useful for accessing the field via an interface.
func (*AddImageScanResultInput) GetVulnHighCount ¶
func (v *AddImageScanResultInput) GetVulnHighCount() int
GetVulnHighCount returns AddImageScanResultInput.VulnHighCount, and is useful for accessing the field via an interface.
func (*AddImageScanResultInput) GetVulnInfoCount ¶
func (v *AddImageScanResultInput) GetVulnInfoCount() int
GetVulnInfoCount returns AddImageScanResultInput.VulnInfoCount, and is useful for accessing the field via an interface.
func (*AddImageScanResultInput) GetVulnLowCount ¶
func (v *AddImageScanResultInput) GetVulnLowCount() int
GetVulnLowCount returns AddImageScanResultInput.VulnLowCount, and is useful for accessing the field via an interface.
func (*AddImageScanResultInput) GetVulnMediumCount ¶
func (v *AddImageScanResultInput) GetVulnMediumCount() int
GetVulnMediumCount returns AddImageScanResultInput.VulnMediumCount, and is useful for accessing the field via an interface.
func (*AddImageScanResultInput) GetVulnNoneCount ¶
func (v *AddImageScanResultInput) GetVulnNoneCount() int
GetVulnNoneCount returns AddImageScanResultInput.VulnNoneCount, and is useful for accessing the field via an interface.
func (*AddImageScanResultInput) GetVulnTotalCount ¶
func (v *AddImageScanResultInput) GetVulnTotalCount() int
GetVulnTotalCount returns AddImageScanResultInput.VulnTotalCount, and is useful for accessing the field via an interface.
func (*AddImageScanResultInput) GetVulnUnknownCount ¶
func (v *AddImageScanResultInput) GetVulnUnknownCount() int
GetVulnUnknownCount returns AddImageScanResultInput.VulnUnknownCount, and is useful for accessing the field via an interface.
type AddImageScanStateAddImageScanStateAddImageScanStatePayload ¶
type AddImageScanStateAddImageScanStateAddImageScanStatePayload struct {
ImageScanState []*AddImageScanStateAddImageScanStateAddImageScanStatePayloadImageScanState `json:"imageScanState"`
}
AddImageScanStateAddImageScanStateAddImageScanStatePayload includes the requested fields of the GraphQL type AddImageScanStatePayload.
func (*AddImageScanStateAddImageScanStateAddImageScanStatePayload) GetImageScanState ¶
func (v *AddImageScanStateAddImageScanStateAddImageScanStatePayload) GetImageScanState() []*AddImageScanStateAddImageScanStateAddImageScanStatePayloadImageScanState
GetImageScanState returns AddImageScanStateAddImageScanStateAddImageScanStatePayload.ImageScanState, and is useful for accessing the field via an interface.
type AddImageScanStateAddImageScanStateAddImageScanStatePayloadImageScanState ¶
type AddImageScanStateAddImageScanStateAddImageScanStatePayloadImageScanState struct { // id is randomly assigned Id string `json:"id"` }
AddImageScanStateAddImageScanStateAddImageScanStatePayloadImageScanState includes the requested fields of the GraphQL type ImageScanState. The GraphQL type's documentation follows.
ImageScanState holds the status of a scan request, which indicates that a scan is in progress, completed, or failed.
type AddImageScanStateInput ¶
type AddImageScanStateInput struct { // id is randomly assigned Id string `json:"id"` Image *ImageRef `json:"image,omitempty"` Tools []*ToolInfoRef `json:"tools,omitempty"` DatabaseVersions []*KeyValueRef `json:"databaseVersions,omitempty"` // status of the scan Status ImageScanStateStatus `json:"status"` // statusReason may hold a human-readable reason for the current state. This is generally // only updated for 'error' status, where providing additional reasons for the failure // to a user or admin would help. StatusReason string `json:"statusReason"` Result *ImageScanResultRef `json:"result,omitempty"` UpdatedAt *time.Time `json:"updatedAt"` CreatedAt *time.Time `json:"createdAt"` }
func (*AddImageScanStateInput) GetCreatedAt ¶
func (v *AddImageScanStateInput) GetCreatedAt() *time.Time
GetCreatedAt returns AddImageScanStateInput.CreatedAt, and is useful for accessing the field via an interface.
func (*AddImageScanStateInput) GetDatabaseVersions ¶
func (v *AddImageScanStateInput) GetDatabaseVersions() []*KeyValueRef
GetDatabaseVersions returns AddImageScanStateInput.DatabaseVersions, and is useful for accessing the field via an interface.
func (*AddImageScanStateInput) GetId ¶
func (v *AddImageScanStateInput) GetId() string
GetId returns AddImageScanStateInput.Id, and is useful for accessing the field via an interface.
func (*AddImageScanStateInput) GetImage ¶
func (v *AddImageScanStateInput) GetImage() *ImageRef
GetImage returns AddImageScanStateInput.Image, and is useful for accessing the field via an interface.
func (*AddImageScanStateInput) GetResult ¶
func (v *AddImageScanStateInput) GetResult() *ImageScanResultRef
GetResult returns AddImageScanStateInput.Result, and is useful for accessing the field via an interface.
func (*AddImageScanStateInput) GetStatus ¶
func (v *AddImageScanStateInput) GetStatus() ImageScanStateStatus
GetStatus returns AddImageScanStateInput.Status, and is useful for accessing the field via an interface.
func (*AddImageScanStateInput) GetStatusReason ¶
func (v *AddImageScanStateInput) GetStatusReason() string
GetStatusReason returns AddImageScanStateInput.StatusReason, and is useful for accessing the field via an interface.
func (*AddImageScanStateInput) GetTools ¶
func (v *AddImageScanStateInput) GetTools() []*ToolInfoRef
GetTools returns AddImageScanStateInput.Tools, and is useful for accessing the field via an interface.
func (*AddImageScanStateInput) GetUpdatedAt ¶
func (v *AddImageScanStateInput) GetUpdatedAt() *time.Time
GetUpdatedAt returns AddImageScanStateInput.UpdatedAt, and is useful for accessing the field via an interface.
type AddImageScanStateResponse ¶
type AddImageScanStateResponse struct { AddImageScanState *AddImageScanStateAddImageScanStateAddImageScanStatePayload `json:"addImageScanState"` UpdateImageScanState *AddImageScanStateUpdateImageScanStateUpdateImageScanStatePayload `json:"updateImageScanState"` }
AddImageScanStateResponse is returned by AddImageScanState on success.
func AddImageScanState ¶
func AddImageScanState( ctx context.Context, client graphql.Client, imageScanStateId string, imageId string, input *AddImageScanStateInput, ) (*AddImageScanStateResponse, error)
func (*AddImageScanStateResponse) GetAddImageScanState ¶
func (v *AddImageScanStateResponse) GetAddImageScanState() *AddImageScanStateAddImageScanStateAddImageScanStatePayload
GetAddImageScanState returns AddImageScanStateResponse.AddImageScanState, and is useful for accessing the field via an interface.
func (*AddImageScanStateResponse) GetUpdateImageScanState ¶
func (v *AddImageScanStateResponse) GetUpdateImageScanState() *AddImageScanStateUpdateImageScanStateUpdateImageScanStatePayload
GetUpdateImageScanState returns AddImageScanStateResponse.UpdateImageScanState, and is useful for accessing the field via an interface.
type AddImageScanStateUpdateImageScanStateUpdateImageScanStatePayload ¶
type AddImageScanStateUpdateImageScanStateUpdateImageScanStatePayload struct {
NumUids int `json:"numUids"`
}
AddImageScanStateUpdateImageScanStateUpdateImageScanStatePayload includes the requested fields of the GraphQL type UpdateImageScanStatePayload.
func (*AddImageScanStateUpdateImageScanStateUpdateImageScanStatePayload) GetNumUids ¶
func (v *AddImageScanStateUpdateImageScanStateUpdateImageScanStatePayload) GetNumUids() int
GetNumUids returns AddImageScanStateUpdateImageScanStateUpdateImageScanStatePayload.NumUids, and is useful for accessing the field via an interface.
type AddImageUpdateImageUpdateImagePayload ¶
type AddImageUpdateImageUpdateImagePayload struct {
NumUids int `json:"numUids"`
}
AddImageUpdateImageUpdateImagePayload includes the requested fields of the GraphQL type UpdateImagePayload.
func (*AddImageUpdateImageUpdateImagePayload) GetNumUids ¶
func (v *AddImageUpdateImageUpdateImagePayload) GetNumUids() int
GetNumUids returns AddImageUpdateImageUpdateImagePayload.NumUids, and is useful for accessing the field via an interface.
type AddOrganizationAddOrganizationAddOrganizationPayload ¶
type AddOrganizationAddOrganizationAddOrganizationPayload struct { NumUids int `json:"numUids"` Organization []*AddOrganizationAddOrganizationAddOrganizationPayloadOrganization `json:"organization"` }
AddOrganizationAddOrganizationAddOrganizationPayload includes the requested fields of the GraphQL type AddOrganizationPayload.
func (*AddOrganizationAddOrganizationAddOrganizationPayload) GetNumUids ¶
func (v *AddOrganizationAddOrganizationAddOrganizationPayload) GetNumUids() int
GetNumUids returns AddOrganizationAddOrganizationAddOrganizationPayload.NumUids, and is useful for accessing the field via an interface.
func (*AddOrganizationAddOrganizationAddOrganizationPayload) GetOrganization ¶
func (v *AddOrganizationAddOrganizationAddOrganizationPayload) GetOrganization() []*AddOrganizationAddOrganizationAddOrganizationPayloadOrganization
GetOrganization returns AddOrganizationAddOrganizationAddOrganizationPayload.Organization, and is useful for accessing the field via an interface.
type AddOrganizationAddOrganizationAddOrganizationPayloadOrganization ¶
type AddOrganizationAddOrganizationAddOrganizationPayloadOrganization struct { // id is randomly assigned Id string `json:"id"` Name string `json:"name"` }
AddOrganizationAddOrganizationAddOrganizationPayloadOrganization includes the requested fields of the GraphQL type Organization.
func (*AddOrganizationAddOrganizationAddOrganizationPayloadOrganization) GetId ¶
func (v *AddOrganizationAddOrganizationAddOrganizationPayloadOrganization) GetId() string
GetId returns AddOrganizationAddOrganizationAddOrganizationPayloadOrganization.Id, and is useful for accessing the field via an interface.
func (*AddOrganizationAddOrganizationAddOrganizationPayloadOrganization) GetName ¶
func (v *AddOrganizationAddOrganizationAddOrganizationPayloadOrganization) GetName() string
GetName returns AddOrganizationAddOrganizationAddOrganizationPayloadOrganization.Name, and is useful for accessing the field via an interface.
type AddOrganizationInput ¶
type AddOrganizationInput struct { // id is randomly assigned Id string `json:"id"` Name string `json:"name"` Roles []*RoleRef `json:"roles,omitempty"` Teams []*TeamRef `json:"teams,omitempty"` Environments []*DeploymentTargetRef `json:"environments,omitempty"` }
func (*AddOrganizationInput) GetEnvironments ¶
func (v *AddOrganizationInput) GetEnvironments() []*DeploymentTargetRef
GetEnvironments returns AddOrganizationInput.Environments, and is useful for accessing the field via an interface.
func (*AddOrganizationInput) GetId ¶
func (v *AddOrganizationInput) GetId() string
GetId returns AddOrganizationInput.Id, and is useful for accessing the field via an interface.
func (*AddOrganizationInput) GetName ¶
func (v *AddOrganizationInput) GetName() string
GetName returns AddOrganizationInput.Name, and is useful for accessing the field via an interface.
func (*AddOrganizationInput) GetRoles ¶
func (v *AddOrganizationInput) GetRoles() []*RoleRef
GetRoles returns AddOrganizationInput.Roles, and is useful for accessing the field via an interface.
func (*AddOrganizationInput) GetTeams ¶
func (v *AddOrganizationInput) GetTeams() []*TeamRef
GetTeams returns AddOrganizationInput.Teams, and is useful for accessing the field via an interface.
type AddOrganizationResponse ¶
type AddOrganizationResponse struct {
AddOrganization *AddOrganizationAddOrganizationAddOrganizationPayload `json:"addOrganization"`
}
AddOrganizationResponse is returned by AddOrganization on success.
func AddOrganization ¶
func AddOrganization( ctx context.Context, client graphql.Client, input *AddOrganizationInput, ) (*AddOrganizationResponse, error)
func (*AddOrganizationResponse) GetAddOrganization ¶
func (v *AddOrganizationResponse) GetAddOrganization() *AddOrganizationAddOrganizationAddOrganizationPayload
GetAddOrganization returns AddOrganizationResponse.AddOrganization, and is useful for accessing the field via an interface.
type AddScanAddImageScanResultAddImageScanResultPayload ¶
type AddScanAddImageScanResultAddImageScanResultPayload struct {
ImageScanResult []*AddScanAddImageScanResultAddImageScanResultPayloadImageScanResult `json:"imageScanResult"`
}
AddScanAddImageScanResultAddImageScanResultPayload includes the requested fields of the GraphQL type AddImageScanResultPayload.
func (*AddScanAddImageScanResultAddImageScanResultPayload) GetImageScanResult ¶
func (v *AddScanAddImageScanResultAddImageScanResultPayload) GetImageScanResult() []*AddScanAddImageScanResultAddImageScanResultPayloadImageScanResult
GetImageScanResult returns AddScanAddImageScanResultAddImageScanResultPayload.ImageScanResult, and is useful for accessing the field via an interface.
type AddScanAddImageScanResultAddImageScanResultPayloadImageScanResult ¶
type AddScanAddImageScanResultAddImageScanResultPayloadImageScanResult struct { // id is randomly assigned Id string `json:"id"` }
AddScanAddImageScanResultAddImageScanResultPayloadImageScanResult includes the requested fields of the GraphQL type ImageScanResult.
func (*AddScanAddImageScanResultAddImageScanResultPayloadImageScanResult) GetId ¶
func (v *AddScanAddImageScanResultAddImageScanResultPayloadImageScanResult) GetId() string
GetId returns AddScanAddImageScanResultAddImageScanResultPayloadImageScanResult.Id, and is useful for accessing the field via an interface.
type AddScanResponse ¶
type AddScanResponse struct { AddImageScanResult *AddScanAddImageScanResultAddImageScanResultPayload `json:"addImageScanResult"` UpdateImageScanState *AddScanUpdateImageScanStateUpdateImageScanStatePayload `json:"updateImageScanState"` }
AddScanResponse is returned by AddScan on success.
func AddScan ¶
func AddScan( ctx context.Context, client graphql.Client, scanResult *AddImageScanResultInput, scanStateId string, scanState *ImageScanStatePatch, ) (*AddScanResponse, error)
func (*AddScanResponse) GetAddImageScanResult ¶
func (v *AddScanResponse) GetAddImageScanResult() *AddScanAddImageScanResultAddImageScanResultPayload
GetAddImageScanResult returns AddScanResponse.AddImageScanResult, and is useful for accessing the field via an interface.
func (*AddScanResponse) GetUpdateImageScanState ¶
func (v *AddScanResponse) GetUpdateImageScanState() *AddScanUpdateImageScanStateUpdateImageScanStatePayload
GetUpdateImageScanState returns AddScanResponse.UpdateImageScanState, and is useful for accessing the field via an interface.
type AddScanUpdateImageScanStateUpdateImageScanStatePayload ¶
type AddScanUpdateImageScanStateUpdateImageScanStatePayload struct {
NumUids int `json:"numUids"`
}
AddScanUpdateImageScanStateUpdateImageScanStatePayload includes the requested fields of the GraphQL type UpdateImageScanStatePayload.
func (*AddScanUpdateImageScanStateUpdateImageScanStatePayload) GetNumUids ¶
func (v *AddScanUpdateImageScanStateUpdateImageScanStatePayload) GetNumUids() int
GetNumUids returns AddScanUpdateImageScanStateUpdateImageScanStatePayload.NumUids, and is useful for accessing the field via an interface.
type AddTeamAddTeamAddTeamPayload ¶
type AddTeamAddTeamAddTeamPayload struct { NumUids int `json:"numUids"` Team []*AddTeamAddTeamAddTeamPayloadTeam `json:"team"` }
AddTeamAddTeamAddTeamPayload includes the requested fields of the GraphQL type AddTeamPayload.
func (*AddTeamAddTeamAddTeamPayload) GetNumUids ¶
func (v *AddTeamAddTeamAddTeamPayload) GetNumUids() int
GetNumUids returns AddTeamAddTeamAddTeamPayload.NumUids, and is useful for accessing the field via an interface.
func (*AddTeamAddTeamAddTeamPayload) GetTeam ¶
func (v *AddTeamAddTeamAddTeamPayload) GetTeam() []*AddTeamAddTeamAddTeamPayloadTeam
GetTeam returns AddTeamAddTeamAddTeamPayload.Team, and is useful for accessing the field via an interface.
type AddTeamAddTeamAddTeamPayloadTeam ¶
type AddTeamAddTeamAddTeamPayloadTeam struct { // id is randomly assigned Id string `json:"id"` Name string `json:"name"` }
AddTeamAddTeamAddTeamPayloadTeam includes the requested fields of the GraphQL type Team.
func (*AddTeamAddTeamAddTeamPayloadTeam) GetId ¶
func (v *AddTeamAddTeamAddTeamPayloadTeam) GetId() string
GetId returns AddTeamAddTeamAddTeamPayloadTeam.Id, and is useful for accessing the field via an interface.
func (*AddTeamAddTeamAddTeamPayloadTeam) GetName ¶
func (v *AddTeamAddTeamAddTeamPayloadTeam) GetName() string
GetName returns AddTeamAddTeamAddTeamPayloadTeam.Name, and is useful for accessing the field via an interface.
type AddTeamInput ¶
type AddTeamInput struct { // id is randomly assigned Id string `json:"id"` Name string `json:"name"` Roles []*RoleRef `json:"roles,omitempty"` Organization *OrganizationRef `json:"organization,omitempty"` Applications []*ApplicationRef `json:"applications,omitempty"` Labels []*KeyValueRef `json:"labels,omitempty"` }
func (*AddTeamInput) GetApplications ¶
func (v *AddTeamInput) GetApplications() []*ApplicationRef
GetApplications returns AddTeamInput.Applications, and is useful for accessing the field via an interface.
func (*AddTeamInput) GetId ¶
func (v *AddTeamInput) GetId() string
GetId returns AddTeamInput.Id, and is useful for accessing the field via an interface.
func (*AddTeamInput) GetLabels ¶
func (v *AddTeamInput) GetLabels() []*KeyValueRef
GetLabels returns AddTeamInput.Labels, and is useful for accessing the field via an interface.
func (*AddTeamInput) GetName ¶
func (v *AddTeamInput) GetName() string
GetName returns AddTeamInput.Name, and is useful for accessing the field via an interface.
func (*AddTeamInput) GetOrganization ¶
func (v *AddTeamInput) GetOrganization() *OrganizationRef
GetOrganization returns AddTeamInput.Organization, and is useful for accessing the field via an interface.
func (*AddTeamInput) GetRoles ¶
func (v *AddTeamInput) GetRoles() []*RoleRef
GetRoles returns AddTeamInput.Roles, and is useful for accessing the field via an interface.
type AddTeamResponse ¶
type AddTeamResponse struct {
AddTeam *AddTeamAddTeamAddTeamPayload `json:"addTeam"`
}
AddTeamResponse is returned by AddTeam on success.
func AddTeam ¶
func AddTeam( ctx context.Context, client graphql.Client, input *AddTeamInput, ) (*AddTeamResponse, error)
Team related queries/mutations
func (*AddTeamResponse) GetAddTeam ¶
func (v *AddTeamResponse) GetAddTeam() *AddTeamAddTeamAddTeamPayload
GetAddTeam returns AddTeamResponse.AddTeam, and is useful for accessing the field via an interface.
type ApplicationComponentRef ¶
type ApplicationComponentRef struct { // id is randomly assigned Id string `json:"id"` Name string `json:"name"` ApplicationEnvironment *ApplicationEnvironmentRef `json:"applicationEnvironment,omitempty"` Deployments []*ApplicationDeploymentRef `json:"deployments,omitempty"` }
func (*ApplicationComponentRef) GetApplicationEnvironment ¶
func (v *ApplicationComponentRef) GetApplicationEnvironment() *ApplicationEnvironmentRef
GetApplicationEnvironment returns ApplicationComponentRef.ApplicationEnvironment, and is useful for accessing the field via an interface.
func (*ApplicationComponentRef) GetDeployments ¶
func (v *ApplicationComponentRef) GetDeployments() []*ApplicationDeploymentRef
GetDeployments returns ApplicationComponentRef.Deployments, and is useful for accessing the field via an interface.
func (*ApplicationComponentRef) GetId ¶
func (v *ApplicationComponentRef) GetId() string
GetId returns ApplicationComponentRef.Id, and is useful for accessing the field via an interface.
func (*ApplicationComponentRef) GetName ¶
func (v *ApplicationComponentRef) GetName() string
GetName returns ApplicationComponentRef.Name, and is useful for accessing the field via an interface.
type ApplicationDeploymentRef ¶
type ApplicationDeploymentRef struct { // id is randomly assigned Id string `json:"id"` Image []*ImageRef `json:"image,omitempty"` Component *ApplicationComponentRef `json:"component,omitempty"` DeployedAt *time.Time `json:"deployedAt"` DeploymentStage DeploymentStage `json:"deploymentStage"` Source string `json:"source"` DeployedBy string `json:"deployedBy"` ToolsUsed string `json:"toolsUsed"` DeploymentRisk *ApplicationDeploymentRiskRef `json:"deploymentRisk,omitempty"` }
func (*ApplicationDeploymentRef) GetComponent ¶
func (v *ApplicationDeploymentRef) GetComponent() *ApplicationComponentRef
GetComponent returns ApplicationDeploymentRef.Component, and is useful for accessing the field via an interface.
func (*ApplicationDeploymentRef) GetDeployedAt ¶
func (v *ApplicationDeploymentRef) GetDeployedAt() *time.Time
GetDeployedAt returns ApplicationDeploymentRef.DeployedAt, and is useful for accessing the field via an interface.
func (*ApplicationDeploymentRef) GetDeployedBy ¶
func (v *ApplicationDeploymentRef) GetDeployedBy() string
GetDeployedBy returns ApplicationDeploymentRef.DeployedBy, and is useful for accessing the field via an interface.
func (*ApplicationDeploymentRef) GetDeploymentRisk ¶
func (v *ApplicationDeploymentRef) GetDeploymentRisk() *ApplicationDeploymentRiskRef
GetDeploymentRisk returns ApplicationDeploymentRef.DeploymentRisk, and is useful for accessing the field via an interface.
func (*ApplicationDeploymentRef) GetDeploymentStage ¶
func (v *ApplicationDeploymentRef) GetDeploymentStage() DeploymentStage
GetDeploymentStage returns ApplicationDeploymentRef.DeploymentStage, and is useful for accessing the field via an interface.
func (*ApplicationDeploymentRef) GetId ¶
func (v *ApplicationDeploymentRef) GetId() string
GetId returns ApplicationDeploymentRef.Id, and is useful for accessing the field via an interface.
func (*ApplicationDeploymentRef) GetImage ¶
func (v *ApplicationDeploymentRef) GetImage() []*ImageRef
GetImage returns ApplicationDeploymentRef.Image, and is useful for accessing the field via an interface.
func (*ApplicationDeploymentRef) GetSource ¶
func (v *ApplicationDeploymentRef) GetSource() string
GetSource returns ApplicationDeploymentRef.Source, and is useful for accessing the field via an interface.
func (*ApplicationDeploymentRef) GetToolsUsed ¶
func (v *ApplicationDeploymentRef) GetToolsUsed() string
GetToolsUsed returns ApplicationDeploymentRef.ToolsUsed, and is useful for accessing the field via an interface.
type ApplicationDeploymentRiskRef ¶
type ApplicationDeploymentRiskRef struct { Id string `json:"id"` SourceCodeAlertsScore int `json:"sourceCodeAlertsScore"` BuildAlertsScore int `json:"buildAlertsScore"` ArtifactAlertsScore int `json:"artifactAlertsScore"` DeploymentAlertsScore int `json:"deploymentAlertsScore"` ImageRiskStatus RiskStatus `json:"imageRiskStatus"` CreatedAt *time.Time `json:"createdAt"` ApplicationDeployment *ApplicationDeploymentRef `json:"applicationDeployment,omitempty"` }
func (*ApplicationDeploymentRiskRef) GetApplicationDeployment ¶
func (v *ApplicationDeploymentRiskRef) GetApplicationDeployment() *ApplicationDeploymentRef
GetApplicationDeployment returns ApplicationDeploymentRiskRef.ApplicationDeployment, and is useful for accessing the field via an interface.
func (*ApplicationDeploymentRiskRef) GetArtifactAlertsScore ¶
func (v *ApplicationDeploymentRiskRef) GetArtifactAlertsScore() int
GetArtifactAlertsScore returns ApplicationDeploymentRiskRef.ArtifactAlertsScore, and is useful for accessing the field via an interface.
func (*ApplicationDeploymentRiskRef) GetBuildAlertsScore ¶
func (v *ApplicationDeploymentRiskRef) GetBuildAlertsScore() int
GetBuildAlertsScore returns ApplicationDeploymentRiskRef.BuildAlertsScore, and is useful for accessing the field via an interface.
func (*ApplicationDeploymentRiskRef) GetCreatedAt ¶
func (v *ApplicationDeploymentRiskRef) GetCreatedAt() *time.Time
GetCreatedAt returns ApplicationDeploymentRiskRef.CreatedAt, and is useful for accessing the field via an interface.
func (*ApplicationDeploymentRiskRef) GetDeploymentAlertsScore ¶
func (v *ApplicationDeploymentRiskRef) GetDeploymentAlertsScore() int
GetDeploymentAlertsScore returns ApplicationDeploymentRiskRef.DeploymentAlertsScore, and is useful for accessing the field via an interface.
func (*ApplicationDeploymentRiskRef) GetId ¶
func (v *ApplicationDeploymentRiskRef) GetId() string
GetId returns ApplicationDeploymentRiskRef.Id, and is useful for accessing the field via an interface.
func (*ApplicationDeploymentRiskRef) GetImageRiskStatus ¶
func (v *ApplicationDeploymentRiskRef) GetImageRiskStatus() RiskStatus
GetImageRiskStatus returns ApplicationDeploymentRiskRef.ImageRiskStatus, and is useful for accessing the field via an interface.
func (*ApplicationDeploymentRiskRef) GetSourceCodeAlertsScore ¶
func (v *ApplicationDeploymentRiskRef) GetSourceCodeAlertsScore() int
GetSourceCodeAlertsScore returns ApplicationDeploymentRiskRef.SourceCodeAlertsScore, and is useful for accessing the field via an interface.
type ApplicationEnvironmentRef ¶
type ApplicationEnvironmentRef struct { // id is randomly assigned Id string `json:"id"` Type string `json:"type"` Application *ApplicationRef `json:"application,omitempty"` DeploymentTarget *DeploymentTargetRef `json:"deploymentTarget,omitempty"` Namespace string `json:"namespace"` ToolsUsed string `json:"toolsUsed"` Components []*ApplicationComponentRef `json:"components,omitempty"` RiskStatus *ApplicationRiskStatusRef `json:"riskStatus,omitempty"` }
func (*ApplicationEnvironmentRef) GetApplication ¶
func (v *ApplicationEnvironmentRef) GetApplication() *ApplicationRef
GetApplication returns ApplicationEnvironmentRef.Application, and is useful for accessing the field via an interface.
func (*ApplicationEnvironmentRef) GetComponents ¶
func (v *ApplicationEnvironmentRef) GetComponents() []*ApplicationComponentRef
GetComponents returns ApplicationEnvironmentRef.Components, and is useful for accessing the field via an interface.
func (*ApplicationEnvironmentRef) GetDeploymentTarget ¶
func (v *ApplicationEnvironmentRef) GetDeploymentTarget() *DeploymentTargetRef
GetDeploymentTarget returns ApplicationEnvironmentRef.DeploymentTarget, and is useful for accessing the field via an interface.
func (*ApplicationEnvironmentRef) GetId ¶
func (v *ApplicationEnvironmentRef) GetId() string
GetId returns ApplicationEnvironmentRef.Id, and is useful for accessing the field via an interface.
func (*ApplicationEnvironmentRef) GetNamespace ¶
func (v *ApplicationEnvironmentRef) GetNamespace() string
GetNamespace returns ApplicationEnvironmentRef.Namespace, and is useful for accessing the field via an interface.
func (*ApplicationEnvironmentRef) GetRiskStatus ¶
func (v *ApplicationEnvironmentRef) GetRiskStatus() *ApplicationRiskStatusRef
GetRiskStatus returns ApplicationEnvironmentRef.RiskStatus, and is useful for accessing the field via an interface.
func (*ApplicationEnvironmentRef) GetToolsUsed ¶
func (v *ApplicationEnvironmentRef) GetToolsUsed() string
GetToolsUsed returns ApplicationEnvironmentRef.ToolsUsed, and is useful for accessing the field via an interface.
func (*ApplicationEnvironmentRef) GetType ¶
func (v *ApplicationEnvironmentRef) GetType() string
GetType returns ApplicationEnvironmentRef.Type, and is useful for accessing the field via an interface.
type ApplicationRef ¶
type ApplicationRef struct { // id is randomly assigned Id string `json:"id"` Name string `json:"name"` Roles []*RoleRef `json:"roles,omitempty"` Environments []*ApplicationEnvironmentRef `json:"environments,omitempty"` Team *TeamRef `json:"team,omitempty"` }
func (*ApplicationRef) GetEnvironments ¶
func (v *ApplicationRef) GetEnvironments() []*ApplicationEnvironmentRef
GetEnvironments returns ApplicationRef.Environments, and is useful for accessing the field via an interface.
func (*ApplicationRef) GetId ¶
func (v *ApplicationRef) GetId() string
GetId returns ApplicationRef.Id, and is useful for accessing the field via an interface.
func (*ApplicationRef) GetName ¶
func (v *ApplicationRef) GetName() string
GetName returns ApplicationRef.Name, and is useful for accessing the field via an interface.
func (*ApplicationRef) GetRoles ¶
func (v *ApplicationRef) GetRoles() []*RoleRef
GetRoles returns ApplicationRef.Roles, and is useful for accessing the field via an interface.
func (*ApplicationRef) GetTeam ¶
func (v *ApplicationRef) GetTeam() *TeamRef
GetTeam returns ApplicationRef.Team, and is useful for accessing the field via an interface.
type ApplicationRiskStatusRef ¶
type ApplicationRiskStatusRef struct { Id string `json:"id"` RiskStatus RiskStatus `json:"riskStatus"` SourceCodeAlerts int `json:"sourceCodeAlerts"` BuildAlerts int `json:"buildAlerts"` ArtifactAlerts int `json:"artifactAlerts"` DeploymentAlerts int `json:"deploymentAlerts"` CreatedAt *time.Time `json:"createdAt"` UpdatedAt *time.Time `json:"updatedAt"` ApplicationEnvironment *ApplicationEnvironmentRef `json:"applicationEnvironment,omitempty"` }
func (*ApplicationRiskStatusRef) GetApplicationEnvironment ¶
func (v *ApplicationRiskStatusRef) GetApplicationEnvironment() *ApplicationEnvironmentRef
GetApplicationEnvironment returns ApplicationRiskStatusRef.ApplicationEnvironment, and is useful for accessing the field via an interface.
func (*ApplicationRiskStatusRef) GetArtifactAlerts ¶
func (v *ApplicationRiskStatusRef) GetArtifactAlerts() int
GetArtifactAlerts returns ApplicationRiskStatusRef.ArtifactAlerts, and is useful for accessing the field via an interface.
func (*ApplicationRiskStatusRef) GetBuildAlerts ¶
func (v *ApplicationRiskStatusRef) GetBuildAlerts() int
GetBuildAlerts returns ApplicationRiskStatusRef.BuildAlerts, and is useful for accessing the field via an interface.
func (*ApplicationRiskStatusRef) GetCreatedAt ¶
func (v *ApplicationRiskStatusRef) GetCreatedAt() *time.Time
GetCreatedAt returns ApplicationRiskStatusRef.CreatedAt, and is useful for accessing the field via an interface.
func (*ApplicationRiskStatusRef) GetDeploymentAlerts ¶
func (v *ApplicationRiskStatusRef) GetDeploymentAlerts() int
GetDeploymentAlerts returns ApplicationRiskStatusRef.DeploymentAlerts, and is useful for accessing the field via an interface.
func (*ApplicationRiskStatusRef) GetId ¶
func (v *ApplicationRiskStatusRef) GetId() string
GetId returns ApplicationRiskStatusRef.Id, and is useful for accessing the field via an interface.
func (*ApplicationRiskStatusRef) GetRiskStatus ¶
func (v *ApplicationRiskStatusRef) GetRiskStatus() RiskStatus
GetRiskStatus returns ApplicationRiskStatusRef.RiskStatus, and is useful for accessing the field via an interface.
func (*ApplicationRiskStatusRef) GetSourceCodeAlerts ¶
func (v *ApplicationRiskStatusRef) GetSourceCodeAlerts() int
GetSourceCodeAlerts returns ApplicationRiskStatusRef.SourceCodeAlerts, and is useful for accessing the field via an interface.
func (*ApplicationRiskStatusRef) GetUpdatedAt ¶
func (v *ApplicationRiskStatusRef) GetUpdatedAt() *time.Time
GetUpdatedAt returns ApplicationRiskStatusRef.UpdatedAt, and is useful for accessing the field via an interface.
type CWERef ¶
type CWERef struct { // id is the CWE id, which is assigned from an anthority Id int `json:"id"` Name string `json:"name"` Description string `json:"description"` }
func (*CWERef) GetDescription ¶
GetDescription returns CWERef.Description, and is useful for accessing the field via an interface.
type DeploymentStage ¶
type DeploymentStage string
const ( DeploymentStageDiscovered DeploymentStage = "discovered" DeploymentStageCurrent DeploymentStage = "current" DeploymentStagePrevious DeploymentStage = "previous" DeploymentStageBlocked DeploymentStage = "blocked" )
type DeploymentTargetRef ¶
type DeploymentTargetRef struct { // id is randomly assigned Id string `json:"id"` Name string `json:"name"` IsFirewall bool `json:"isFirewall"` Organization *OrganizationRef `json:"organization,omitempty"` }
func (*DeploymentTargetRef) GetId ¶
func (v *DeploymentTargetRef) GetId() string
GetId returns DeploymentTargetRef.Id, and is useful for accessing the field via an interface.
func (*DeploymentTargetRef) GetIsFirewall ¶
func (v *DeploymentTargetRef) GetIsFirewall() bool
GetIsFirewall returns DeploymentTargetRef.IsFirewall, and is useful for accessing the field via an interface.
func (*DeploymentTargetRef) GetName ¶
func (v *DeploymentTargetRef) GetName() string
GetName returns DeploymentTargetRef.Name, and is useful for accessing the field via an interface.
func (*DeploymentTargetRef) GetOrganization ¶
func (v *DeploymentTargetRef) GetOrganization() *OrganizationRef
GetOrganization returns DeploymentTargetRef.Organization, and is useful for accessing the field via an interface.
type GetImageIndexAndImagesGetImageIndex ¶
type GetImageIndexAndImagesGetImageIndex struct { // Images which are part of this index Images []*GetImageIndexAndImagesGetImageIndexImagesImage `json:"images"` }
GetImageIndexAndImagesGetImageIndex includes the requested fields of the GraphQL type ImageIndex. The GraphQL type's documentation follows.
ImageIndex holds the association between an ImageName and a specific list of images, each of which will have a platform (hopefully) and a unique digest.
ImageIndex also has a list of deployments, which indicate where this image is currently in use.
func (*GetImageIndexAndImagesGetImageIndex) GetImages ¶
func (v *GetImageIndexAndImagesGetImageIndex) GetImages() []*GetImageIndexAndImagesGetImageIndexImagesImage
GetImages returns GetImageIndexAndImagesGetImageIndex.Images, and is useful for accessing the field via an interface.
type GetImageIndexAndImagesGetImageIndexImagesImage ¶
type GetImageIndexAndImagesGetImageIndexImagesImage struct { // Digest is the image's digest Digest string `json:"digest"` // docker platform string, e.g. linux/arm64/v8 or linux/amd64 or linux/arm64 Platform string `json:"platform"` }
GetImageIndexAndImagesGetImageIndexImagesImage includes the requested fields of the GraphQL type Image. The GraphQL type's documentation follows.
Image holds a specific deployable image, with a platform. This is the underlying object that is scanned by security scanners. It may also be what is deployed, but generally these are found indrectly through the ImageIndex, with a platform filter.
func (*GetImageIndexAndImagesGetImageIndexImagesImage) GetDigest ¶
func (v *GetImageIndexAndImagesGetImageIndexImagesImage) GetDigest() string
GetDigest returns GetImageIndexAndImagesGetImageIndexImagesImage.Digest, and is useful for accessing the field via an interface.
func (*GetImageIndexAndImagesGetImageIndexImagesImage) GetPlatform ¶
func (v *GetImageIndexAndImagesGetImageIndexImagesImage) GetPlatform() string
GetPlatform returns GetImageIndexAndImagesGetImageIndexImagesImage.Platform, and is useful for accessing the field via an interface.
type GetImageIndexAndImagesResponse ¶
type GetImageIndexAndImagesResponse struct {
GetImageIndex *GetImageIndexAndImagesGetImageIndex `json:"getImageIndex"`
}
GetImageIndexAndImagesResponse is returned by GetImageIndexAndImages on success.
func GetImageIndexAndImages ¶
func (*GetImageIndexAndImagesResponse) GetGetImageIndex ¶
func (v *GetImageIndexAndImagesResponse) GetGetImageIndex() *GetImageIndexAndImagesGetImageIndex
GetGetImageIndex returns GetImageIndexAndImagesResponse.GetImageIndex, and is useful for accessing the field via an interface.
type GetOrganizationGetOrganization ¶
type GetOrganizationGetOrganization struct { // id is randomly assigned Id string `json:"id"` Name string `json:"name"` }
GetOrganizationGetOrganization includes the requested fields of the GraphQL type Organization.
func (*GetOrganizationGetOrganization) GetId ¶
func (v *GetOrganizationGetOrganization) GetId() string
GetId returns GetOrganizationGetOrganization.Id, and is useful for accessing the field via an interface.
func (*GetOrganizationGetOrganization) GetName ¶
func (v *GetOrganizationGetOrganization) GetName() string
GetName returns GetOrganizationGetOrganization.Name, and is useful for accessing the field via an interface.
type GetOrganizationResponse ¶
type GetOrganizationResponse struct {
GetOrganization *GetOrganizationGetOrganization `json:"getOrganization"`
}
GetOrganizationResponse is returned by GetOrganization on success.
func GetOrganization ¶
func GetOrganization( ctx context.Context, client graphql.Client, id string, ) (*GetOrganizationResponse, error)
Organisation related queries/mutations
func (*GetOrganizationResponse) GetGetOrganization ¶
func (v *GetOrganizationResponse) GetGetOrganization() *GetOrganizationGetOrganization
GetGetOrganization returns GetOrganizationResponse.GetOrganization, and is useful for accessing the field via an interface.
type ImageComponentRef ¶
type ImageComponentRef struct { // id is randomly assigned Id string `json:"id"` Type string `json:"type"` Name string `json:"name"` Version string `json:"version"` Licenses []string `json:"licenses"` Purl string `json:"purl"` Cpe string `json:"cpe"` Vulnerabilities []*VulnerabilityRef `json:"vulnerabilities,omitempty"` ImageScanResult *ImageScanResultRef `json:"imageScanResult,omitempty"` }
func (*ImageComponentRef) GetCpe ¶
func (v *ImageComponentRef) GetCpe() string
GetCpe returns ImageComponentRef.Cpe, and is useful for accessing the field via an interface.
func (*ImageComponentRef) GetId ¶
func (v *ImageComponentRef) GetId() string
GetId returns ImageComponentRef.Id, and is useful for accessing the field via an interface.
func (*ImageComponentRef) GetImageScanResult ¶
func (v *ImageComponentRef) GetImageScanResult() *ImageScanResultRef
GetImageScanResult returns ImageComponentRef.ImageScanResult, and is useful for accessing the field via an interface.
func (*ImageComponentRef) GetLicenses ¶
func (v *ImageComponentRef) GetLicenses() []string
GetLicenses returns ImageComponentRef.Licenses, and is useful for accessing the field via an interface.
func (*ImageComponentRef) GetName ¶
func (v *ImageComponentRef) GetName() string
GetName returns ImageComponentRef.Name, and is useful for accessing the field via an interface.
func (*ImageComponentRef) GetPurl ¶
func (v *ImageComponentRef) GetPurl() string
GetPurl returns ImageComponentRef.Purl, and is useful for accessing the field via an interface.
func (*ImageComponentRef) GetType ¶
func (v *ImageComponentRef) GetType() string
GetType returns ImageComponentRef.Type, and is useful for accessing the field via an interface.
func (*ImageComponentRef) GetVersion ¶
func (v *ImageComponentRef) GetVersion() string
GetVersion returns ImageComponentRef.Version, and is useful for accessing the field via an interface.
func (*ImageComponentRef) GetVulnerabilities ¶
func (v *ImageComponentRef) GetVulnerabilities() []*VulnerabilityRef
GetVulnerabilities returns ImageComponentRef.Vulnerabilities, and is useful for accessing the field via an interface.
type ImageIndexRef ¶
type ImageIndexRef struct { // id is a hash of the image index's digest and ownership. Id string `json:"id"` // Digest is the image index's digest, or the image digest if it not an index Digest string `json:"digest"` Organization *OrganizationRef `json:"organization,omitempty"` ImageNames []*ImageNameRef `json:"imageNames,omitempty"` Images []*ImageRef `json:"images,omitempty"` CreatedAt *time.Time `json:"createdAt"` }
func (*ImageIndexRef) GetCreatedAt ¶
func (v *ImageIndexRef) GetCreatedAt() *time.Time
GetCreatedAt returns ImageIndexRef.CreatedAt, and is useful for accessing the field via an interface.
func (*ImageIndexRef) GetDigest ¶
func (v *ImageIndexRef) GetDigest() string
GetDigest returns ImageIndexRef.Digest, and is useful for accessing the field via an interface.
func (*ImageIndexRef) GetId ¶
func (v *ImageIndexRef) GetId() string
GetId returns ImageIndexRef.Id, and is useful for accessing the field via an interface.
func (*ImageIndexRef) GetImageNames ¶
func (v *ImageIndexRef) GetImageNames() []*ImageNameRef
GetImageNames returns ImageIndexRef.ImageNames, and is useful for accessing the field via an interface.
func (*ImageIndexRef) GetImages ¶
func (v *ImageIndexRef) GetImages() []*ImageRef
GetImages returns ImageIndexRef.Images, and is useful for accessing the field via an interface.
func (*ImageIndexRef) GetOrganization ¶
func (v *ImageIndexRef) GetOrganization() *OrganizationRef
GetOrganization returns ImageIndexRef.Organization, and is useful for accessing the field via an interface.
type ImageNameRef ¶
type ImageNameRef struct { // id is the name and ownership hashed. Id string `json:"id"` Organization *OrganizationRef `json:"organization,omitempty"` // Name is the base name of the image, such as 'docker.io/library/fooimage' Name string `json:"name"` ImageIndexes []*ImageIndexRef `json:"imageIndexes,omitempty"` CreatedAt *time.Time `json:"createdAt"` }
func (*ImageNameRef) GetCreatedAt ¶
func (v *ImageNameRef) GetCreatedAt() *time.Time
GetCreatedAt returns ImageNameRef.CreatedAt, and is useful for accessing the field via an interface.
func (*ImageNameRef) GetId ¶
func (v *ImageNameRef) GetId() string
GetId returns ImageNameRef.Id, and is useful for accessing the field via an interface.
func (*ImageNameRef) GetImageIndexes ¶
func (v *ImageNameRef) GetImageIndexes() []*ImageIndexRef
GetImageIndexes returns ImageNameRef.ImageIndexes, and is useful for accessing the field via an interface.
func (*ImageNameRef) GetName ¶
func (v *ImageNameRef) GetName() string
GetName returns ImageNameRef.Name, and is useful for accessing the field via an interface.
func (*ImageNameRef) GetOrganization ¶
func (v *ImageNameRef) GetOrganization() *OrganizationRef
GetOrganization returns ImageNameRef.Organization, and is useful for accessing the field via an interface.
type ImageRef ¶
type ImageRef struct { // id is a hash of the image's digest and ownership. Id string `json:"id"` // Digest is the image's digest Digest string `json:"digest"` Organization *OrganizationRef `json:"organization,omitempty"` ImageIndexes []*ImageIndexRef `json:"imageIndexes,omitempty"` // docker platform string, e.g. linux/arm64/v8 or linux/amd64 or linux/arm64 Platform string `json:"platform"` Deployments []*ApplicationDeploymentRef `json:"deployments,omitempty"` Scans []*ImageScanStateRef `json:"scans,omitempty"` CreatedAt *time.Time `json:"createdAt"` }
func (*ImageRef) GetCreatedAt ¶
GetCreatedAt returns ImageRef.CreatedAt, and is useful for accessing the field via an interface.
func (*ImageRef) GetDeployments ¶
func (v *ImageRef) GetDeployments() []*ApplicationDeploymentRef
GetDeployments returns ImageRef.Deployments, and is useful for accessing the field via an interface.
func (*ImageRef) GetDigest ¶
GetDigest returns ImageRef.Digest, and is useful for accessing the field via an interface.
func (*ImageRef) GetId ¶
GetId returns ImageRef.Id, and is useful for accessing the field via an interface.
func (*ImageRef) GetImageIndexes ¶
func (v *ImageRef) GetImageIndexes() []*ImageIndexRef
GetImageIndexes returns ImageRef.ImageIndexes, and is useful for accessing the field via an interface.
func (*ImageRef) GetOrganization ¶
func (v *ImageRef) GetOrganization() *OrganizationRef
GetOrganization returns ImageRef.Organization, and is useful for accessing the field via an interface.
func (*ImageRef) GetPlatform ¶
GetPlatform returns ImageRef.Platform, and is useful for accessing the field via an interface.
func (*ImageRef) GetScans ¶
func (v *ImageRef) GetScans() []*ImageScanStateRef
GetScans returns ImageRef.Scans, and is useful for accessing the field via an interface.
type ImageScanResultRef ¶
type ImageScanResultRef struct { // id is randomly assigned Id string `json:"id"` ImageScanState *ImageScanStateRef `json:"imageScanState,omitempty"` Components []*ImageComponentRef `json:"components,omitempty"` VulnCriticalCount int `json:"vulnCriticalCount"` VulnHighCount int `json:"vulnHighCount"` VulnMediumCount int `json:"vulnMediumCount"` VulnLowCount int `json:"vulnLowCount"` VulnInfoCount int `json:"vulnInfoCount"` VulnUnknownCount int `json:"vulnUnknownCount"` VulnNoneCount int `json:"vulnNoneCount"` VulnTotalCount int `json:"vulnTotalCount"` CreatedAt *time.Time `json:"createdAt"` }
func (*ImageScanResultRef) GetComponents ¶
func (v *ImageScanResultRef) GetComponents() []*ImageComponentRef
GetComponents returns ImageScanResultRef.Components, and is useful for accessing the field via an interface.
func (*ImageScanResultRef) GetCreatedAt ¶
func (v *ImageScanResultRef) GetCreatedAt() *time.Time
GetCreatedAt returns ImageScanResultRef.CreatedAt, and is useful for accessing the field via an interface.
func (*ImageScanResultRef) GetId ¶
func (v *ImageScanResultRef) GetId() string
GetId returns ImageScanResultRef.Id, and is useful for accessing the field via an interface.
func (*ImageScanResultRef) GetImageScanState ¶
func (v *ImageScanResultRef) GetImageScanState() *ImageScanStateRef
GetImageScanState returns ImageScanResultRef.ImageScanState, and is useful for accessing the field via an interface.
func (*ImageScanResultRef) GetVulnCriticalCount ¶
func (v *ImageScanResultRef) GetVulnCriticalCount() int
GetVulnCriticalCount returns ImageScanResultRef.VulnCriticalCount, and is useful for accessing the field via an interface.
func (*ImageScanResultRef) GetVulnHighCount ¶
func (v *ImageScanResultRef) GetVulnHighCount() int
GetVulnHighCount returns ImageScanResultRef.VulnHighCount, and is useful for accessing the field via an interface.
func (*ImageScanResultRef) GetVulnInfoCount ¶
func (v *ImageScanResultRef) GetVulnInfoCount() int
GetVulnInfoCount returns ImageScanResultRef.VulnInfoCount, and is useful for accessing the field via an interface.
func (*ImageScanResultRef) GetVulnLowCount ¶
func (v *ImageScanResultRef) GetVulnLowCount() int
GetVulnLowCount returns ImageScanResultRef.VulnLowCount, and is useful for accessing the field via an interface.
func (*ImageScanResultRef) GetVulnMediumCount ¶
func (v *ImageScanResultRef) GetVulnMediumCount() int
GetVulnMediumCount returns ImageScanResultRef.VulnMediumCount, and is useful for accessing the field via an interface.
func (*ImageScanResultRef) GetVulnNoneCount ¶
func (v *ImageScanResultRef) GetVulnNoneCount() int
GetVulnNoneCount returns ImageScanResultRef.VulnNoneCount, and is useful for accessing the field via an interface.
func (*ImageScanResultRef) GetVulnTotalCount ¶
func (v *ImageScanResultRef) GetVulnTotalCount() int
GetVulnTotalCount returns ImageScanResultRef.VulnTotalCount, and is useful for accessing the field via an interface.
func (*ImageScanResultRef) GetVulnUnknownCount ¶
func (v *ImageScanResultRef) GetVulnUnknownCount() int
GetVulnUnknownCount returns ImageScanResultRef.VulnUnknownCount, and is useful for accessing the field via an interface.
type ImageScanStatePatch ¶
type ImageScanStatePatch struct { Image *ImageRef `json:"image,omitempty"` Tools []*ToolInfoRef `json:"tools,omitempty"` DatabaseVersions []*KeyValueRef `json:"databaseVersions,omitempty"` // status of the scan Status ImageScanStateStatus `json:"status"` // statusReason may hold a human-readable reason for the current state. This is generally // only updated for 'error' status, where providing additional reasons for the failure // to a user or admin would help. StatusReason string `json:"statusReason"` Result *ImageScanResultRef `json:"result,omitempty"` UpdatedAt *time.Time `json:"updatedAt"` CreatedAt *time.Time `json:"createdAt"` }
func (*ImageScanStatePatch) GetCreatedAt ¶
func (v *ImageScanStatePatch) GetCreatedAt() *time.Time
GetCreatedAt returns ImageScanStatePatch.CreatedAt, and is useful for accessing the field via an interface.
func (*ImageScanStatePatch) GetDatabaseVersions ¶
func (v *ImageScanStatePatch) GetDatabaseVersions() []*KeyValueRef
GetDatabaseVersions returns ImageScanStatePatch.DatabaseVersions, and is useful for accessing the field via an interface.
func (*ImageScanStatePatch) GetImage ¶
func (v *ImageScanStatePatch) GetImage() *ImageRef
GetImage returns ImageScanStatePatch.Image, and is useful for accessing the field via an interface.
func (*ImageScanStatePatch) GetResult ¶
func (v *ImageScanStatePatch) GetResult() *ImageScanResultRef
GetResult returns ImageScanStatePatch.Result, and is useful for accessing the field via an interface.
func (*ImageScanStatePatch) GetStatus ¶
func (v *ImageScanStatePatch) GetStatus() ImageScanStateStatus
GetStatus returns ImageScanStatePatch.Status, and is useful for accessing the field via an interface.
func (*ImageScanStatePatch) GetStatusReason ¶
func (v *ImageScanStatePatch) GetStatusReason() string
GetStatusReason returns ImageScanStatePatch.StatusReason, and is useful for accessing the field via an interface.
func (*ImageScanStatePatch) GetTools ¶
func (v *ImageScanStatePatch) GetTools() []*ToolInfoRef
GetTools returns ImageScanStatePatch.Tools, and is useful for accessing the field via an interface.
func (*ImageScanStatePatch) GetUpdatedAt ¶
func (v *ImageScanStatePatch) GetUpdatedAt() *time.Time
GetUpdatedAt returns ImageScanStatePatch.UpdatedAt, and is useful for accessing the field via an interface.
type ImageScanStateRef ¶
type ImageScanStateRef struct { // id is randomly assigned Id string `json:"id"` Image *ImageRef `json:"image,omitempty"` Tools []*ToolInfoRef `json:"tools,omitempty"` DatabaseVersions []*KeyValueRef `json:"databaseVersions,omitempty"` // status of the scan Status ImageScanStateStatus `json:"status"` // statusReason may hold a human-readable reason for the current state. This is generally // only updated for 'error' status, where providing additional reasons for the failure // to a user or admin would help. StatusReason string `json:"statusReason"` Result *ImageScanResultRef `json:"result,omitempty"` UpdatedAt *time.Time `json:"updatedAt"` CreatedAt *time.Time `json:"createdAt"` }
func (*ImageScanStateRef) GetCreatedAt ¶
func (v *ImageScanStateRef) GetCreatedAt() *time.Time
GetCreatedAt returns ImageScanStateRef.CreatedAt, and is useful for accessing the field via an interface.
func (*ImageScanStateRef) GetDatabaseVersions ¶
func (v *ImageScanStateRef) GetDatabaseVersions() []*KeyValueRef
GetDatabaseVersions returns ImageScanStateRef.DatabaseVersions, and is useful for accessing the field via an interface.
func (*ImageScanStateRef) GetId ¶
func (v *ImageScanStateRef) GetId() string
GetId returns ImageScanStateRef.Id, and is useful for accessing the field via an interface.
func (*ImageScanStateRef) GetImage ¶
func (v *ImageScanStateRef) GetImage() *ImageRef
GetImage returns ImageScanStateRef.Image, and is useful for accessing the field via an interface.
func (*ImageScanStateRef) GetResult ¶
func (v *ImageScanStateRef) GetResult() *ImageScanResultRef
GetResult returns ImageScanStateRef.Result, and is useful for accessing the field via an interface.
func (*ImageScanStateRef) GetStatus ¶
func (v *ImageScanStateRef) GetStatus() ImageScanStateStatus
GetStatus returns ImageScanStateRef.Status, and is useful for accessing the field via an interface.
func (*ImageScanStateRef) GetStatusReason ¶
func (v *ImageScanStateRef) GetStatusReason() string
GetStatusReason returns ImageScanStateRef.StatusReason, and is useful for accessing the field via an interface.
func (*ImageScanStateRef) GetTools ¶
func (v *ImageScanStateRef) GetTools() []*ToolInfoRef
GetTools returns ImageScanStateRef.Tools, and is useful for accessing the field via an interface.
func (*ImageScanStateRef) GetUpdatedAt ¶
func (v *ImageScanStateRef) GetUpdatedAt() *time.Time
GetUpdatedAt returns ImageScanStateRef.UpdatedAt, and is useful for accessing the field via an interface.
type ImageScanStateStatus ¶
type ImageScanStateStatus string
const ( // The image scan has been started, but is not yet complete ImageScanStateStatusPending ImageScanStateStatus = "pending" // The image scan is currently in progress ImageScanStateStatusRunning ImageScanStateStatus = "running" // the image scan is complete and results are available ImageScanStateStatusComplete ImageScanStateStatus = "complete" // the image scan failed for some reason, and no further work will be performed on this scan ImageScanStateStatusError ImageScanStateStatus = "error" )
type KeyValueRef ¶
func (*KeyValueRef) GetName ¶
func (v *KeyValueRef) GetName() string
GetName returns KeyValueRef.Name, and is useful for accessing the field via an interface.
func (*KeyValueRef) GetValue ¶
func (v *KeyValueRef) GetValue() string
GetValue returns KeyValueRef.Value, and is useful for accessing the field via an interface.
type LinkImageIndexToNameResponse ¶
type LinkImageIndexToNameResponse struct {
UpdateImageName *LinkImageIndexToNameUpdateImageNameUpdateImageNamePayload `json:"updateImageName"`
}
LinkImageIndexToNameResponse is returned by LinkImageIndexToName on success.
func LinkImageIndexToName ¶
func (*LinkImageIndexToNameResponse) GetUpdateImageName ¶
func (v *LinkImageIndexToNameResponse) GetUpdateImageName() *LinkImageIndexToNameUpdateImageNameUpdateImageNamePayload
GetUpdateImageName returns LinkImageIndexToNameResponse.UpdateImageName, and is useful for accessing the field via an interface.
type LinkImageIndexToNameUpdateImageNameUpdateImageNamePayload ¶
type LinkImageIndexToNameUpdateImageNameUpdateImageNamePayload struct {
NumUids int `json:"numUids"`
}
LinkImageIndexToNameUpdateImageNameUpdateImageNamePayload includes the requested fields of the GraphQL type UpdateImageNamePayload.
func (*LinkImageIndexToNameUpdateImageNameUpdateImageNamePayload) GetNumUids ¶
func (v *LinkImageIndexToNameUpdateImageNameUpdateImageNamePayload) GetNumUids() int
GetNumUids returns LinkImageIndexToNameUpdateImageNameUpdateImageNamePayload.NumUids, and is useful for accessing the field via an interface.
type OrganizationRef ¶
type OrganizationRef struct { // id is randomly assigned Id string `json:"id"` Name string `json:"name"` Roles []*RoleRef `json:"roles,omitempty"` Teams []*TeamRef `json:"teams,omitempty"` Environments []*DeploymentTargetRef `json:"environments,omitempty"` }
func (*OrganizationRef) GetEnvironments ¶
func (v *OrganizationRef) GetEnvironments() []*DeploymentTargetRef
GetEnvironments returns OrganizationRef.Environments, and is useful for accessing the field via an interface.
func (*OrganizationRef) GetId ¶
func (v *OrganizationRef) GetId() string
GetId returns OrganizationRef.Id, and is useful for accessing the field via an interface.
func (*OrganizationRef) GetName ¶
func (v *OrganizationRef) GetName() string
GetName returns OrganizationRef.Name, and is useful for accessing the field via an interface.
func (*OrganizationRef) GetRoles ¶
func (v *OrganizationRef) GetRoles() []*RoleRef
GetRoles returns OrganizationRef.Roles, and is useful for accessing the field via an interface.
func (*OrganizationRef) GetTeams ¶
func (v *OrganizationRef) GetTeams() []*TeamRef
GetTeams returns OrganizationRef.Teams, and is useful for accessing the field via an interface.
type QueryDeploymentTargetByIdQueryDeploymentTarget ¶
type QueryDeploymentTargetByIdQueryDeploymentTarget struct { // id is randomly assigned Id string `json:"id"` Name string `json:"name"` IsFirewall bool `json:"isFirewall"` Organization *QueryDeploymentTargetByIdQueryDeploymentTargetOrganization `json:"organization"` }
QueryDeploymentTargetByIdQueryDeploymentTarget includes the requested fields of the GraphQL type DeploymentTarget. The GraphQL type's documentation follows.
DeploymentTarget describes a single place that things can be deployed into, such as an AWS account or a Kubernetes cluster.
func (*QueryDeploymentTargetByIdQueryDeploymentTarget) GetId ¶
func (v *QueryDeploymentTargetByIdQueryDeploymentTarget) GetId() string
GetId returns QueryDeploymentTargetByIdQueryDeploymentTarget.Id, and is useful for accessing the field via an interface.
func (*QueryDeploymentTargetByIdQueryDeploymentTarget) GetIsFirewall ¶
func (v *QueryDeploymentTargetByIdQueryDeploymentTarget) GetIsFirewall() bool
GetIsFirewall returns QueryDeploymentTargetByIdQueryDeploymentTarget.IsFirewall, and is useful for accessing the field via an interface.
func (*QueryDeploymentTargetByIdQueryDeploymentTarget) GetName ¶
func (v *QueryDeploymentTargetByIdQueryDeploymentTarget) GetName() string
GetName returns QueryDeploymentTargetByIdQueryDeploymentTarget.Name, and is useful for accessing the field via an interface.
func (*QueryDeploymentTargetByIdQueryDeploymentTarget) GetOrganization ¶
func (v *QueryDeploymentTargetByIdQueryDeploymentTarget) GetOrganization() *QueryDeploymentTargetByIdQueryDeploymentTargetOrganization
GetOrganization returns QueryDeploymentTargetByIdQueryDeploymentTarget.Organization, and is useful for accessing the field via an interface.
type QueryDeploymentTargetByIdQueryDeploymentTargetOrganization ¶
type QueryDeploymentTargetByIdQueryDeploymentTargetOrganization struct { // id is randomly assigned Id string `json:"id"` Name string `json:"name"` }
QueryDeploymentTargetByIdQueryDeploymentTargetOrganization includes the requested fields of the GraphQL type Organization.
func (*QueryDeploymentTargetByIdQueryDeploymentTargetOrganization) GetId ¶
func (v *QueryDeploymentTargetByIdQueryDeploymentTargetOrganization) GetId() string
GetId returns QueryDeploymentTargetByIdQueryDeploymentTargetOrganization.Id, and is useful for accessing the field via an interface.
func (*QueryDeploymentTargetByIdQueryDeploymentTargetOrganization) GetName ¶
func (v *QueryDeploymentTargetByIdQueryDeploymentTargetOrganization) GetName() string
GetName returns QueryDeploymentTargetByIdQueryDeploymentTargetOrganization.Name, and is useful for accessing the field via an interface.
type QueryDeploymentTargetByIdResponse ¶
type QueryDeploymentTargetByIdResponse struct {
QueryDeploymentTarget []*QueryDeploymentTargetByIdQueryDeploymentTarget `json:"queryDeploymentTarget"`
}
QueryDeploymentTargetByIdResponse is returned by QueryDeploymentTargetById on success.
func (*QueryDeploymentTargetByIdResponse) GetQueryDeploymentTarget ¶
func (v *QueryDeploymentTargetByIdResponse) GetQueryDeploymentTarget() []*QueryDeploymentTargetByIdQueryDeploymentTarget
GetQueryDeploymentTarget returns QueryDeploymentTargetByIdResponse.QueryDeploymentTarget, and is useful for accessing the field via an interface.
type QueryOrganizationByNameQueryOrganization ¶
type QueryOrganizationByNameQueryOrganization struct { // id is randomly assigned Id string `json:"id"` Name string `json:"name"` }
QueryOrganizationByNameQueryOrganization includes the requested fields of the GraphQL type Organization.
func (*QueryOrganizationByNameQueryOrganization) GetId ¶
func (v *QueryOrganizationByNameQueryOrganization) GetId() string
GetId returns QueryOrganizationByNameQueryOrganization.Id, and is useful for accessing the field via an interface.
func (*QueryOrganizationByNameQueryOrganization) GetName ¶
func (v *QueryOrganizationByNameQueryOrganization) GetName() string
GetName returns QueryOrganizationByNameQueryOrganization.Name, and is useful for accessing the field via an interface.
type QueryOrganizationByNameResponse ¶
type QueryOrganizationByNameResponse struct {
QueryOrganization []*QueryOrganizationByNameQueryOrganization `json:"queryOrganization"`
}
QueryOrganizationByNameResponse is returned by QueryOrganizationByName on success.
func QueryOrganizationByName ¶
func (*QueryOrganizationByNameResponse) GetQueryOrganization ¶
func (v *QueryOrganizationByNameResponse) GetQueryOrganization() []*QueryOrganizationByNameQueryOrganization
GetQueryOrganization returns QueryOrganizationByNameResponse.QueryOrganization, and is useful for accessing the field via an interface.
type RiskStatus ¶
type RiskStatus string
const ( RiskStatusLowrisk RiskStatus = "lowrisk" RiskStatusMediumrisk RiskStatus = "mediumrisk" RiskStatusHighrisk RiskStatus = "highrisk" RiskStatusApocalypserisk RiskStatus = "apocalypserisk" RiskStatusInprogress RiskStatus = "inprogress" )
type RolePermission ¶
type RolePermission string
const ( RolePermissionAdmin RolePermission = "admin" RolePermissionWrite RolePermission = "write" RolePermissionRead RolePermission = "read" )
type RoleRef ¶
type RoleRef struct { // id is randomly assigned Id string `json:"id"` // group should be a URI format that includes a scope or realm Group string `json:"group"` Permission RolePermission `json:"permission"` }
func (*RoleRef) GetGroup ¶
GetGroup returns RoleRef.Group, and is useful for accessing the field via an interface.
func (*RoleRef) GetId ¶
GetId returns RoleRef.Id, and is useful for accessing the field via an interface.
func (*RoleRef) GetPermission ¶
func (v *RoleRef) GetPermission() RolePermission
GetPermission returns RoleRef.Permission, and is useful for accessing the field via an interface.
type SetImageScanStateResponse ¶
type SetImageScanStateResponse struct {
UpdateImageScanState *SetImageScanStateUpdateImageScanStateUpdateImageScanStatePayload `json:"updateImageScanState"`
}
SetImageScanStateResponse is returned by SetImageScanState on success.
func SetImageScanState ¶
func SetImageScanState( ctx context.Context, client graphql.Client, scanStateId string, status ImageScanStateStatus, now *time.Time, ) (*SetImageScanStateResponse, error)
func (*SetImageScanStateResponse) GetUpdateImageScanState ¶
func (v *SetImageScanStateResponse) GetUpdateImageScanState() *SetImageScanStateUpdateImageScanStateUpdateImageScanStatePayload
GetUpdateImageScanState returns SetImageScanStateResponse.UpdateImageScanState, and is useful for accessing the field via an interface.
type SetImageScanStateUpdateImageScanStateUpdateImageScanStatePayload ¶
type SetImageScanStateUpdateImageScanStateUpdateImageScanStatePayload struct {
NumUids int `json:"numUids"`
}
SetImageScanStateUpdateImageScanStateUpdateImageScanStatePayload includes the requested fields of the GraphQL type UpdateImageScanStatePayload.
func (*SetImageScanStateUpdateImageScanStateUpdateImageScanStatePayload) GetNumUids ¶
func (v *SetImageScanStateUpdateImageScanStateUpdateImageScanStatePayload) GetNumUids() int
GetNumUids returns SetImageScanStateUpdateImageScanStateUpdateImageScanStatePayload.NumUids, and is useful for accessing the field via an interface.
type TeamRef ¶
type TeamRef struct { // id is randomly assigned Id string `json:"id"` Name string `json:"name"` Roles []*RoleRef `json:"roles,omitempty"` Organization *OrganizationRef `json:"organization,omitempty"` Applications []*ApplicationRef `json:"applications,omitempty"` Labels []*KeyValueRef `json:"labels,omitempty"` }
func (*TeamRef) GetApplications ¶
func (v *TeamRef) GetApplications() []*ApplicationRef
GetApplications returns TeamRef.Applications, and is useful for accessing the field via an interface.
func (*TeamRef) GetId ¶
GetId returns TeamRef.Id, and is useful for accessing the field via an interface.
func (*TeamRef) GetLabels ¶
func (v *TeamRef) GetLabels() []*KeyValueRef
GetLabels returns TeamRef.Labels, and is useful for accessing the field via an interface.
func (*TeamRef) GetName ¶
GetName returns TeamRef.Name, and is useful for accessing the field via an interface.
func (*TeamRef) GetOrganization ¶
func (v *TeamRef) GetOrganization() *OrganizationRef
GetOrganization returns TeamRef.Organization, and is useful for accessing the field via an interface.
type ToolInfoRef ¶
type ToolInfoRef struct { // id is randomly assigned Id string `json:"id"` Name string `json:"name"` Vendor string `json:"vendor"` Version string `json:"version"` }
func (*ToolInfoRef) GetId ¶
func (v *ToolInfoRef) GetId() string
GetId returns ToolInfoRef.Id, and is useful for accessing the field via an interface.
func (*ToolInfoRef) GetName ¶
func (v *ToolInfoRef) GetName() string
GetName returns ToolInfoRef.Name, and is useful for accessing the field via an interface.
func (*ToolInfoRef) GetVendor ¶
func (v *ToolInfoRef) GetVendor() string
GetVendor returns ToolInfoRef.Vendor, and is useful for accessing the field via an interface.
func (*ToolInfoRef) GetVersion ¶
func (v *ToolInfoRef) GetVersion() string
GetVersion returns ToolInfoRef.Version, and is useful for accessing the field via an interface.
type ValidateRequestQueryGetImageScanState ¶
type ValidateRequestQueryGetImageScanState struct { // status of the scan Status ImageScanStateStatus `json:"status"` // image points to the specific image we are scanning Image *ValidateRequestQueryGetImageScanStateImage `json:"image"` }
ValidateRequestQueryGetImageScanState includes the requested fields of the GraphQL type ImageScanState. The GraphQL type's documentation follows.
ImageScanState holds the status of a scan request, which indicates that a scan is in progress, completed, or failed.
func (*ValidateRequestQueryGetImageScanState) GetImage ¶
func (v *ValidateRequestQueryGetImageScanState) GetImage() *ValidateRequestQueryGetImageScanStateImage
GetImage returns ValidateRequestQueryGetImageScanState.Image, and is useful for accessing the field via an interface.
func (*ValidateRequestQueryGetImageScanState) GetStatus ¶
func (v *ValidateRequestQueryGetImageScanState) GetStatus() ImageScanStateStatus
GetStatus returns ValidateRequestQueryGetImageScanState.Status, and is useful for accessing the field via an interface.
type ValidateRequestQueryGetImageScanStateImage ¶
type ValidateRequestQueryGetImageScanStateImage struct { // id is a hash of the image's digest and ownership. Id string `json:"id"` // Indexes where this image is included ImageIndexes []*ValidateRequestQueryGetImageScanStateImageImageIndexesImageIndex `json:"imageIndexes"` }
ValidateRequestQueryGetImageScanStateImage includes the requested fields of the GraphQL type Image. The GraphQL type's documentation follows.
Image holds a specific deployable image, with a platform. This is the underlying object that is scanned by security scanners. It may also be what is deployed, but generally these are found indrectly through the ImageIndex, with a platform filter.
func (*ValidateRequestQueryGetImageScanStateImage) GetId ¶
func (v *ValidateRequestQueryGetImageScanStateImage) GetId() string
GetId returns ValidateRequestQueryGetImageScanStateImage.Id, and is useful for accessing the field via an interface.
func (*ValidateRequestQueryGetImageScanStateImage) GetImageIndexes ¶
func (v *ValidateRequestQueryGetImageScanStateImage) GetImageIndexes() []*ValidateRequestQueryGetImageScanStateImageImageIndexesImageIndex
GetImageIndexes returns ValidateRequestQueryGetImageScanStateImage.ImageIndexes, and is useful for accessing the field via an interface.
type ValidateRequestQueryGetImageScanStateImageImageIndexesImageIndex ¶
type ValidateRequestQueryGetImageScanStateImageImageIndexesImageIndex struct { // A pointer to the images this index is known by ImageNames []*ValidateRequestQueryGetImageScanStateImageImageIndexesImageIndexImageNamesImageName `json:"imageNames"` }
ValidateRequestQueryGetImageScanStateImageImageIndexesImageIndex includes the requested fields of the GraphQL type ImageIndex. The GraphQL type's documentation follows.
ImageIndex holds the association between an ImageName and a specific list of images, each of which will have a platform (hopefully) and a unique digest.
ImageIndex also has a list of deployments, which indicate where this image is currently in use.
func (*ValidateRequestQueryGetImageScanStateImageImageIndexesImageIndex) GetImageNames ¶
func (v *ValidateRequestQueryGetImageScanStateImageImageIndexesImageIndex) GetImageNames() []*ValidateRequestQueryGetImageScanStateImageImageIndexesImageIndexImageNamesImageName
GetImageNames returns ValidateRequestQueryGetImageScanStateImageImageIndexesImageIndex.ImageNames, and is useful for accessing the field via an interface.
type ValidateRequestQueryGetImageScanStateImageImageIndexesImageIndexImageNamesImageName ¶
type ValidateRequestQueryGetImageScanStateImageImageIndexesImageIndexImageNamesImageName struct { // Name is the base name of the image, such as 'docker.io/library/fooimage' Name string `json:"name"` }
ValidateRequestQueryGetImageScanStateImageImageIndexesImageIndexImageNamesImageName includes the requested fields of the GraphQL type ImageName.
func (*ValidateRequestQueryGetImageScanStateImageImageIndexesImageIndexImageNamesImageName) GetName ¶
func (v *ValidateRequestQueryGetImageScanStateImageImageIndexesImageIndexImageNamesImageName) GetName() string
GetName returns ValidateRequestQueryGetImageScanStateImageImageIndexesImageIndexImageNamesImageName.Name, and is useful for accessing the field via an interface.
type ValidateRequestQueryResponse ¶
type ValidateRequestQueryResponse struct {
GetImageScanState *ValidateRequestQueryGetImageScanState `json:"getImageScanState"`
}
ValidateRequestQueryResponse is returned by ValidateRequestQuery on success.
func ValidateRequestQuery ¶
func (*ValidateRequestQueryResponse) GetGetImageScanState ¶
func (v *ValidateRequestQueryResponse) GetGetImageScanState() *ValidateRequestQueryGetImageScanState
GetGetImageScanState returns ValidateRequestQueryResponse.GetImageScanState, and is useful for accessing the field via an interface.
type VulnerabilityRef ¶
type VulnerabilityRef struct { // id is randomly assigned Id string `json:"id"` // namespace where the vulnerability comes from Namespace string `json:"namespace"` // id within that namespace NamespaceId string `json:"namespaceId"` // NVD CVE reference Nvdid string `json:"nvdid"` Ratings []VulnerabilitySeverity `json:"ratings"` Cwes []*CWERef `json:"cwes,omitempty"` Description string `json:"description"` Detail string `json:"detail"` Recommendation string `json:"recommendation"` AdvisoryURLs []string `json:"advisoryURLs"` Components []*ImageComponentRef `json:"components,omitempty"` }
func (*VulnerabilityRef) GetAdvisoryURLs ¶
func (v *VulnerabilityRef) GetAdvisoryURLs() []string
GetAdvisoryURLs returns VulnerabilityRef.AdvisoryURLs, and is useful for accessing the field via an interface.
func (*VulnerabilityRef) GetComponents ¶
func (v *VulnerabilityRef) GetComponents() []*ImageComponentRef
GetComponents returns VulnerabilityRef.Components, and is useful for accessing the field via an interface.
func (*VulnerabilityRef) GetCwes ¶
func (v *VulnerabilityRef) GetCwes() []*CWERef
GetCwes returns VulnerabilityRef.Cwes, and is useful for accessing the field via an interface.
func (*VulnerabilityRef) GetDescription ¶
func (v *VulnerabilityRef) GetDescription() string
GetDescription returns VulnerabilityRef.Description, and is useful for accessing the field via an interface.
func (*VulnerabilityRef) GetDetail ¶
func (v *VulnerabilityRef) GetDetail() string
GetDetail returns VulnerabilityRef.Detail, and is useful for accessing the field via an interface.
func (*VulnerabilityRef) GetId ¶
func (v *VulnerabilityRef) GetId() string
GetId returns VulnerabilityRef.Id, and is useful for accessing the field via an interface.
func (*VulnerabilityRef) GetNamespace ¶
func (v *VulnerabilityRef) GetNamespace() string
GetNamespace returns VulnerabilityRef.Namespace, and is useful for accessing the field via an interface.
func (*VulnerabilityRef) GetNamespaceId ¶
func (v *VulnerabilityRef) GetNamespaceId() string
GetNamespaceId returns VulnerabilityRef.NamespaceId, and is useful for accessing the field via an interface.
func (*VulnerabilityRef) GetNvdid ¶
func (v *VulnerabilityRef) GetNvdid() string
GetNvdid returns VulnerabilityRef.Nvdid, and is useful for accessing the field via an interface.
func (*VulnerabilityRef) GetRatings ¶
func (v *VulnerabilityRef) GetRatings() []VulnerabilitySeverity
GetRatings returns VulnerabilityRef.Ratings, and is useful for accessing the field via an interface.
func (*VulnerabilityRef) GetRecommendation ¶
func (v *VulnerabilityRef) GetRecommendation() string
GetRecommendation returns VulnerabilityRef.Recommendation, and is useful for accessing the field via an interface.
type VulnerabilitySeverity ¶
type VulnerabilitySeverity string
const ( VulnerabilitySeverityCritical VulnerabilitySeverity = "critical" VulnerabilitySeverityHigh VulnerabilitySeverity = "high" VulnerabilitySeverityMedium VulnerabilitySeverity = "medium" VulnerabilitySeverityLow VulnerabilitySeverity = "low" VulnerabilitySeverityInfo VulnerabilitySeverity = "info" VulnerabilitySeverityNone VulnerabilitySeverity = "none" VulnerabilitySeverityUnknown VulnerabilitySeverity = "unknown" )