json

package
v0.0.0-...-f45a054 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONObject

type JSONObject struct {
	// contains filtered or unexported fields
}

func (*JSONObject) ConvertFromObject

func (j *JSONObject) ConvertFromObject(object client.ClientObject) error

ObjectToJSON converts an object to JSON representation Currently it is really up to the caller to know if they're really dealing with JSON or not. If this is called and the object is not JSON, there is no guarantee what will result. The object has a "hint" of the type, but this is not enforced.

func (*JSONObject) ConvertToObject

func (j *JSONObject) ConvertToObject(objectID string, existingObject *client.ClientObject, clientObject any) (*client.ClientObject, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL