ocfltest

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package ocfltest provides functions for generating dummy inventories with various properties.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenInv

func GenInv(conf *GenInvConf) *ocflv1.Inventory

func GenStore

func GenStore(fsys ocfl.WriteFS, dir string, conf *GenStoreConf) error

Types

type GenInvConf

type GenInvConf struct {
	ID       string
	Head     ocfl.VNum
	Numfiles int
	Add      float64
	Mod      float64
	Del      float64
}

type GenStoreConf

type GenStoreConf struct {
	InvNumber    int
	InvSize      int
	VNumMax      int
	Layout       *ocflv1.StoreLayout
	LayoutConfig extensions.Extension
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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