8272edda96
* Logs Drilldown(app-platform): add LogsDrilldownDefaultColumns api --------- Co-authored-by: L2D2Grafana <liza.detrick@grafana.com> Co-authored-by: Austin Pond <austin.pond@grafana.com>
29 lines
721 B
Go
Generated
29 lines
721 B
Go
Generated
//
|
|
// Code generated by grafana-app-sdk. DO NOT EDIT.
|
|
//
|
|
|
|
package v1alpha1
|
|
|
|
import (
|
|
"encoding/json"
|
|
"io"
|
|
|
|
"github.com/grafana/grafana-app-sdk/resource"
|
|
)
|
|
|
|
// JSONCodec is an implementation of resource.Codec for kubernetes JSON encoding
|
|
type JSONCodec struct{}
|
|
|
|
// Read reads JSON-encoded bytes from `reader` and unmarshals them into `into`
|
|
func (*JSONCodec) Read(reader io.Reader, into resource.Object) error {
|
|
return json.NewDecoder(reader).Decode(into)
|
|
}
|
|
|
|
// Write writes JSON-encoded bytes into `writer` marshaled from `from`
|
|
func (*JSONCodec) Write(writer io.Writer, from resource.Object) error {
|
|
return json.NewEncoder(writer).Encode(from)
|
|
}
|
|
|
|
// Interface compliance checks
|
|
var _ resource.Codec = &JSONCodec{}
|