stencil

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

README

stencil

Stencil is a go-template powered micro-service lifecycle manager.

How to Use

Download the latest release and extract it.

# Create a directory for your new service, or run in an existing stencil service dir
$ cd my-new-service
$ ./stencil

Profit.

Creating a new service

TODO

For now you can simply create a service.yaml and add a module to the list.

Writing Templates

Templates are written via go-template syntax. Simply create a new module repository with a manifest.yaml and create a .tpl file to have it be automatically included / rendered. By default a file is written to the same place as the name it has in the template repository. This can be changed with the file.SetPath function.

Functions

All available template functions are able to be found on [pkg.dev](ADD LINK AFTER OSS).

License

Apache-2.0

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
docs module
internal
vfs
Package vfs implements a layered filesystem for use with billy.Filesystem
Package vfs implements a layered filesystem for use with billy.Filesystem
pkg
codegen
Package codegen has code generators for Go projects This is intended for use with stencil Builder:Build is the main entry point and this uses the fields of the Manifest and the builder itself to first generate a list of files.
Package codegen has code generators for Go projects This is intended for use with stencil Builder:Build is the main entry point and this uses the fields of the Manifest and the builder itself to first generate a list of files.
configuration
Package configuration implements configuration loading logic for stencil repositories and template repositories
Package configuration implements configuration loading logic for stencil repositories and template repositories
gitauth
Package gitauth provides helpers for setting up auth
Package gitauth provides helpers for setting up auth
tests

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL