Documentation ¶
Index ¶
- Constants
- func InitLogger(logger *zap.SugaredLogger)
- type Config
- type Folder
- func (gf Folder) Exists() (bool, error)
- func (gf Folder) GetCommit(revision string) string
- func (gf Folder) IsEmpty() (bool, error)
- func (gf Folder) IsGitRepo() bool
- func (gf Folder) IsPrepared() bool
- func (gf Folder) RunGitCommand(command []string) error
- func (gf Folder) String() string
- func (gf Folder) SubFolder(name string) (Folder, error)
- type FolderState
Constants ¶
View Source
const (
LF byte = 10
)
Variables ¶
This section is empty.
Functions ¶
func InitLogger ¶ added in v0.6.1
func InitLogger(logger *zap.SugaredLogger)
Types ¶
type Config ¶ added in v0.6.1
type Config struct { Path Folder `yaml:"dir"` URL string `yaml:"url"` Remote string `yaml:"remote"` Revision string `yaml:"revision"` RsaPath string `yaml:"rsaPath"` HttpUser string `yaml:"httpUser"` HttpPassword string `yaml:"httpPassword"` Disable bool `yaml:"disable"` }
func (*Config) Initialize ¶ added in v0.6.1
Initialize the git config with defaults
type Folder ¶ added in v0.6.1
type Folder string
func (Folder) Exists ¶ added in v0.6.1
Exists checks if the folder exists (which coud then still be empty
func (Folder) IsGitRepo ¶ added in v0.6.1
IsGitRepo checks if the folder is already initialized as a git repo
func (Folder) IsPrepared ¶ added in v0.6.1
func (Folder) RunGitCommand ¶ added in v0.6.1
type FolderState ¶ added in v0.6.1
type FolderState int
Click to show internal directories.
Click to hide internal directories.