Documentation ¶
Index ¶
- func Bind(paths []string, dstPath string, overwrite bool) error
- func GetHorcruxPathsInDir(dir string) ([]string, error)
- func Prompt(message string, args ...interface{}) string
- func Split(path string, destination string, total int, threshold int) error
- func SplitWithPrompt(path string) error
- func ValidateHorcruxes(horcruxes []Horcrux) error
- type Horcrux
- type HorcruxHeader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHorcruxPathsInDir ¶
func SplitWithPrompt ¶
func ValidateHorcruxes ¶
Types ¶
type Horcrux ¶
type Horcrux struct {
// contains filtered or unexported fields
}
func GetHorcruxes ¶
func NewHorcrux ¶
returns a horcrux with its header parsed, and it's file's read pointer right after the header.
func (*Horcrux) GetHeader ¶
func (h *Horcrux) GetHeader() HorcruxHeader
type HorcruxHeader ¶
type HorcruxHeader struct { OriginalFilename string `json:"originalFilename"` Timestamp int64 `json:"timestamp"` Index int `json:"index"` Total int `json:"total"` Threshold int `json:"threshold"` KeyFragment []byte `json:"keyFragment"` }
func GetHeaderFromHorcruxFile ¶
func GetHeaderFromHorcruxFile(file *os.File) (*HorcruxHeader, error)
this function gets the header from the horcrux file and ensures that we leave the file with its read pointer at the start of the encrypted content so that we can later directly read from that point yes this is a side effect, no I'm not proud of it.
Click to show internal directories.
Click to hide internal directories.