Documentation
¶
Index ¶
- func ApplyTemplate(t string, data any) (string, error)
- func ApplyTemplateFrom(fs shared.FileSystem, f string, obj any) (string, error)
- func Copy(ctx context.Context, fs shared.FileSystem, f shared.File, ...) error
- func CopyAndApply(ctx context.Context, fs shared.FileSystem, root shared.Dir, ...) error
- func CopyAndApplyTemplate(ctx context.Context, fs shared.FileSystem, f shared.File, ...) error
- func CopyAndReplace(ctx context.Context, fs shared.FileSystem, f shared.File, ...) error
- func CopyAndVisit(ctx context.Context, fs shared.FileSystem, root shared.Dir, ...) error
- func Walk(ctx context.Context, fs shared.FileSystem, root shared.Dir, ...) error
- type AlreadyExistError
- type FileVisitor
- type Ignore
- 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 ApplyTemplateFrom ¶ added in v0.0.26
func CopyAndApply ¶
func CopyAndApplyTemplate ¶
func CopyAndReplace ¶
func CopyAndVisit ¶
func CopyAndVisit(ctx context.Context, 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 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.