storage

package
v0.0.0-...-da789b0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(b *base.Node, node *storage.Storage) graph.Node

func NewDocument

func NewDocument(b *base.Node, node *storage.Document) graph.Node

func NewFileProto

func NewFileProto(path string) *storage.Storage

func NewFolderProto

func NewFolderProto(url string) *storage.Storage

func NewProto

func NewProto(name string, c *storage.Storage) *gen.Node

Types

type Collection

type Collection struct {
	*base.Node
	// contains filtered or unexported fields
}

func NewCollection

func NewCollection(b *base.Node, n *storage.Collection) *Collection

func (*Collection) Wire

func (n *Collection) Wire(ctx context.Context, input graph.IO) (graph.IO, error)

type File

type File struct {
	*base.Node
	*storage.File
}

func NewFile

func NewFile(b *base.Node, node *storage.File) *File

func (*File) Wire

func (n *File) Wire(ctx context.Context, input graph.IO) (graph.IO, error)

type Folder

type Folder struct {
	*base.Node
	*storage.Folder
}

func NewFolder

func NewFolder(b *base.Node, node *storage.Folder) *Folder

func (*Folder) Provide

func (r *Folder) Provide() ([]*gen.Node, error)

func (*Folder) Wire

func (r *Folder) Wire(ctx context.Context, input graph.IO) (graph.IO, error)

func (*Folder) WithPath

func (r *Folder) WithPath(path string) (*blob.Bucket, func(), error)

type QueryNode

type QueryNode struct {
	*base.Node
	*storage.Query
}

func NewQuery

func NewQuery(b *base.Node, n *storage.Query) *QueryNode

func (*QueryNode) Wire

func (n *QueryNode) Wire(ctx context.Context, input graph.IO) (graph.IO, error)

type Store

type Store struct {
	*base.Node
	*storage.Store
}

func NewStore

func NewStore(b *base.Node, n *storage.Store) *Store

func (*Store) Wire

func (r *Store) Wire(ctx context.Context, input graph.IO) (graph.IO, error)

func (*Store) WithCollection

func (r *Store) WithCollection(name string) (*docstore.Collection, func(), error)

Jump to

Keyboard shortcuts

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