Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Announcement ¶
type Announcement struct { Metadata object.Metadata `nimona:"metadata:m,omitempty"` StreamHash object.Hash `nimona:"streamHash:r,omitempty"` ObjectHashes []object.Hash `nimona:"objectHashes:ar,omitempty"` }
func (*Announcement) FromObject ¶
func (e *Announcement) FromObject(o *object.Object) error
func (Announcement) ToObject ¶
func (e Announcement) ToObject() *object.Object
func (Announcement) ToObjectMap ¶ added in v0.14.4
func (e Announcement) ToObjectMap() map[string]interface{}
func (*Announcement) Type ¶ added in v0.12.0
func (e *Announcement) Type() string
type Policy ¶
type Policy struct { Metadata object.Metadata `nimona:"metadata:m,omitempty"` Subjects []string `nimona:"subjects:as,omitempty"` Resources []string `nimona:"resources:as,omitempty"` Conditions []string `nimona:"conditions:as,omitempty"` Action string `nimona:"action:s,omitempty"` }
func (Policy) ToObjectMap ¶ added in v0.14.4
type Request ¶
type Request struct { Metadata object.Metadata `nimona:"metadata:m,omitempty"` RequestID string `nimona:"requestID:s,omitempty"` RootHash object.Hash `nimona:"rootHash:r,omitempty"` }
func (Request) ToObjectMap ¶ added in v0.14.4
type Response ¶
type Response struct { Metadata object.Metadata `nimona:"metadata:m,omitempty"` RequestID string `nimona:"requestID:s,omitempty"` RootHash object.Hash `nimona:"rootHash:r,omitempty"` Leaves []object.Hash `nimona:"leaves:ar,omitempty"` }
func (Response) ToObjectMap ¶ added in v0.14.4
type Subscription ¶ added in v0.11.0
type Subscription struct { Metadata object.Metadata `nimona:"metadata:m,omitempty"` RootHashes []object.Hash `nimona:"rootHashes:ar,omitempty"` Expiry string `nimona:"expiry:s,omitempty"` }
func (*Subscription) FromObject ¶ added in v0.11.0
func (e *Subscription) FromObject(o *object.Object) error
func (Subscription) ToObject ¶ added in v0.11.0
func (e Subscription) ToObject() *object.Object
func (Subscription) ToObjectMap ¶ added in v0.14.4
func (e Subscription) ToObjectMap() map[string]interface{}
func (*Subscription) Type ¶ added in v0.12.0
func (e *Subscription) Type() string
Click to show internal directories.
Click to hide internal directories.