Documentation ¶
Index ¶
- Constants
- func MakeBid(b BID) (string, error)
- func MustMakeBid(b BID) string
- func ParseEntitlementBid(bidStr string) (*v2.Entitlement, error)
- func ParseGrantBid(bidStr string) (*v2.Grant, error)
- func ParseResourceBid(bidStr string) (*v2.Resource, error)
- type BID
- type BIDError
- type BIDParseError
- type BIDStringError
Constants ¶
View Source
const ( BidPrefix = "bid" ResourceBidPrefix = "r" EntitlementBidPrefix = "e" GrantBidPrefix = "g" )
Variables ¶
This section is empty.
Functions ¶
func MustMakeBid ¶
func ParseEntitlementBid ¶
func ParseEntitlementBid(bidStr string) (*v2.Entitlement, error)
Types ¶
type BID ¶
type BIDParseError ¶
func NewBidParseError ¶
func NewBidParseError(bs *bidScanner, msg string, a ...any) *BIDParseError
func (*BIDParseError) Error ¶
func (e *BIDParseError) Error() string
type BIDStringError ¶
func NewBidStringError ¶
func NewBidStringError(resource BID, msg string, a ...any) *BIDStringError
func (*BIDStringError) Error ¶
func (e *BIDStringError) Error() string
Click to show internal directories.
Click to hide internal directories.