Debian Codegraph @

ent/schema/payloaddigest.go

raw symbols SCIP
1 // Copyright 2022 The Archivista Contributors
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 package schemascip-go gomod github.com/in-toto/archivista . `github.com/in-toto/archivista/ent/schema`/
16
17 import (
18 "entgo.io/entscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent`/"
19 "entgo.io/ent/schema/edgescip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent/schema/edge`/"
20 "entgo.io/ent/schema/fieldscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent/schema/field`/"
21 "entgo.io/ent/schema/indexscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent/schema/index`/"
22 "github.com/google/uuidscip-go gomod github.com/google/uuid v1.6.0 `github.com/google/uuid`/"
23 )
24
25 // PayloadDigest represents the digest of the payload of a DSSE envelope
26 type PayloadDigestscip-go gomod github.com/in-toto/archivista . `github.com/in-toto/archivista/ent/schema`/PayloadDigest# struct {
27 entscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent`/.Schemascip-go gomod github.com/in-toto/archivista . `github.com/in-toto/archivista/ent/schema`/PayloadDigest#Schema.
28 }
29
30 // Fields of the Digest.
31 func (PayloadDigestscip-go gomod github.com/in-toto/archivista . `github.com/in-toto/archivista/ent/schema`/PayloadDigest#) Fieldsscip-go gomod github.com/in-toto/archivista . `github.com/in-toto/archivista/ent/schema`/PayloadDigest#Fields().() []entscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent`/.Fieldscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent`/Field# {
32 return []entscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent`/.Fieldscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent`/Field#{
33 fieldscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent/schema/field`/.UUIDscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent/schema/field`/UUID().("id", uuidscip-go gomod github.com/google/uuid v1.6.0 `github.com/google/uuid`/.UUIDscip-go gomod github.com/google/uuid v1.6.0 `github.com/google/uuid`/UUID#{}).Defaultscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent/schema/field`/uuidBuilder#Default().(uuidscip-go gomod github.com/google/uuid v1.6.0 `github.com/google/uuid`/.Newscip-go gomod github.com/google/uuid v1.6.0 `github.com/google/uuid`/New().).Immutablescip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent/schema/field`/uuidBuilder#Immutable().().Uniquescip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent/schema/field`/uuidBuilder#Unique().(),
34 fieldscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent/schema/field`/.Stringscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent/schema/field`/String().("algorithm").NotEmptyscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent/schema/field`/stringBuilder#NotEmpty().(),
35 fieldscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent/schema/field`/.Stringscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent/schema/field`/String().("value").NotEmptyscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent/schema/field`/stringBuilder#NotEmpty().(),
36 }
37 }
38
39 // Edges of the Digest.
40 func (PayloadDigestscip-go gomod github.com/in-toto/archivista . `github.com/in-toto/archivista/ent/schema`/PayloadDigest#) Edgesscip-go gomod github.com/in-toto/archivista . `github.com/in-toto/archivista/ent/schema`/PayloadDigest#Edges().() []entscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent`/.Edgescip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent`/Edge# {
41 return []entscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent`/.Edgescip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent`/Edge#{
42 edgescip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent/schema/edge`/.Fromscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent/schema/edge`/From().("dsse", Dssescip-go gomod github.com/in-toto/archivista . `github.com/in-toto/archivista/ent/schema`/Dsse#.Typescip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent`/Interface#Type().).
43 Refscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent/schema/edge`/inverseBuilder#Ref().("payload_digests").
44 Uniquescip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent/schema/edge`/inverseBuilder#Unique().(),
45 }
46 }
47
48 func (PayloadDigestscip-go gomod github.com/in-toto/archivista . `github.com/in-toto/archivista/ent/schema`/PayloadDigest#) Indexesscip-go gomod github.com/in-toto/archivista . `github.com/in-toto/archivista/ent/schema`/PayloadDigest#Indexes().() []entscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent`/.Indexscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent`/Index# {
49 return []entscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent`/.Indexscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent`/Index#{
50 indexscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent/schema/index`/.Fieldsscip-go gomod entgo.io/ent v0.14.5 `entgo.io/ent/schema/index`/Fields().("value"),
51 }
52 }