Documentation ¶
Index ¶
- func Dir(useLocal bool, name string) http.FileSystem
- func FS(useLocal bool) http.FileSystem
- func FSByte(useLocal bool, name string) ([]byte, error)
- func FSMustByte(useLocal bool, name string) []byte
- func FSMustString(useLocal bool, name string) string
- func FSString(useLocal bool, name string) (string, error)
- func WriteHTMLComponentHeader(w io.Writer, chd ComponentHeaderData)
- func WriteHTMLExtensionsSummaryTable(w io.Writer, spd SummaryExtensionsTableData)
- func WriteHTMLFooter(w io.Writer)
- func WriteHTMLHeader(w io.Writer, hd HeaderData)
- func WriteHTMLPipelinesSummaryTable(w io.Writer, spd SummaryPipelinesTableData)
- func WriteHTMLPropertiesTable(w io.Writer, chd PropertiesTableData)
- type ComponentHeaderData
- type HeaderData
- type PropertiesTableData
- type SummaryExtensionsTableData
- type SummaryExtensionsTableRowData
- type SummaryPipelinesTableData
- type SummaryPipelinesTableRowData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dir ¶
func Dir(useLocal bool, name string) http.FileSystem
Dir returns a http.Filesystem for the embedded assets on a given prefix dir. If useLocal is true, the filesystem's contents are instead used.
func FS ¶
func FS(useLocal bool) http.FileSystem
FS returns a http.Filesystem for the embedded assets. If useLocal is true, the filesystem's contents are instead used.
func FSByte ¶
FSByte returns the named file from the embedded assets. If useLocal is true, the filesystem's contents are instead used.
func FSMustByte ¶
FSMustByte is the same as FSByte, but panics if name is not present.
func FSMustString ¶
FSMustString is the string version of FSMustByte.
func WriteHTMLComponentHeader ¶
func WriteHTMLComponentHeader(w io.Writer, chd ComponentHeaderData)
WriteHTMLFooter writes the footer.
func WriteHTMLExtensionsSummaryTable ¶
func WriteHTMLExtensionsSummaryTable(w io.Writer, spd SummaryExtensionsTableData)
WriteHTMLSummaryTable writes the summary table for one component type (receivers, processors, exporters). Id does not write the header or footer.
func WriteHTMLHeader ¶
func WriteHTMLHeader(w io.Writer, hd HeaderData)
WriteHTMLFooter writes the header.
func WriteHTMLPipelinesSummaryTable ¶
func WriteHTMLPipelinesSummaryTable(w io.Writer, spd SummaryPipelinesTableData)
WriteHTMLSummaryTable writes the summary table for one component type (receivers, processors, exporters). Id does not write the header or footer.
func WriteHTMLPropertiesTable ¶
func WriteHTMLPropertiesTable(w io.Writer, chd PropertiesTableData)
WriteHTMLFooter writes the footer.
Types ¶
type ComponentHeaderData ¶
ComponentHeaderData contains data for component header template.
type HeaderData ¶
type HeaderData struct {
Title string
}
HeaderData contains data for the header template.
type PropertiesTableData ¶
PropertiesTableData contains data for properties table template.
type SummaryExtensionsTableData ¶
type SummaryExtensionsTableData struct { ComponentEndpoint string Rows []SummaryExtensionsTableRowData }
SummaryExtensionsTableData contains data for extensions summary table template.
type SummaryExtensionsTableRowData ¶
SummaryExtensionsTableData contains data for one row in extensions summary table template.
type SummaryPipelinesTableData ¶
type SummaryPipelinesTableData struct { ComponentEndpoint string Rows []SummaryPipelinesTableRowData }
SummaryPipelinesTableData contains data for pipelines summary table template.