Documentation ¶
Index ¶
- Constants
- func AddConfig(opts flagsets.ConfigOptions, config flagsets.Config) error
- func ConfigHandler() flagsets.ConfigOptionTypeSetHandler
- func FormattedJson(raw []byte) ([]byte, error)
- func Json(raw []byte) ([]byte, error)
- func Plain(data []byte) ([]byte, error)
- func Prepare(raw []byte) (interface{}, error)
- func Yaml(raw []byte) ([]byte, error)
- type OutputFormat
- type Spec
- func New(text string, mediatype string, compress bool) *Spec
- func NewFormattedJson(data interface{}, mediatype string, compress bool) (*Spec, error)
- func NewJson(data interface{}, mediatype string, compress bool) (*Spec, error)
- func NewYaml(data interface{}, mediatype string, compress bool) (*Spec, error)
Constants ¶
View Source
const TYPE = "utf8"
Variables ¶
This section is empty.
Functions ¶
func ConfigHandler ¶
func ConfigHandler() flagsets.ConfigOptionTypeSetHandler
func FormattedJson ¶ added in v0.4.0
Types ¶
type OutputFormat ¶ added in v0.4.0
type Spec ¶
type Spec struct { inputs.InputSpecBase `json:",inline"` cpi.ProcessSpec `json:",inline"` // Text is an utf8 string Text string `json:"text,omitempty"` Json json.RawMessage `json:"json,omitempty"` FormattedJson json.RawMessage `json:"formattedJson,omitempty"` Yaml json.RawMessage `json:"yaml,omitempty"` }
func NewFormattedJson ¶ added in v0.4.0
func (*Spec) GetBlob ¶
func (s *Spec) GetBlob(ctx inputs.Context, info inputs.InputResourceInfo) (blobaccess.BlobAccess, string, error)
Click to show internal directories.
Click to hide internal directories.