Documentation ¶
Index ¶
- func CreateDirectory(workingDirectory string, name string, strict bool) (string, error)
- func CreateFile(workingDirectory string, name string) (string, error)
- func ParseHCL2(p []byte, v interface{}) error
- func ParseYAML(p []byte, v interface{}) error
- func StartProgress(progressName string, progress ProgressFunc) error
- func TemplateFile(workingDirectory string, fileName string, template string, ...) error
- func Term() (*ast.Term, error)
- type EnumFlag
- type LoaderFilter
- type ProgressFunc
- type RepeatedStringFlag
- type Templating
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDirectory ¶
func StartProgress ¶
func StartProgress(progressName string, progress ProgressFunc) error
func TemplateFile ¶
func TemplateFile(workingDirectory string, fileName string, template string, templating Templating) error
Types ¶
type EnumFlag ¶
type EnumFlag struct {
// contains filtered or unexported fields
}
func NewEnumFlag ¶
func (*EnumFlag) Set ¶
Set sets the enum value. If s is not a valid enum value, an error is returned.
type LoaderFilter ¶
type LoaderFilter struct {
Ignore []string
}
LoaderFilter was taken from https://github.com/open-policy-agent/opa/blob/v0.31.0/cmd/filters.go#L13
type ProgressFunc ¶
type ProgressFunc func() error
type RepeatedStringFlag ¶
type RepeatedStringFlag struct {
// contains filtered or unexported fields
}
func NewRepeatedStringFlag ¶
func NewRepeatedStringFlag(defaultValue string) RepeatedStringFlag
func (*RepeatedStringFlag) IsSet ¶
func (f *RepeatedStringFlag) IsSet() bool
func (*RepeatedStringFlag) Set ¶
func (f *RepeatedStringFlag) Set(s string) error
func (*RepeatedStringFlag) String ¶
func (f *RepeatedStringFlag) String() string
func (*RepeatedStringFlag) Strings ¶
func (f *RepeatedStringFlag) Strings() []string
func (*RepeatedStringFlag) Type ¶
func (f *RepeatedStringFlag) Type() string
Click to show internal directories.
Click to hide internal directories.