stream

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2021 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
	ObjectHashes []object.Hash
}

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
	Resources  []string
	Conditions []string
	Action     string
}

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
	RootHash  object.Hash
}

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
	RootHash  object.Hash
	Leaves    []object.Hash
}

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
	Expiry     string
}

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