stream

package
v0.5.9-rc2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: MIT Imports: 5 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

func GetStreamLeaves

func GetStreamLeaves(os []object.Object) []object.Object

Types

type Announcement

type Announcement struct {
	Stream     object.Hash
	Parents    []object.Hash
	Owners     []crypto.PublicKey
	Policy     object.Policy
	Signatures []object.Signature
	Nonce      string
	Leaves     []object.Hash
	// contains filtered or unexported fields
}

func (*Announcement) FromObject

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

func (Announcement) GetSchema

func (e Announcement) GetSchema() *object.SchemaObject

func (Announcement) GetType

func (e Announcement) GetType() string

func (Announcement) ToObject

func (e Announcement) ToObject() object.Object

type ObjectRequest

type ObjectRequest struct {
	Stream     object.Hash
	Parents    []object.Hash
	Owners     []crypto.PublicKey
	Policy     object.Policy
	Signatures []object.Signature
	Nonce      string
	Objects    []object.Hash
	// contains filtered or unexported fields
}

func (*ObjectRequest) FromObject

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

func (ObjectRequest) GetSchema

func (e ObjectRequest) GetSchema() *object.SchemaObject

func (ObjectRequest) GetType

func (e ObjectRequest) GetType() string

func (ObjectRequest) ToObject

func (e ObjectRequest) ToObject() object.Object

type ObjectResponse

type ObjectResponse struct {
	Stream     object.Hash
	Parents    []object.Hash
	Owners     []crypto.PublicKey
	Policy     object.Policy
	Signatures []object.Signature
	Nonce      string
	Objects    []*object.Object
	// contains filtered or unexported fields
}

func (*ObjectResponse) FromObject

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

func (ObjectResponse) GetSchema

func (e ObjectResponse) GetSchema() *object.SchemaObject

func (ObjectResponse) GetType

func (e ObjectResponse) GetType() string

func (ObjectResponse) ToObject

func (e ObjectResponse) ToObject() object.Object

type Policy

type Policy struct {
	Stream     object.Hash
	Parents    []object.Hash
	Owners     []crypto.PublicKey
	Policy     object.Policy
	Signatures []object.Signature
	Subjects   []string
	Resources  []string
	Conditions []string
	Action     string
	// contains filtered or unexported fields
}

func (*Policy) FromObject

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

func (Policy) GetSchema

func (e Policy) GetSchema() *object.SchemaObject

func (Policy) GetType

func (e Policy) GetType() string

func (Policy) ToObject

func (e Policy) ToObject() object.Object

type Request

type Request struct {
	Stream     object.Hash
	Parents    []object.Hash
	Owners     []crypto.PublicKey
	Policy     object.Policy
	Signatures []object.Signature
	Nonce      string
	Leaves     []object.Hash
	// contains filtered or unexported fields
}

func (*Request) FromObject

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

func (Request) GetSchema

func (e Request) GetSchema() *object.SchemaObject

func (Request) GetType

func (e Request) GetType() string

func (Request) ToObject

func (e Request) ToObject() object.Object

type Response

type Response struct {
	Stream     object.Hash
	Parents    []object.Hash
	Owners     []crypto.PublicKey
	Policy     object.Policy
	Signatures []object.Signature
	Nonce      string
	Children   []object.Hash
	// contains filtered or unexported fields
}

func (*Response) FromObject

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

func (Response) GetSchema

func (e Response) GetSchema() *object.SchemaObject

func (Response) GetType

func (e Response) GetType() string

func (Response) ToObject

func (e Response) ToObject() object.Object

Jump to

Keyboard shortcuts

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