Documentation ¶ Index ¶ Constants func NewDefault(name string) dukkha.Renderer type Operation func (op *Operation) Do(rc dukkha.RenderingContext, data interface{}) (interface{}, error) type Spec Constants ¶ View Source const DefaultName = "transform" Variables ¶ This section is empty. Functions ¶ func NewDefault ¶ func NewDefault(name string) dukkha.Renderer Types ¶ type Operation ¶ type Operation struct { rs.BaseField `yaml:"-"` Template *string `yaml:"template,omitempty"` Shell *string `yaml:"shell,omitempty"` } func (*Operation) Do ¶ func (op *Operation) Do(rc dukkha.RenderingContext, data interface{}) (interface{}, error) type Spec ¶ type Spec struct { rs.BaseField `yaml:"-"` // Value always be string, so you can decide which format is converts to in operations Value string `yaml:"value"` // Ops the transform operations to run Ops []*Operation `yaml:"ops"` } Spec for yaml data transformation Source Files ¶ View all Source files transform.go Click to show internal directories. Click to hide internal directories.