Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConfigRef ¶
type ConfigRef struct {
Name string `json:"name"`
Namespace string `json:"namespace"`
}
ConfigRef reference a config secret, it must be system scope.
type ExpandedWriterConfig ¶
type ExpandedWriterConfig struct {
Nacos *NacosConfig `json:"nacos"`
}
ExpandedWriterConfig define the supported output ways.
func ParseExpandedWriterConfig ¶
func ParseExpandedWriterConfig(template *value.Value) ExpandedWriterConfig
ParseExpandedWriterConfig parse the expanded writer config from the template value
type ExpandedWriterData ¶
type ExpandedWriterData struct {
Nacos *NacosData `json:"nacos"`
}
ExpandedWriterData the data for the expanded writer
func RenderForExpandedWriter ¶
func RenderForExpandedWriter(ewc ExpandedWriterConfig, template script.CUE, context icontext.ConfigRenderContext, properties map[string]interface{}) (*ExpandedWriterData, error)
RenderForExpandedWriter render the configuration for all expanded writers
type NacosConfig ¶
type NacosConfig struct {
Endpoint ConfigRef `json:"endpoint"`
// Format defines the format in which Data will be output.
Format string `json:"format"`
Metadata NacosConfigMetadata `json:"metadata"`
}
NacosConfig defines the nacos output
type NacosConfigMetadata ¶
type NacosConfigMetadata struct {
DataID string `json:"dataId"`
Group string `json:"group"`
NamespaceID string `json:"namespaceId"`
AppName string `json:"appName,omitempty"`
Tenant string `json:"tenant,omitempty"`
Tag string `json:"tag,omitempty"`
}
NacosConfigMetadata the metadata of the nacos config
Click to show internal directories.
Click to hide internal directories.