directory

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Type = "Directory"
)

Variables

This section is empty.

Functions

func NewRenderer

func NewRenderer(ds model.DataSet, resourceBytes []byte) (datatypes.Renderer, error)

func NewUploader

func NewUploader(path, vaultName string, mapping map[string]string) (datatypes.Uploader, error)

Types

type MetaLockerDirectory

type MetaLockerDirectory struct {
	Context              any                    `json:"@context,omitempty"`
	ID                   string                 `json:"id,omitempty"`
	Type                 string                 `json:"type"`
	Fingerprint          string                 `json:"fingerprint,omitempty"`
	FingerprintAlgorithm string                 `json:"fingerprintAlgorithm,omitempty"`
	Files                []*file.MetaLockerFile `json:"files"`
}

func ProcessDir

func ProcessDir(dirPath, vaultName string, b dataset.Builder, exclusionList []string) (*MetaLockerDirectory, error)

type Renderer

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

func (*Renderer) ExportToDisk

func (dr *Renderer) ExportToDisk(destFolder string, includeMetaData bool) error

func (*Renderer) Print

func (dr *Renderer) Print() error

type Uploader

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

func (*Uploader) Write

func (du *Uploader) Write(b dataset.Builder) error

Jump to

Keyboard shortcuts

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