Documentation ¶
Index ¶
- func NewCmd(o *TemplateOptions) *cobra.Command
- type BulkFile
- type BulkFiles
- type BulkFilesSource
- type BulkFilesSourceOpts
- type DataValuesFlags
- type DataValuesPreProcessing
- type FileSource
- type OverlayPostProcessing
- type RegularFilesSource
- type RegularFilesSourceOpts
- type TemplateInput
- type TemplateOptions
- type TemplateOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmd ¶
func NewCmd(o *TemplateOptions) *cobra.Command
Types ¶
type BulkFilesSource ¶
type BulkFilesSource struct {
// contains filtered or unexported fields
}
func NewBulkFilesSource ¶
func NewBulkFilesSource(opts BulkFilesSourceOpts, ui cmdcore.PlainUI) *BulkFilesSource
func (*BulkFilesSource) HasInput ¶
func (s *BulkFilesSource) HasInput() bool
func (*BulkFilesSource) HasOutput ¶
func (s *BulkFilesSource) HasOutput() bool
func (BulkFilesSource) Input ¶
func (s BulkFilesSource) Input() (TemplateInput, error)
func (*BulkFilesSource) Output ¶
func (s *BulkFilesSource) Output(out TemplateOutput) error
type BulkFilesSourceOpts ¶
type BulkFilesSourceOpts struct {
// contains filtered or unexported fields
}
func (*BulkFilesSourceOpts) Set ¶
func (s *BulkFilesSourceOpts) Set(cmd *cobra.Command)
type DataValuesFlags ¶ added in v0.8.0
func (*DataValuesFlags) Set ¶ added in v0.8.0
func (s *DataValuesFlags) Set(cmd *cobra.Command)
func (*DataValuesFlags) Values ¶ added in v0.8.0
func (s *DataValuesFlags) Values() (map[interface{}]interface{}, error)
type DataValuesPreProcessing ¶ added in v0.13.0
type DataValuesPreProcessing struct { IgnoreUnknownComments bool // TODO remove? // contains filtered or unexported fields }
func (DataValuesPreProcessing) Apply ¶ added in v0.13.0
func (o DataValuesPreProcessing) Apply() (interface{}, error)
type FileSource ¶
type FileSource interface { HasInput() bool HasOutput() bool Input() (TemplateInput, error) Output(TemplateOutput) error }
type OverlayPostProcessing ¶
type OverlayPostProcessing struct {
// contains filtered or unexported fields
}
func (OverlayPostProcessing) Apply ¶
func (o OverlayPostProcessing) Apply() (map[*workspace.FileInLibrary]*yamlmeta.DocumentSet, error)
type RegularFilesSource ¶
type RegularFilesSource struct {
// contains filtered or unexported fields
}
func NewRegularFilesSource ¶
func NewRegularFilesSource(opts RegularFilesSourceOpts, ui cmdcore.PlainUI) *RegularFilesSource
func (*RegularFilesSource) HasInput ¶
func (s *RegularFilesSource) HasInput() bool
func (*RegularFilesSource) HasOutput ¶
func (s *RegularFilesSource) HasOutput() bool
func (*RegularFilesSource) Input ¶
func (s *RegularFilesSource) Input() (TemplateInput, error)
func (*RegularFilesSource) Output ¶
func (s *RegularFilesSource) Output(out TemplateOutput) error
type RegularFilesSourceOpts ¶
type RegularFilesSourceOpts struct {
// contains filtered or unexported fields
}
func (*RegularFilesSourceOpts) Set ¶
func (s *RegularFilesSourceOpts) Set(cmd *cobra.Command)
type TemplateInput ¶
type TemplateOptions ¶
type TemplateOptions struct { IgnoreUnknownComments bool Debug bool InspectFiles bool BulkFilesSourceOpts BulkFilesSourceOpts RegularFilesSourceOpts RegularFilesSourceOpts DataValuesFlags DataValuesFlags }
func NewOptions ¶
func NewOptions() *TemplateOptions
func (*TemplateOptions) Run ¶
func (o *TemplateOptions) Run() error
func (*TemplateOptions) RunWithFiles ¶
func (o *TemplateOptions) RunWithFiles(in TemplateInput, ui cmdcore.PlainUI) TemplateOutput
type TemplateOutput ¶
type TemplateOutput struct { Files []files.OutputFile DocSet *yamlmeta.DocumentSet Err error Empty bool }
Click to show internal directories.
Click to hide internal directories.