Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnexpectedProfileKey = errors.New("unexpected key found in profile config")
ErrUnexpectedProfileKey is returned when an unexpected key is found in the profiles file
Functions ¶
This section is empty.
Types ¶
type Profile ¶
type Profile struct { // Name is the personal name committer. Name string // Email is the email of the commiter. Email string }
Profile stores the details of the committer.
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage writes and reads Profiles to the given filesystem
func NewStorage ¶
func NewStorage(fs billy.Filesystem) *Storage
NewStorage returns an instance of Storage configured to use the given filesystem
Click to show internal directories.
Click to hide internal directories.