Grafeas v1 API - Class Source (3.5.0)

public sealed class Source : IMessage<Source>, IEquatable<Source>, IDeepCloneable<Source>, IBufferMessage, IMessage

Reference documentation and code samples for the Grafeas v1 API class Source.

Source describes the location of the source used for the build.

Inheritance

object > Source

Namespace

Grafeas.V1

Assembly

Grafeas.V1.dll

Constructors

Source()

public Source()

Source(Source)

public Source(Source other)
Parameter
NameDescription
otherSource

Properties

AdditionalContexts

public RepeatedField<SourceContext> AdditionalContexts { get; }

If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will not include the context specified in the context field.

Property Value
TypeDescription
RepeatedFieldSourceContext

ArtifactStorageSourceUri

public string ArtifactStorageSourceUri { get; set; }

If provided, the input binary artifacts for the build came from this location.

Property Value
TypeDescription
string

Context

public SourceContext Context { get; set; }

If provided, the source code used for the build came from this location.

Property Value
TypeDescription
SourceContext

FileHashes

public MapField<string, FileHashes> FileHashes { get; }

Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build.

The keys to this map are file paths used as build source and the values contain the hash values for those files.

If the build source came in a single package such as a gzipped tarfile (.tar.gz), the FileHash will be for the single path to that file.

Property Value
TypeDescription
MapFieldstringFileHashes