Documentation ¶
Index ¶
- type EqualState
- func (s EqualState) Apply(states ...EqualState) EqualState
- func (s EqualState) IsArtifactDetectable() bool
- func (s EqualState) IsArtifactEqual() bool
- func (s EqualState) IsEquivalent() bool
- func (s EqualState) IsHashEqual() bool
- func (s EqualState) IsLocalHashEqual() bool
- func (s EqualState) NotEquivalent() EqualState
- func (s EqualState) NotLocalHashEqual(b ...bool) EqualState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EqualState ¶
type EqualState struct {
// contains filtered or unexported fields
}
EqualState describes the equivalence state of elements of a component version. For a complete component version the equivalence state describes the local component version content, not the state of the complete graph spanned by component references.
func StateEquivalent ¶
func StateEquivalent() EqualState
func StateLocalHashEqual ¶
func StateLocalHashEqual(ok bool) EqualState
func StateNotArtifactEqual ¶
func StateNotArtifactEqual(detect bool) EqualState
func StateNotDetectable ¶
func StateNotDetectable() EqualState
func StateNotEquivalent ¶
func StateNotEquivalent() EqualState
func StateNotLocalHashEqual ¶
func StateNotLocalHashEqual() EqualState
func (EqualState) Apply ¶
func (s EqualState) Apply(states ...EqualState) EqualState
func (EqualState) IsArtifactDetectable ¶
func (s EqualState) IsArtifactDetectable() bool
IsArtifactEqual returns true if the signature relevant artifact digests are all known on both sides.
func (EqualState) IsArtifactEqual ¶
func (s EqualState) IsArtifactEqual() bool
IsArtifactEqual returns true if the signature relevant parts artifact digests are identical.
func (EqualState) IsEquivalent ¶
func (s EqualState) IsEquivalent() bool
IsEquivalent returns true if everything besides the access methods is identical, including the artifact digests.
func (EqualState) IsHashEqual ¶
func (s EqualState) IsHashEqual() bool
IsHashEqual returns true if the signature relevant parts are identical, including the artifact digests.
func (EqualState) IsLocalHashEqual ¶
func (s EqualState) IsLocalHashEqual() bool
IsLocalHashEqual returns true if the signature relevant parts excluding the artifact digests are identical.
func (EqualState) NotEquivalent ¶
func (s EqualState) NotEquivalent() EqualState
func (EqualState) NotLocalHashEqual ¶
func (s EqualState) NotLocalHashEqual(b ...bool) EqualState