Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func IsValidRef ¶
func NewYamlEncoder ¶
func NewYamlEncoder(cfg *EncoderConfig) envoy.PrepareEncodeStreamer
NewYamlEncoder initializes a fresh yaml encoder
Types ¶
type Document ¶
type Document struct {
// contains filtered or unexported fields
}
Document defines the supported yaml structure
func (*Document) MarshalYAML ¶
func (*Document) UnmarshalYAML ¶
type EncoderConfig ¶
type EncoderConfig struct { // Skip if defines a pkg/expr expression when to skip the resource SkipIf string // Defer is called after the resource is encoded, regardles of the result Defer func() // DeferOk is called after the resource is encoded, only when successful DeferOk func() // DeferNok is called after the resource is encoded, only when failed // If you return an error, the encoding will terminate. // If you return nil (ignore the error), the encoding will continue. DeferNok func(error) error // Timezone defines what timezone should be used when encoding timestamps // // If not defined, UTC is used Timezone string // TimeLayout defines how to format the encoded timestamp // // If not defined, RFC3339 is used (this one - 2006-01-02T15:04:05Z07:00) TimeLayout string // // CompactOutput forces the output to be as compact as possible // CompactOutput bool // MappedOutput forces the sequences to encode as maps (where possible) MappedOutput bool }
EncoderConfig allows us to configure the resource encoding process
type EnvoyMarshler ¶
Source Files
¶
- api_gateway.go
- api_gateway_marshal.go
- api_gateway_unmarshal.go
- applications.go
- applications_marshal.go
- applications_unmarshal.go
- automation.go
- automation_workflow.go
- automation_workflow_marshal.go
- automation_workflow_unmarshal.go
- compose.go
- compose_chart.go
- compose_chart_marshal.go
- compose_chart_unmarshal.go
- compose_module.go
- compose_module_marshal.go
- compose_module_unmarshal.go
- compose_namespace.go
- compose_namespace_marshal.go
- compose_namespace_unmarshal.go
- compose_page.go
- compose_page_marshal.go
- compose_page_unmarshal.go
- compose_record.go
- compose_record_marshal.go
- compose_record_unmarshal.go
- decoder.go
- document.go
- encoder.go
- rbac_rules.go
- rbac_rules_marshal.go
- rbac_rules_unmarshal.go
- report.go
- report_marshal.go
- report_unmarshal.go
- resource.go
- resource_translation.go
- resource_translation_marshal.go
- resource_translation_unmarshal.go
- role.go
- role_marshal.go
- role_unmarshal.go
- setting.go
- setting_marshal.go
- setting_unmarshal.go
- stamps.go
- template.go
- template_marshal.go
- template_unmarshal.go
- user.go
- user_marshal.go
- user_unmarshal.go
- util.go
- yaml.go
Click to show internal directories.
Click to hide internal directories.