aboutsummaryrefslogtreecommitdiffstats
path: root/types.go
blob: 69d7702800826f4485c8d0e9213071566f69aa7c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package main

import (
	"os"
	"time"
)

type FileEvent struct {
	Op   string `json:"op"`
	Path string `json:"path"`
	New  string `json:"new_path,omitempty"`
}

type FileMeta struct {
	Size    int64
	Mode    os.FileMode
	ModTime time.Time
	Symlink string
}

type Manifest struct {
	Files map[string]FileMeta
}