Documentation ¶
Index ¶
- Variables
- type MetaFactory
- type Serializer
- func NewSerializer(meta MetaFactory, creater runtime.ObjectCreator, typer runtime.ObjectTyper, ...) *Serializer
- func NewSerializerWithOptions(meta MetaFactory, creater runtime.ObjectCreator, typer runtime.ObjectTyper) *Serializer
- func NewYAMLSerializer(meta MetaFactory, creater runtime.ObjectCreator, typer runtime.ObjectTyper) *Serializer
- type SimpleMetaFactory
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultMetaFactory = SimpleMetaFactory{}
View Source
var Framer = jsonFramer{}
Framer is the default JSON framing behavior, with newlines delimiting individual objects.
Functions ¶
This section is empty.
Types ¶
type MetaFactory ¶
type Serializer ¶
type Serializer struct {
// contains filtered or unexported fields
}
Serializer handles encoding versioned objects into the proper JSON form
func NewSerializer ¶
func NewSerializer(meta MetaFactory, creater runtime.ObjectCreator, typer runtime.ObjectTyper, pretty bool) *Serializer
func NewSerializerWithOptions ¶
func NewSerializerWithOptions(meta MetaFactory, creater runtime.ObjectCreator, typer runtime.ObjectTyper) *Serializer
func NewYAMLSerializer ¶
func NewYAMLSerializer(meta MetaFactory, creater runtime.ObjectCreator, typer runtime.ObjectTyper) *Serializer
func (*Serializer) RecognizesData ¶
func (s *Serializer) RecognizesData(data []byte) (ok, unknown bool, err error)
RecognizesData implements the RecognizingDecoder interface.
type SimpleMetaFactory ¶
type SimpleMetaFactory struct { }
Click to show internal directories.
Click to hide internal directories.