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)
Click to show internal directories.
Click to hide internal directories.