Documentation ¶
Index ¶
- Variables
- type Datadeprecated
- func (d *Data) Datasource(alias string, args ...string) (interface{}, error)
- func (d *Data) DatasourceExists(alias string) bool
- func (d *Data) DatasourceReachable(alias string, args ...string) bool
- func (d *Data) DefineDatasource(alias, value string) (string, error)
- func (d *Data) Include(alias string, args ...string) (string, error)
- func (d *Data) ListDatasources() []string
- type Sourcedeprecated
Constants ¶
This section is empty.
Variables ¶
var CSV = parsers.CSV
CSV - Unmarshal CSV
Deprecated: will be removed in a future version of gomplate. If you have a need for this, please open an issue!
var CSVByColumn = parsers.CSVByColumn
CSVByColumn - Unmarshal CSV in a Columnar form
Deprecated: will be removed in a future version of gomplate. If you have a need for this, please open an issue!
var CSVByRow = parsers.CSVByRow
CSVByRow - Unmarshal CSV in a row-oriented form
Deprecated: will be removed in a future version of gomplate. If you have a need for this, please open an issue!
var CUE = parsers.CUE
CUE - Unmarshal a CUE expression into the appropriate type
Deprecated: will be removed in a future version of gomplate. If you have a need for this, please open an issue!
var JSON = parsers.JSON
JSON - Unmarshal a JSON Object. Can be ejson-encrypted.
Deprecated: will be removed in a future version of gomplate. If you have a need for this, please open an issue!
var JSONArray = parsers.JSONArray
JSONArray - Unmarshal a JSON Array
Deprecated: will be removed in a future version of gomplate. If you have a need for this, please open an issue!
var TOML = parsers.TOML
TOML - Unmarshal a TOML Object
Deprecated: will be removed in a future version of gomplate. If you have a need for this, please open an issue!
var ToCSV = parsers.ToCSV
ToCSV -
Deprecated: will be removed in a future version of gomplate. If you have a need for this, please open an issue!
var ToCUE = parsers.ToCUE
ToCUE - Stringify a struct as CUE
Deprecated: will be removed in a future version of gomplate. If you have a need for this, please open an issue!
var ToJSON = parsers.ToJSON
ToJSON - Stringify a struct as JSON
Deprecated: will be removed in a future version of gomplate. If you have a need for this, please open an issue!
var ToJSONPretty = parsers.ToJSONPretty
ToJSONPretty - Stringify a struct as JSON (indented)
Deprecated: will be removed in a future version of gomplate. If you have a need for this, please open an issue!
var ToTOML = parsers.ToTOML
ToTOML - Stringify a struct as TOML
Deprecated: will be removed in a future version of gomplate. If you have a need for this, please open an issue!
var ToYAML = parsers.ToYAML
ToYAML - Stringify a struct as YAML
Deprecated: will be removed in a future version of gomplate. If you have a need for this, please open an issue!
var YAML = parsers.YAML
YAML - Unmarshal a YAML Object
Deprecated: will be removed in a future version of gomplate. If you have a need for this, please open an issue!
var YAMLArray = parsers.YAMLArray
YAMLArray - Unmarshal a YAML Array
Deprecated: will be removed in a future version of gomplate. If you have a need for this, please open an issue!
Functions ¶
This section is empty.
Types ¶
type Data
deprecated
type Data struct { Ctx context.Context // TODO: remove this before 4.0 Sources map[string]*Source // headers from the --datasource-header/-H option that don't reference datasources from the commandline ExtraHeaders map[string]http.Header // contains filtered or unexported fields }
Data -
Deprecated: will be replaced in future
func FromConfig ¶
FromConfig - internal use only!
func (*Data) Datasource ¶
Datasource -
func (*Data) DatasourceExists ¶
DatasourceExists -
func (*Data) DatasourceReachable ¶
DatasourceReachable - Determines if the named datasource is reachable with the given arguments. Reads from the datasource, and discards the returned data.
func (*Data) DefineDatasource ¶
DefineDatasource -