Documentation ¶
Index ¶
- func ApplyTemplate(t string, data any) (string, error)
- func Copy(fs shared.FileSystem, f shared.File, destination shared.File) error
- func CopyAndApply(logger shared.BaseLogger, fs shared.FileSystem, root shared.Dir, ...) error
- func CopyAndApplyTemplate(fs shared.FileSystem, f shared.File, destination shared.File, obj any) error
- func CopyAndReplace(fs shared.FileSystem, f shared.File, destination shared.File, ...) error
- func CopyAndVisit(logger shared.BaseLogger, fs shared.FileSystem, root shared.Dir, ...) error
- func Walk(logger shared.BaseLogger, fs shared.FileSystem, root shared.Dir, ignore Ignore, ...) error
- type AlreadyExistError
- type FileVisitor
- type Ignore
- type IgnorePatterns
- type NoOpIgnore
- type Replacer
- type ServiceReplacer
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyTemplate ¶
ApplyTemplate takes a YAML template as []byte, populates it using data, and returns the result as a string.
func CopyAndApply ¶
func CopyAndApplyTemplate ¶
func CopyAndReplace ¶
func CopyAndVisit ¶
func CopyAndVisit(logger shared.BaseLogger, fs shared.FileSystem, root shared.Dir, destination shared.Dir, visitor FileVisitor) error
Types ¶
type AlreadyExistError ¶
type AlreadyExistError struct {
// contains filtered or unexported fields
}
func (AlreadyExistError) Error ¶
func (a AlreadyExistError) Error() string
type FileVisitor ¶
type IgnorePatterns ¶ added in v0.0.15
type IgnorePatterns struct {
// contains filtered or unexported fields
}
func NewIgnore ¶ added in v0.0.15
func NewIgnore(patterns ...string) IgnorePatterns
type NoOpIgnore ¶
type NoOpIgnore struct{}
type ServiceReplacer ¶
type ServiceReplacer struct {
// contains filtered or unexported fields
}
func NewServiceReplacer ¶
func NewServiceReplacer(gen *generation.Service) *ServiceReplacer
Click to show internal directories.
Click to hide internal directories.