View Source GoogleApi.ContainerAnalysis.V1beta1.Model.Source (google_api_container_analysis v0.28.0)

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

Attributes

  • additionalContexts (type: list(GoogleApi.ContainerAnalysis.V1beta1.Model.SourceContext.t), default: nil) - 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.
  • artifactStorageSourceUri (type: String.t, default: nil) - If provided, the input binary artifacts for the build came from this location.
  • context (type: GoogleApi.ContainerAnalysis.V1beta1.Model.SourceContext.t, default: nil) - If provided, the source code used for the build came from this location.
  • fileHashes (type: %{optional(String.t) => GoogleApi.ContainerAnalysis.V1beta1.Model.FileHashes.t}, default: nil) - 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.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ContainerAnalysis.V1beta1.Model.Source{
  additionalContexts:
    [GoogleApi.ContainerAnalysis.V1beta1.Model.SourceContext.t()] | nil,
  artifactStorageSourceUri: String.t() | nil,
  context: GoogleApi.ContainerAnalysis.V1beta1.Model.SourceContext.t() | nil,
  fileHashes:
    %{
      optional(String.t()) =>
        GoogleApi.ContainerAnalysis.V1beta1.Model.FileHashes.t()
    }
    | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.