entities

package module
v0.0.0-...-8e319b8 Latest Latest
Warning

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

Go to latest
Published: May 6, 2016 License: AGPL-3.0 Imports: 0 Imported by: 13

README

Build Status GoDoc Go Report Card

This repository defines the entities used by multiple ClawIO services (authentication, metadata ...).

Current entities are as follows:

  • User: is the inteferface that represents an user.
  • ObjectInfo: is the interface that represents metadata obtained from resources.

Documentation

Index

Constants

View Source
const (
	ObjectTypeTreeMimeType string = "clawio/tree"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ObjectInfo

type ObjectInfo struct {
	PathSpec string     `json:"pathspec"`
	Size     int64      `json:"size"`
	Type     ObjectType `json:"type"`
	MimeType string     `json:"mime_type"`
	Checksum string     `json:"checksum"`
}

ObjectInfo represents the metadata information retrieved from an object, either tree or blob.

type ObjectType

type ObjectType int

ObjectType indicates if the object is either a Tree or a BLOB.

const (
	ObjectTypeTree ObjectType = iota
	ObjectTypeBLOB
)

type User

type User struct {
	Username    string `json:"username"`
	Email       string `json:"email"`
	DisplayName string `json:"display_name"`
}

User represents an user of the system. They are created by the authentication service.

Jump to

Keyboard shortcuts

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