Class: Grafeas::V1::AliasContext

Inherits:
Object
  • Object
show all
Defined in:
lib/grafeas/v1/doc/grafeas/v1/provenance.rb

Overview

An alias to a repo revision.

Defined Under Namespace

Modules: Kind

Instance Attribute Summary collapse

Instance Attribute Details

#kindGrafeas::V1::AliasContext::Kind

Returns The alias kind.

Returns:



171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
# File 'lib/grafeas/v1/doc/grafeas/v1/provenance.rb', line 171

class AliasContext
  # The type of an alias.
  module Kind
    # Unknown.
    KIND_UNSPECIFIED = 0

    # Git tag.
    FIXED = 1

    # Git branch.
    MOVABLE = 2

    # Used to specify non-standard aliases. For example, if a Git repo has a
    # ref named "refs/foo/bar".
    OTHER = 4
  end
end

#nameString

Returns The alias name.

Returns:

  • (String)

    The alias name.



171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
# File 'lib/grafeas/v1/doc/grafeas/v1/provenance.rb', line 171

class AliasContext
  # The type of an alias.
  module Kind
    # Unknown.
    KIND_UNSPECIFIED = 0

    # Git tag.
    FIXED = 1

    # Git branch.
    MOVABLE = 2

    # Used to specify non-standard aliases. For example, if a Git repo has a
    # ref named "refs/foo/bar".
    OTHER = 4
  end
end