//
// Code generated by grafana-app-sdk. DO NOT EDIT.
//

package v1alpha1

import (
	"github.com/grafana/grafana-app-sdk/resource"
)

// schema is unexported to prevent accidental overwrites
var (
	schemaChannel = resource.NewSimpleSchema("live.grafana.app", "v1alpha1", NewChannel(), &ChannelList{}, resource.WithKind("Channel"),
		resource.WithPlural("channels"), resource.WithScope(resource.NamespacedScope))
	kindChannel = resource.Kind{
		Schema: schemaChannel,
		Codecs: map[resource.KindEncoding]resource.Codec{
			resource.KindEncodingJSON: &ChannelJSONCodec{},
		},
	}
)

// Kind returns a resource.Kind for this Schema with a JSON codec
func ChannelKind() resource.Kind {
	return kindChannel
}

// Schema returns a resource.SimpleSchema representation of Channel
func ChannelSchema() *resource.SimpleSchema {
	return schemaChannel
}

// Interface compliance checks
var _ resource.Schema = kindChannel
