Documentation ¶
Index ¶
- func DirExist(path string) (bool, error)
- func FileExist(path string) (bool, error)
- func InterpolateTemplate(templateName string, params interface{}) (string, error)
- func IsGitRepo(path string) error
- func WriteTemplateToFile(filePath, templateName string, params interface{}) error
- type General
- type GeneratedFilesContent
- type Generator
- type Github
- type Gitlab
- type Opa
- type SCC
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InterpolateTemplate ¶
func WriteTemplateToFile ¶
Types ¶
type General ¶
type General struct {
// contains filtered or unexported fields
}
func (*General) GenerateFilesContent ¶
func (g *General) GenerateFilesContent() (GeneratedFilesContent, error)
type GeneratedFilesContent ¶
type Generator ¶
type Generator interface { Generate(overwrite bool) error GenerateFilesContent() (GeneratedFilesContent, error) }
type Github ¶
type Github struct {
// contains filtered or unexported fields
}
func (*Github) GenerateFilesContent ¶
func (g *Github) GenerateFilesContent() (GeneratedFilesContent, error)
type Gitlab ¶
type Gitlab struct {
// contains filtered or unexported fields
}
func (*Gitlab) GenerateFilesContent ¶
func (g *Gitlab) GenerateFilesContent() (GeneratedFilesContent, error)
type Opa ¶
type Opa struct {
// contains filtered or unexported fields
}
func (*Opa) GenerateFilesContent ¶
func (o *Opa) GenerateFilesContent() (GeneratedFilesContent, error)
Click to show internal directories.
Click to hide internal directories.