Documentation
¶
Overview ¶
Package projecticon stores and reads small images through a confined project root.
Index ¶
Constants ¶
View Source
const MaxBytes = 1 << 20
View Source
const Version = 2
Variables ¶
View Source
var ErrInvalid = errors.New("invalid project icon")
Functions ¶
func ValidatePath ¶
Types ¶
type Image ¶
type Image struct {
Path string `json:"path"`
MediaType string `json:"mediaType"`
Content []byte `json:"content"` // JSON base64; never a public file URL.
ETag string `json:"etag"`
}
Click to show internal directories.
Click to hide internal directories.