README
¶
Norman
An API framework for Building Rancher Style APIs backed by K8s CustomResources and their controllers.
Example
Refer to https://github.com/rancher/go-skel for skeleton norman controller projects
License
Copyright (c) 2014-2017 Rancher Labs, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientFactory ¶
type Config ¶
type Config struct { Name string DisableAPI bool Schemas []*types.Schemas CRDs map[*types.APIVersion][]string Clients []ClientFactory ClientGetter proxy.ClientGetter CRDStorageContext types.StorageContext K8sClient kubernetes.Interface APIExtClient clientset.Interface Config *rest.Config LeaderLockNamespace string KubeConfig string IgnoredKubeConfigEnv bool Threadiness int K3s K3sConfig CustomizeSchemas func(context.Context, proxy.ClientGetter, *types.Schemas) error GlobalSetup func(context.Context) (context.Context, error) MasterSetup func(context.Context) (context.Context, error) PreStart func(context.Context) error APISetup func(context.Context, *api.Server) error PerServerControllers []ControllerRegister MasterControllers []ControllerRegister }
type ControllerRegister ¶
type K3sConfig ¶
type K3sConfig struct { DataDir string RemoteDialerAuthorizer remotedialer.Authorizer }