Documentation ¶
Index ¶
- Variables
- func DefaultAPIResourceConfigSource() *serverstorage.ResourceConfig
- func NewGRDRESTOptionsGetter(etcdOptions options.EtcdOptions) (genericregistry.RESTOptionsGetter, error)
- func NewGrafanaResourceDefinitionHandler(versionDiscoveryHandler *versionDiscoveryHandler, ...) (*grdHandler, error)
- type CompletedConfig
- type Config
- type DiscoveryController
- type ExtraConfig
- type GrafanaAPIServer
- type UnstructuredObjectTyper
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Scheme = runtime.NewScheme() Codecs = serializer.NewCodecFactory(Scheme) )
Functions ¶
func DefaultAPIResourceConfigSource ¶
func DefaultAPIResourceConfigSource() *serverstorage.ResourceConfig
func NewGRDRESTOptionsGetter ¶
func NewGRDRESTOptionsGetter(etcdOptions options.EtcdOptions) (genericregistry.RESTOptionsGetter, error)
func NewGrafanaResourceDefinitionHandler ¶
func NewGrafanaResourceDefinitionHandler( versionDiscoveryHandler *versionDiscoveryHandler, groupDiscoveryHandler *groupDiscoveryHandler, grdInformer informers.GrafanaResourceDefinitionInformer, delegate http.Handler, restOptionsGetter generic.RESTOptionsGetter, admission admission.Interface, establishingController *establish.EstablishingController, masterCount int, authorizer authorizer.Authorizer, requestTimeout time.Duration, minRequestTimeout time.Duration, staticOpenAPISpec map[string]*spec.Schema, maxRequestBodyBytes int64) (*grdHandler, error)
Types ¶
type CompletedConfig ¶
type CompletedConfig struct {
// contains filtered or unexported fields
}
CompletedConfig embeds a private pointer that cannot be instantiated outside of this package.
func (CompletedConfig) New ¶
func (c CompletedConfig) New(delegationTarget genericapiserver.DelegationTarget) (*GrafanaAPIServer, error)
New returns a new instance of GrafanaAPIServer from the given config.
type Config ¶
type Config struct { GenericConfig *genericapiserver.RecommendedConfig ExtraConfig ExtraConfig }
Config defines the config for the apiserver
func (*Config) Complete ¶
func (cfg *Config) Complete() CompletedConfig
Complete fills in any fields not set that are required to have valid data. It's mutating the receiver.
type DiscoveryController ¶
type DiscoveryController struct {
// contains filtered or unexported fields
}
func NewDiscoveryController ¶
func NewDiscoveryController( grdInformer informers.GrafanaResourceDefinitionInformer, versionHandler *versionDiscoveryHandler, groupHandler *groupDiscoveryHandler, resourceManager discoveryendpoint.ResourceManager, ) *DiscoveryController
func (*DiscoveryController) Run ¶
func (c *DiscoveryController) Run(stopCh <-chan struct{}, synchedCh chan<- struct{})
type ExtraConfig ¶
type ExtraConfig struct { RESTOptionsGetter genericregistry.RESTOptionsGetter // MasterCount is used to detect whether cluster is HA, and if it is // the GRD Establishing will be hold by 5 seconds. MasterCount int RemoteKubeConfig *clientRest.Config }
ExtraConfig holds custom apiserver config
type GrafanaAPIServer ¶
type GrafanaAPIServer struct { GenericAPIServer *genericapiserver.GenericAPIServer // provided for easier embedding Informers externalinformers.SharedInformerFactory }
GrafanaAPIServer contains state for a Kubernetes cluster master/api server.
type UnstructuredObjectTyper ¶
type UnstructuredObjectTyper struct { Delegate runtime.ObjectTyper UnstructuredTyper runtime.ObjectTyper }
Click to show internal directories.
Click to hide internal directories.