about summary refs log tree commit diff stats
path: root/internal/storage/interface.go
blob: c167a493216111f358007339bae20d54b8798d81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package storage

import (
	"go.alanpearce.eu/website/internal/buffer"
)

type Reader interface {
	GetFile(path string) (*File, error)
	CanonicalisePath(path string) (cPath string, differs bool)
}

type Writer interface {
	Mkdirp(path string) error

	Write(pathname string, content *buffer.Buffer) error
}