Documentation ¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func GetTemplate ¶
func GetTemplate(fType feature.FeatureType) ([]byte, error)
func RenderExistingProtoTemplate ¶ added in v0.2.19
func RenderExistingProtoTemplate(inputs ProtoStarInputs) ([]byte, error)
RenderExistingProtoTemplate will render the parsed Proto message descriptor into a Starlark feature model
Types ¶
type Builder ¶
type Builder interface {
Build() (*feature.CompiledFeature, error)
}
type Compiler ¶
type Compiler interface { Compile(context.Context, feature.NamespaceVersion) (*feature.CompiledFeature, error) Persist(ctx context.Context, f *feature.Feature, nv feature.NamespaceVersion, ignoreBackwardsCompatibility, dryRun bool) (persisted bool, diffExists bool, err error) }
func NewCompiler ¶
func NewCompiler(registry *protoregistry.Types, ff *feature.FeatureFile, cw fs.ConfigWriter) Compiler
Compile takes the following parameters: protoDir: path to the proto directory that stores all user-defined proto files starfilePath: path to the .star file that defines this feature flag featureName: human-readable name of this feature flag. Also matches the starfile name.
type Formatter ¶
func NewStarFormatter ¶
func NewStarFormatter(filePath, featureName string, fType feature.FeatureType, cw fs.ConfigWriter, dryRun bool) Formatter
Click to show internal directories.
Click to hide internal directories.