summary refs log tree commit diff stats
path: root/internal/storage/interface.go
blob: 282a33bef3b3417699caf8cd72414922506b8cc6 (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) (string, bool)
}

type Writer interface {
	Mkdirp(path string) error

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