Documentation
¶
Index ¶
- Constants
- Variables
- func GetRepoFromFileSystem(meta billy.Filesystem, data billy.Filesystem) (*git.Repository, error)
- func Init(meta billy.Filesystem, data billy.Filesystem) error
- type ConfigParser
- type ConfigParserInterface
- type Instance
- func (i *Instance) Commit(files []string, version string, sign *object.Signature, entity *openpgp.Entity) (plumbing.Hash, error)
- func (i *Instance) GetSigningKeyFromConfig(configParser ConfigParserInterface) (string, error)
- func (i *Instance) Save(files []string, version string, gpgEntity *openpgp.Entity) error
- type RepositoryInterface
- type WorktreeInterface
Constants ¶
View Source
const ( Username string = "username" Email string = "username@domain.com" )
Variables ¶
View Source
var ( ErrStrOpeningRepo = "opening repository" ErrStrRetrievingGlobalConfiguration = "retrieving global git configuration" ErrStrRetrievingWorkTree = "retrieving git worktree" ErrStrCommittingChanges = "committing changes" ErrStrTaggingChanges = "tagging changes" ErrStrLoadingConfiguration = "loading git configuration from global scope" ErrStrFormattedStagingAFile = "staging a file %s" )
Functions ¶
func GetRepoFromFileSystem ¶
func GetRepoFromFileSystem(meta billy.Filesystem, data billy.Filesystem) (*git.Repository, error)
Types ¶
type ConfigParser ¶
func (*ConfigParser) GetSectionOption ¶
func (cp *ConfigParser) GetSectionOption(section string, option string) string
func (*ConfigParser) LoadConfig ¶
func (*ConfigParser) SetConfig ¶
func (cp *ConfigParser) SetConfig(config *config.Config)
type ConfigParserInterface ¶
type Instance ¶
type Instance struct { Repository RepositoryInterface Worktree WorktreeInterface Config *config.Config }
func GetInstanceFromRepo ¶
func GetInstanceFromRepo(repo RepositoryInterface) (*Instance, error)
func (*Instance) GetSigningKeyFromConfig ¶
func (i *Instance) GetSigningKeyFromConfig(configParser ConfigParserInterface) (string, error)
type RepositoryInterface ¶
Click to show internal directories.
Click to hide internal directories.