Type FileType
Url string
Path string
+ CA string
body []byte // internally used by handleFiles()
}
const (
FileTypePlain FileType = iota
FileTypePasswd
+ FileTypeGroup
)
func (t *FileType) UnmarshalText(text []byte) error {
*t = FileTypePlain
case "passwd":
*t = FileTypePasswd
+ case "group":
+ *t = FileTypeGroup
default:
return fmt.Errorf("invalid file type %q", text)
}