Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Scheme = runtime.NewScheme() // TODO: Even though an object typer is specified here, serialized objects // are not always getting their TypeMeta set unless explicitly initialized // on the variable declarations. // Investigate https://github.com/kubernetes/cli-runtime/blob/master/pkg/printers/typesetter.go // as a possible solution. // See also: https://github.com/openshift/hive/blob/master/contrib/pkg/createcluster/create.go#L937-L954 YamlSerializer = json.NewSerializerWithOptions( json.DefaultMetaFactory, Scheme, Scheme, json.SerializerOptions{Yaml: true, Pretty: true, Strict: true}, ) JsonSerializer = json.NewSerializerWithOptions( json.DefaultMetaFactory, Scheme, Scheme, json.SerializerOptions{Yaml: false, Pretty: true, Strict: true}, ) TolerantYAMLSerializer = json.NewSerializerWithOptions( json.DefaultMetaFactory, Scheme, Scheme, json.SerializerOptions{Yaml: true, Pretty: true, Strict: false}, ) )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.