Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ErrInvalidGroupIdFormat indicates an invalid GroupId format ErrInvalidGroupIdFormat common.ErrMsg = "Invalid GroupId format" // ErrInvalidGroupIdSuffix indicates an invalid GroupId suffix ErrInvalidGroupIdSuffix common.ErrMsg = "Invalid GroupId suffix" )
Parsing errors
View Source
const ( // ErrMissingGroupId indicates a missing GroupId ErrMissingGroupId common.ErrMsg = "Missing GroupId" // ErrInvalidVersion indicates a missing version ErrInvalidVersion common.ErrMsg = "Invalid version" // ErrMissingOwner indicates a missing Owner ErrMissingOwner common.ErrMsg = "Missing Owner" // ErrOwnerMismatch indicates a mismatch between Owner and GroupId.OwnerAS ErrOwnerMismatch common.ErrMsg = "Owner mismatch" // ErrEmptyWriters indicates an empty Writer section ErrEmptyWriters common.ErrMsg = "Writer section cannot be empty" // ErrEmptyRegistries indicates an empty Registires section ErrEmptyRegistries common.ErrMsg = "Registry section cannot be empty" )
Validation errors
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Group struct { Id GroupId `json:"GroupID"` Version uint Owner addr.IA Writers []addr.IA Readers []addr.IA Registries []addr.IA }
func GroupFromMsg ¶
GroupFromMsg returns a HPCfg from the Cerializable representation
func (*Group) HasRegistry ¶
HasRegistry returns true if ia is a Registry of h
func (*Group) UnmarshalJSON ¶
type GroupId ¶
func (GroupId) MarshalJSON ¶
func (GroupId) MarshalText ¶
func (*GroupId) UnmarshalJSON ¶
func (*GroupId) UnmarshalText ¶
type GroupIdSet ¶
type GroupIdSet map[GroupId]struct{}
GroupIdSet is a set of hidden path GroupIds
func GroupIdsToSet ¶
func GroupIdsToSet(ids ...GroupId) GroupIdSet
GroupIdsToSet converts a list of GroupIds to a GroupIdSet, ensuring no duplcates.
Click to show internal directories.
Click to hide internal directories.