utils

package
v1.23.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

utils contains functions that are useful in some context

Index

Constants

This section is empty.

Variables

View Source
var AtlasManifest = atlas.BuildEntry(Manifest{}).
	StructMap().
	AddField("Name", atlas.StructMapEntry{SerialName: "name"}).
	AddField("Type", atlas.StructMapEntry{SerialName: "type"}).
	AddField("AccessController", atlas.StructMapEntry{SerialName: "access_controller"}).
	Complete()

AtlasManifest defines how a manifest is serialized

Functions

func CreateDBManifest

func CreateDBManifest(ctx context.Context, ipfs coreapi.CoreAPI, name string, dbType string, accessControllerAddress string) (cid.Cid, error)

CreateDBManifest creates a new database manifest and saves it on IPFS

Types

type Manifest

type Manifest struct {
	Name             string
	Type             string
	AccessController string
}

Manifest defines a database manifest describing its type and access controller

Jump to

Keyboard shortcuts

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