storage

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2018 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFile

func CreateFile(fs FSDriver, info *Metadata, data io.Reader)

Types

type DataStoreger

type DataStoreger interface {
	Write(info *Metadata, data io.Reader) error
}

type FSDriver

type FSDriver interface {
	DataStoreger
	MetadataStoreger
}

type FileMetadata

type FileMetadata struct {
	ID          string
	NamespaceID string
	ProjectID   string
	Name        string
	Size        int64
	Hash        string
	Mode        os.FileMode
	ModTime     time.Time
	CrdTime     time.Time
	IsDir       bool
	Version     string
	Labels      map[string]string
}

Metadata

type MetadataStoreger

type MetadataStoreger interface {
	os.FileInfo
	List(string) ([]*Metadata, error) // ls
}

type Namespace

type Namespace struct {
	ID   string
	Name string
}

Namespace username or orgname

type Project

type Project struct {
	ID        string
	Namespace string
	Name      string
}

Project

Jump to

Keyboard shortcuts

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