Class: Homebrew::Attestation::Verifier::Policy Private

Inherits:
T::Struct
  • Object
show all
Defined in:
attestation/verifier.rb

Overview

This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.

The numeric IDs survive a rename, so another repository cannot take over a trusted name.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(repository:, repository_id:, owner_id:, workflows:, refs:) ⇒ void

Parameters:

  • repository (String)
  • repository_id (String)
  • owner_id (String)
  • workflows (Array<String>)
  • refs (Hash{String => Time, nil}) —

    Each trusted ref and, if it is no longer signed from, the last time a signature from it is valid.



# File ''

const :repository, String
const :repository_id, String
const :owner_id, String
const :workflows, T::Array[String]
const :refs, T::Hash[String, T.nilable(Time)]

Instance Attribute Details

#owner_id ⇒ String (readonly)

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns the value of prop owner_id.

Returns:



# File ''

const :owner_id, String

#refs ⇒ Hash{String => Time, nil} (readonly)

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Each trusted ref and, if it is no longer signed from, the last time a signature from it is valid.

Returns:



# File ''

const :refs, T::Hash[String, T.nilable(Time)]

#repository ⇒ String (readonly)

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns the value of prop repository.

Returns:



# File ''

const :repository, String

#repository_id ⇒ String (readonly)

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns the value of prop repository_id.

Returns:



# File ''

const :repository_id, String

#workflows ⇒ Array<String> (readonly)

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns the value of prop workflows.

Returns:



# File ''

const :workflows, T::Array[String]