MCPcopy
hub / github.com/perkeep/perkeep / IsClaimType

Method IsClaimType

pkg/schema/blob.go:530–536  ·  view source on GitHub ↗

IsClaimType returns whether this blob builder is for a type which should be signed. (a "claim" or "permanode")

()

Source from the content-addressed store, hash-verified

528// IsClaimType returns whether this blob builder is for a type
529// which should be signed. (a "claim" or "permanode")
530func (bb *Builder) IsClaimType() bool {
531 switch bb.Type() {
532 case TypeClaim, TypePermanode:
533 return true
534 }
535 return false
536}
537
538// SetClaimDate sets the "claimDate" on a claim.
539// It is a fatal error to call SetClaimDate if the Map isn't of Type "claim".

Callers 1

SetClaimDateMethod · 0.95

Calls 1

TypeMethod · 0.95

Tested by

no test coverage detected