Documentation
¶
Index ¶
- Variables
- func Add(entry string) string
- func Cont(name string, contEntries ...string) (contStr string)
- func CreateFeaturesChecker(caps string) (compile.FeaturesChecker, error)
- func EmptyLeaf(name string) string
- func FormatAsDiff(entry string) (diffs string)
- func FormatAsDiffNoTrailingLine(entry string) (diffs string)
- func FormatCtxDiffHunk(ctxPath, hunk string) string
- func GetConfigSchema(buf ...[]byte) (schema.ModelSet, error)
- func GetConfigSchemaSkipUnknown(buf ...[]byte) (schema.ModelSet, error)
- func GetFullSchema(buf ...[]byte) (schema.ModelSet, error)
- func Leaf(name, value string) string
- func LeafList(name string, leafListEntries ...string) (leafListStr string)
- func LeafListEntry(name string) string
- func List(name string, listEntries ...string) (listStr string)
- func ListEntry(name string, leaves ...string) (listEntryStr string)
- func LogStack(t *testing.T)
- func LogStackFatal(t *testing.T)
- func LogStackInternal(t *testing.T, fatal bool)
- func Prefix(entry, pfx string) string
- func Rem(entry string) string
- func Root(rootEntries ...string) (rootStr string)
- func Tab(entry string) string
- type ModelSetSpec
- func (mss *ModelSetSpec) GenerateModelSets() (schema.ModelSet, schema.ModelSet, error)
- func (mss *ModelSetSpec) GetCfgOnlyModelSet() schema.ModelSet
- func (mss *ModelSetSpec) GetFullModelSet() schema.ModelSet
- func (mss *ModelSetSpec) SetCapabilities(capabilities string) *ModelSetSpec
- func (mss *ModelSetSpec) SetExtensions(ext *schema.CompilationExtensions) *ModelSetSpec
- func (mss *ModelSetSpec) SetFeaturesChecker(checker compile.FeaturesChecker) *ModelSetSpec
- func (mss *ModelSetSpec) SetSchemaDir(schemaDir string) *ModelSetSpec
- func (mss *ModelSetSpec) SetSchemas(schemas ...[]byte) *ModelSetSpec
- func (mss *ModelSetSpec) SetSkipUnknown() *ModelSetSpec
Constants ¶
This section is empty.
Variables ¶
View Source
var POISON_SECRETS = []string{
"PoIsOnSeCrEt", "sEcReTpOiSoN",
}
Well known "secret" values used to detect leaking of secrets
Functions ¶
func CreateFeaturesChecker ¶
func CreateFeaturesChecker(caps string) (compile.FeaturesChecker, error)
Given a file containing a list of feature capabilities, create a directory structure as required by the compiler to determine enabled features A new temporary directory will be created on each invocation
func FormatAsDiff ¶
Initially the +/- for changed lines get added right in front of the element being changed. This function pulls them to the front of the line and inserts a leading space on unchanged lines. Completely blank lines (other than leading tabs) do NOT get a leading space.
func FormatCtxDiffHunk ¶
func LeafListEntry ¶
func LogStackFatal ¶
func LogStackInternal ¶
Types ¶
type ModelSetSpec ¶
type ModelSetSpec struct {
// contains filtered or unexported fields
}
func NewModelSetSpec ¶
func NewModelSetSpec(t *testing.T) *ModelSetSpec
func (*ModelSetSpec) GenerateModelSets ¶
func (*ModelSetSpec) GetCfgOnlyModelSet ¶
func (mss *ModelSetSpec) GetCfgOnlyModelSet() schema.ModelSet
func (*ModelSetSpec) GetFullModelSet ¶
func (mss *ModelSetSpec) GetFullModelSet() schema.ModelSet
func (*ModelSetSpec) SetCapabilities ¶
func (mss *ModelSetSpec) SetCapabilities( capabilities string, ) *ModelSetSpec
func (*ModelSetSpec) SetExtensions ¶
func (mss *ModelSetSpec) SetExtensions( ext *schema.CompilationExtensions, ) *ModelSetSpec
func (*ModelSetSpec) SetFeaturesChecker ¶
func (mss *ModelSetSpec) SetFeaturesChecker( checker compile.FeaturesChecker, ) *ModelSetSpec
func (*ModelSetSpec) SetSchemaDir ¶
func (mss *ModelSetSpec) SetSchemaDir(schemaDir string) *ModelSetSpec
func (*ModelSetSpec) SetSchemas ¶
func (mss *ModelSetSpec) SetSchemas(schemas ...[]byte) *ModelSetSpec
func (*ModelSetSpec) SetSkipUnknown ¶
func (mss *ModelSetSpec) SetSkipUnknown() *ModelSetSpec
Source Files
¶
Click to show internal directories.
Click to hide internal directories.