stream

package
v0.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2020 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllowsKeysFromPolicies

func GetAllowsKeysFromPolicies(os ...*object.Object) []crypto.PublicKey

Types

type Announcement

type Announcement struct {
	Metadata     object.Metadata `nimona:"metadata:m,omitempty"`
	StreamHash   object.Hash     `nimona:"streamHash:s,omitempty"`
	ObjectHashes []object.Hash   `nimona:"objectHashes:as,omitempty"`
}

func (*Announcement) FromObject

func (e *Announcement) FromObject(o *object.Object) error

func (Announcement) ToObject

func (e Announcement) ToObject() *object.Object

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) FromObject

func (e *Policy) FromObject(o *object.Object) error

func (Policy) ToObject

func (e Policy) ToObject() *object.Object

func (*Policy) Type added in v0.12.0

func (e *Policy) Type() string

type Request

type Request struct {
	Metadata  object.Metadata `nimona:"metadata:m,omitempty"`
	RequestID string          `nimona:"requestID:s,omitempty"`
	RootHash  object.Hash     `nimona:"rootHash:s,omitempty"`
}

func (*Request) FromObject

func (e *Request) FromObject(o *object.Object) error

func (Request) ToObject

func (e Request) ToObject() *object.Object

func (*Request) Type added in v0.12.0

func (e *Request) Type() string

type Response

type Response struct {
	Metadata  object.Metadata `nimona:"metadata:m,omitempty"`
	RequestID string          `nimona:"requestID:s,omitempty"`
	RootHash  object.Hash     `nimona:"rootHash:s,omitempty"`
	Leaves    []object.Hash   `nimona:"leaves:as,omitempty"`
}

func (*Response) FromObject

func (e *Response) FromObject(o *object.Object) error

func (Response) ToObject

func (e Response) ToObject() *object.Object

func (*Response) Type added in v0.12.0

func (e *Response) Type() string

type Subscription added in v0.11.0

type Subscription struct {
	Metadata   object.Metadata `nimona:"metadata:m,omitempty"`
	RootHashes []object.Hash   `nimona:"rootHashes:as,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) Type added in v0.12.0

func (e *Subscription) Type() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL