cogutil

package
v0.0.0-...-9febfc8 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Overview

Package cogutil provides access to cog system. See

http://shortn/_i28Te0webh - unconditional writes, local redirect mode
http://shortn/_rBwmJ3sRKS - buildfs prototype

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is cogfs client.

func New

func New(ctx context.Context, dir string, reopt *reapi.Option) (*Client, error)

New creates new cog fs client at dir with reopt.

func (*Client) BuildfsInsert

func (c *Client) BuildfsInsert(ctx context.Context, dir string, entries []merkletree.Entry) error

BuildfsInsert inserts entries at dir.

func (*Client) Close

func (c *Client) Close() error

Close closes connection to cogfs server.

func (*Client) Info

func (c *Client) Info() string

Info returns cog supported status.

Directories

Path Synopsis
Package proto provides protocol buffer message for cog system.
Package proto provides protocol buffer message for cog system.

Jump to

Keyboard shortcuts

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