Documentation ¶
Index ¶
- type BoolData
- type Content
- type ContentProvider
- type ContentProviders
- type ConvListData
- type ConvMapData
- type ConvertableData
- type Data
- type DataSource
- type DataSources
- type ListData
- type MapData
- type NumberData
- type ProvideContentFunc
- type ProvideContentParams
- type RetrieveDataFunc
- type RetrieveDataParams
- type Schema
- type StringData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentProvider ¶
type ContentProvider struct { ContentFunc ProvideContentFunc Args hcldec.Spec Config hcldec.Spec }
func (*ContentProvider) Execute ¶
func (cg *ContentProvider) Execute(ctx context.Context, params *ProvideContentParams) (*Content, hcl.Diagnostics)
func (*ContentProvider) Validate ¶
func (cg *ContentProvider) Validate() hcl.Diagnostics
type ContentProviders ¶
type ContentProviders map[string]*ContentProvider
func (ContentProviders) Validate ¶
func (cp ContentProviders) Validate() hcl.Diagnostics
type ConvListData ¶
type ConvListData []ConvertableData
func (ConvListData) Any ¶
func (d ConvListData) Any() any
func (ConvListData) AsJQData ¶
func (d ConvListData) AsJQData() Data
type ConvMapData ¶
type ConvMapData map[string]ConvertableData
func (ConvMapData) Any ¶
func (d ConvMapData) Any() any
func (ConvMapData) AsJQData ¶
func (d ConvMapData) AsJQData() Data
type ConvertableData ¶
type ConvertableData interface {
AsJQData() Data
}
type Data ¶
type Data interface { Any() any ConvertableData // contains filtered or unexported methods }
func ParseDataAny ¶
func UnmarshalJSONData ¶
type DataSource ¶
type DataSource struct { DataFunc RetrieveDataFunc Args hcldec.Spec Config hcldec.Spec }
func (*DataSource) Execute ¶
func (ds *DataSource) Execute(ctx context.Context, params *RetrieveDataParams) (Data, hcl.Diagnostics)
func (*DataSource) Validate ¶
func (ds *DataSource) Validate() hcl.Diagnostics
type DataSources ¶
type DataSources map[string]*DataSource
func (DataSources) Validate ¶
func (ds DataSources) Validate() hcl.Diagnostics
type NumberData ¶
type NumberData float64
func (NumberData) Any ¶
func (d NumberData) Any() any
func (NumberData) AsJQData ¶
func (d NumberData) AsJQData() Data
type ProvideContentFunc ¶
type ProvideContentFunc func(ctx context.Context, params *ProvideContentParams) (*Content, hcl.Diagnostics)
type ProvideContentParams ¶
type RetrieveDataFunc ¶
type RetrieveDataFunc func(ctx context.Context, params *RetrieveDataParams) (Data, hcl.Diagnostics)
type Schema ¶
type Schema struct { Name string Version string DataSources DataSources ContentProviders ContentProviders }
func (*Schema) ProvideContent ¶
func (*Schema) RetrieveData ¶
type StringData ¶
type StringData string
func (StringData) Any ¶
func (d StringData) Any() any
func (StringData) AsJQData ¶
func (d StringData) AsJQData() Data
Source Files ¶
Click to show internal directories.
Click to hide internal directories.