Skip to content

Commit

Permalink
update client GQL fragments to public usable by go (guacsec#1085)
Browse files Browse the repository at this point in the history
* update client GQL fragments to public usable by go

Signed-off-by: Brandon Lum <lumjjb@gmail.com>

* rebase magic

Signed-off-by: Brandon Lum <lumjjb@gmail.com>

* update codegen

Signed-off-by: Brandon Lum <lumjjb@gmail.com>

---------

Signed-off-by: Brandon Lum <lumjjb@gmail.com>
  • Loading branch information
lumjjb committed Jul 21, 2023
1 parent 8f639ae commit e49ce9e
Show file tree
Hide file tree
Showing 14 changed files with 14,662 additions and 14,662 deletions.
29,158 changes: 14,579 additions & 14,579 deletions pkg/assembler/clients/generated/operations.go

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions pkg/assembler/clients/operations/certifyGood.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@

mutation CertifyGoodPkg($pkg: PkgInputSpec!, $pkgMatchType: MatchFlags, $certifyGood: CertifyGoodInputSpec!) {
ingestCertifyGood(subject: {package: $pkg}, pkgMatchType: $pkgMatchType, certifyGood: $certifyGood) {
...allCertifyGood
...AllCertifyGood
}
}

mutation CertifyGoodSrc($source: SourceInputSpec!, $certifyGood: CertifyGoodInputSpec!) {
ingestCertifyGood(subject: {source: $source}, certifyGood: $certifyGood) {
...allCertifyGood
...AllCertifyGood
}
}

mutation CertifyGoodArtifact($artifact: ArtifactInputSpec!, $certifyGood: CertifyGoodInputSpec!) {
ingestCertifyGood(subject: {artifact: $artifact}, certifyGood: $certifyGood) {
...allCertifyGood
...AllCertifyGood
}
}
12 changes: 6 additions & 6 deletions pkg/assembler/clients/operations/certifyVEXStatement.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -19,36 +19,36 @@

mutation VexPackageAndCve($pkg: PkgInputSpec!, $cve: CVEInputSpec!, $vexStatement: VexStatementInputSpec!) {
ingestVEXStatement(subject: {package: $pkg}, vulnerability: {cve: $cve}, vexStatement: $vexStatement) {
...allCertifyVEXStatement
...AllCertifyVEXStatement
}
}

mutation VEXPackageAndGhsa($pkg: PkgInputSpec!, $ghsa: GHSAInputSpec!, $vexStatement: VexStatementInputSpec!) {
ingestVEXStatement(subject: {package: $pkg}, vulnerability: {ghsa: $ghsa}, vexStatement: $vexStatement) {
...allCertifyVEXStatement
...AllCertifyVEXStatement
}
}

mutation VexPackageAndOsv($pkg: PkgInputSpec!, $osv: OSVInputSpec!, $vexStatement: VexStatementInputSpec!) {
ingestVEXStatement(subject: {package: $pkg}, vulnerability: {osv: $osv}, vexStatement: $vexStatement) {
...allCertifyVEXStatement
...AllCertifyVEXStatement
}
}

mutation VexArtifactAndCve($artifact: ArtifactInputSpec!, $cve: CVEInputSpec!, $vexStatement: VexStatementInputSpec!) {
ingestVEXStatement(subject: {artifact: $artifact}, vulnerability: {cve: $cve}, vexStatement: $vexStatement) {
...allCertifyVEXStatement
...AllCertifyVEXStatement
}
}

mutation VexArtifactAndGhsa($artifact: ArtifactInputSpec!, $ghsa: GHSAInputSpec!, $vexStatement: VexStatementInputSpec!) {
ingestVEXStatement(subject: {artifact: $artifact}, vulnerability: {ghsa: $ghsa}, vexStatement: $vexStatement) {
...allCertifyVEXStatement
...AllCertifyVEXStatement
}
}

mutation VexArtifactAndOsv($artifact: ArtifactInputSpec!, $osv: OSVInputSpec!, $vexStatement: VexStatementInputSpec!) {
ingestVEXStatement(subject: {artifact: $artifact}, vulnerability: {osv: $osv}, vexStatement: $vexStatement) {
...allCertifyVEXStatement
...AllCertifyVEXStatement
}
}
6 changes: 3 additions & 3 deletions pkg/assembler/clients/operations/contact.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@

mutation PointOfContactPkg($pkg: PkgInputSpec!, $pkgMatchType: MatchFlags, $pointOfContact: PointOfContactInputSpec!) {
ingestPointOfContact(subject: {package: $pkg}, pkgMatchType: $pkgMatchType, pointOfContact: $pointOfContact) {
...allPointOfContact
...AllPointOfContact
}
}

mutation PointOfContactSrc($source: SourceInputSpec!, $pointOfContact: PointOfContactInputSpec!) {
ingestPointOfContact(subject: {source: $source}, pointOfContact: $pointOfContact) {
...allPointOfContact
...AllPointOfContact
}
}

mutation PointOfContactArtifact($artifact: ArtifactInputSpec!, $pointOfContact: PointOfContactInputSpec!) {
ingestPointOfContact(subject: {artifact: $artifact}, pointOfContact: $pointOfContact) {
...allPointOfContact
...AllPointOfContact
}
}
4 changes: 2 additions & 2 deletions pkg/assembler/clients/operations/hasSBOM.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@

mutation HasSBOMPkg($pkg: PkgInputSpec!, $hasSBOM: HasSBOMInputSpec!) {
ingestHasSBOM(subject: {package: $pkg}, hasSBOM: $hasSBOM) {
...allHasSBOMTree
...AllHasSBOMTree
}
}

mutation HasSBOMArtifact($artifact: ArtifactInputSpec!, $hasSBOM: HasSBOMInputSpec!) {
ingestHasSBOM(subject: {artifact: $artifact}, hasSBOM: $hasSBOM) {
...allHasSBOMTree
...AllHasSBOMTree
}
}
4 changes: 2 additions & 2 deletions pkg/assembler/clients/operations/hasSLSA.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@

mutation SLSAForArtifact($artifact: ArtifactInputSpec!, $materials: [ArtifactInputSpec!]!, $builder: BuilderInputSpec!, $slsa: SLSAInputSpec!) {
ingestSLSA(subject: $artifact, builtFrom: $materials, builtBy: $builder, slsa: $slsa) {
...allSLSATree
...AllSLSATree
}
}

# Defines the GraphQL operations to bulk ingest SLSA attestations into GUAC

mutation SLSAForArtifacts($artifacts: [ArtifactInputSpec!]!, $materialsList: [[ArtifactInputSpec!]!]!, $builders: [BuilderInputSpec!]!, $slsaList: [SLSAInputSpec!]!) {
ingestSLSAs(subjects: $artifacts, builtFromList: $materialsList, builtByList: $builders, slsaList: $slsaList) {
...allSLSATree
...AllSLSATree
}
}
2 changes: 1 addition & 1 deletion pkg/assembler/clients/operations/hasSourceAt.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@

mutation HasSourceAt($pkg: PkgInputSpec!, $pkgMatchType: MatchFlags!, $source: SourceInputSpec!, $hasSourceAt: HasSourceAtInputSpec!) {
ingestHasSourceAt(pkg: $pkg, pkgMatchType: $pkgMatchType, source: $source, hasSourceAt: $hasSourceAt) {
...allHasSourceAt
...AllHasSourceAt
}
}
2 changes: 1 addition & 1 deletion pkg/assembler/clients/operations/hashEqual.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@

mutation HashEqual($artifact: ArtifactInputSpec!, $otherArtifact: ArtifactInputSpec!, $hashEqual: HashEqualInputSpec!) {
ingestHashEqual(artifact: $artifact, otherArtifact: $otherArtifact, hashEqual: $hashEqual) {
...allHashEqualTree
...AllHashEqualTree
}
}
4 changes: 2 additions & 2 deletions pkg/assembler/clients/operations/isDependency.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@

mutation IsDependency($pkg: PkgInputSpec!, $depPkg: PkgInputSpec!, $dependency: IsDependencyInputSpec!) {
ingestDependency(pkg: $pkg, depPkg: $depPkg, dependency: $dependency) {
...allIsDependencyTree
...AllIsDependencyTree
}
}

# Defines the GraphQL operations to bulk ingest dependencies information into GUAC

mutation IsDependencies($pkgs: [PkgInputSpec!]!, $depPkgs: [PkgInputSpec!]!, $dependencies: [IsDependencyInputSpec!]!) {
ingestDependencies(pkgs: $pkgs, depPkgs: $depPkgs, dependencies: $dependencies) {
...allIsDependencyTree
...AllIsDependencyTree
}
}
4 changes: 2 additions & 2 deletions pkg/assembler/clients/operations/isVulnerability.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@

mutation IsVulnerabilityCVE($osv: OSVInputSpec!, $cve: CVEInputSpec!, $isVulnerability: IsVulnerabilityInputSpec!) {
ingestIsVulnerability(osv: $osv, vulnerability: {cve: $cve}, isVulnerability: $isVulnerability) {
...allIsVulnerability
...AllIsVulnerability
}
}

mutation IsVulnerabilityGHSA($osv: OSVInputSpec!, $ghsa: GHSAInputSpec!, $isVulnerability: IsVulnerabilityInputSpec!) {
ingestIsVulnerability(osv: $osv, vulnerability: {ghsa: $ghsa}, isVulnerability: $isVulnerability) {
...allIsVulnerability
...AllIsVulnerability
}
}
6 changes: 3 additions & 3 deletions pkg/assembler/clients/operations/metadata.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@

mutation HasMetadataPkg($pkg: PkgInputSpec!, $pkgMatchType: MatchFlags, $hasMetadata: HasMetadataInputSpec!) {
ingestHasMetadata(subject: {package: $pkg}, pkgMatchType: $pkgMatchType, hasMetadata: $hasMetadata) {
...allHasMetadata
...AllHasMetadata
}
}

mutation HasMetadataSrc($source: SourceInputSpec!, $hasMetadata: HasMetadataInputSpec!) {
ingestHasMetadata(subject: {source: $source}, hasMetadata: $hasMetadata) {
...allHasMetadata
...AllHasMetadata
}
}

mutation HasMetadataArtifact($artifact: ArtifactInputSpec!, $hasMetadata: HasMetadataInputSpec!) {
ingestHasMetadata(subject: {artifact: $artifact}, hasMetadata: $hasMetadata) {
...allHasMetadata
...AllHasMetadata
}
}
Loading

0 comments on commit e49ce9e

Please sign in to comment.