Documentation ¶
Index ¶
- func ConfigureZapLogger(debugging bool) (*zap.Logger, error)
- func ConfigureZapSugarLogger(debugging bool) (*zap.SugaredLogger, error)
- func CopyDir(src string, dst string) (err error)
- func CopyFile(src, dst string) (err error)
- func DefaultProcessor(sourcesPath, targetFolderPathForBuild string)
- func EnableDefaultLogger()
- func HugoProcessor(sourcesPath, targetFolderPathForBuild string) error
- func SetLogger(l *zap.SugaredLogger)
- type GitRepo
- type Website
- type WebsiteRegistry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureZapLogger ¶ added in v0.0.8
func ConfigureZapSugarLogger ¶ added in v0.0.8
func ConfigureZapSugarLogger(debugging bool) (*zap.SugaredLogger, error)
func CopyDir ¶
CopyDir recursively copies a directory tree, attempting to preserve permissions. Source directory must exist, destination directory must *not* exist. Symlinks are ignored and skipped.
func CopyFile ¶
CopyFile copies the contents of the file named src to the file named by dst. The file will be created if it does not already exist. If the destination file exists, all it's contents will be replaced by the contents of the source file. The file mode will be copied from the source and the copied data is synced/flushed to stable storage.
func DefaultProcessor ¶
func DefaultProcessor(sourcesPath, targetFolderPathForBuild string)
func EnableDefaultLogger ¶ added in v0.0.8
func EnableDefaultLogger()
func HugoProcessor ¶
func SetLogger ¶ added in v0.0.8
func SetLogger(l *zap.SugaredLogger)
Types ¶
type GitRepo ¶
type GitRepo struct { CloneID string RepoName string BranchName string BranchRef string RepoLocalPath string }
func NewGitRepo ¶
func (*GitRepo) CommitAndPush ¶
func (*GitRepo) GetHeadCommitID ¶
type Website ¶
type Website struct { ID string ContentProcessor string //either 'hugo' or nil ProcessorRoot string WebRoot string GitRepo GitRepo }
func NewWebsite ¶
func (*Website) CommitAndPush ¶
func (*Website) ProvisionSources ¶
type WebsiteRegistry ¶
type WebsiteRegistry struct { SourceRoot string WebRoot string GitHubWebHookSecret string WebSites []*Website }
func NewRegistry ¶ added in v0.0.8
func NewRegistry(sourceRoot, webRoot, gitHubWebHookSecret string) WebsiteRegistry
func (*WebsiteRegistry) Add ¶
func (r *WebsiteRegistry) Add(w *Website)
func (*WebsiteRegistry) GetWebsiteByID ¶
func (r *WebsiteRegistry) GetWebsiteByID(id string) *Website
func (*WebsiteRegistry) GetWebsiteByRepoNameAndBranchRef ¶
func (r *WebsiteRegistry) GetWebsiteByRepoNameAndBranchRef(repoName, branchRef string) *Website
func (*WebsiteRegistry) GitHubWebHookHandler ¶ added in v0.0.8
func (r *WebsiteRegistry) GitHubWebHookHandler(resp http.ResponseWriter, req *http.Request)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.