Documentation ¶
Index ¶
- func Parse(cfg string) (dcfg *pb.GlobalConfig, ce *adapter.ConfigErrors)
- func ValidateLogEntry(desc *dpb.LogEntryDescriptor) (ce *adapter.ConfigErrors)
- func ValidateMetric(desc *dpb.MetricDescriptor) (ce *adapter.ConfigErrors)
- func ValidateMonitoredResource(desc *dpb.MonitoredResourceDescriptor) (ce *adapter.ConfigErrors)
- func ValidatePrincipal(desc *dpb.PrincipalDescriptor) (ce *adapter.ConfigErrors)
- func ValidateQuota(desc *dpb.QuotaDescriptor) (ce *adapter.ConfigErrors)
- type Finder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Parse ¶
func Parse(cfg string) (dcfg *pb.GlobalConfig, ce *adapter.ConfigErrors)
Parse parses a descriptor config into its parts. This entire function is equivalent to jsonpb.Unmarshal() It provides better error reporting about which specific object has the error
func ValidateLogEntry ¶
func ValidateLogEntry(desc *dpb.LogEntryDescriptor) (ce *adapter.ConfigErrors)
ValidateLogEntry validates a log entry descriptor.
func ValidateMetric ¶
func ValidateMetric(desc *dpb.MetricDescriptor) (ce *adapter.ConfigErrors)
ValidateMetric validates a metric descriptor.
func ValidateMonitoredResource ¶
func ValidateMonitoredResource(desc *dpb.MonitoredResourceDescriptor) (ce *adapter.ConfigErrors)
ValidateMonitoredResource validates a monitored resource descriptor.
func ValidatePrincipal ¶
func ValidatePrincipal(desc *dpb.PrincipalDescriptor) (ce *adapter.ConfigErrors)
ValidatePrincipal validates a principal descriptor.
func ValidateQuota ¶
func ValidateQuota(desc *dpb.QuotaDescriptor) (ce *adapter.ConfigErrors)
ValidateQuota validates a quota descriptor.
Types ¶
type Finder ¶
type Finder interface { expr.AttributeDescriptorFinder // GetLog retrieves the log descriptor named `name` GetLog(name string) *dpb.LogEntryDescriptor // GetMetric retrieves the metric descriptor named `name` GetMetric(name string) *dpb.MetricDescriptor // GetMonitoredResource retrieves the monitored resource descriptor named `name` GetMonitoredResource(name string) *dpb.MonitoredResourceDescriptor // GetPrincipal retrieves the security principal descriptor named `name` GetPrincipal(name string) *dpb.PrincipalDescriptor // GetQuota retrieves the quota descriptor named `name` GetQuota(name string) *dpb.QuotaDescriptor }
Finder describes anything that can provide a view into the config's descriptors by name and type.
func NewFinder ¶
func NewFinder(cfg *pb.GlobalConfig) Finder
NewFinder constructs a new Finder for the provided global config.
Click to show internal directories.
Click to hide internal directories.