Documentation
¶
Index ¶
- Constants
- Variables
- func GetConfig(kubeConfig string) (clientcmd.ClientConfig, error)
- func RancherRESTConfig(ctx context.Context, restConfig *restclient.Config, options config.Options) (*restclient.Config, error)
- func Wait(ctx context.Context, config *rest.Config) error
- type CloudweavServer
- type PostStartHook
- type Router
- type StartHook
Constants ¶
View Source
const ( RancherKubeConfigSecretName = "rancher-kubeconfig" RancherKubeConfigSecretKey = "kubernetes.kubeconfig" )
Variables ¶
View Source
var ( AddToScheme = localSchemeBuilder.AddToScheme Scheme = runtime.NewScheme() )
Functions ¶
func RancherRESTConfig ¶
func RancherRESTConfig(ctx context.Context, restConfig *restclient.Config, options config.Options) (*restclient.Config, error)
Types ¶
type CloudweavServer ¶
type CloudweavServer struct {
Context context.Context
RancherRESTConfig *restclient.Config
RESTConfig *restclient.Config
DynamicClient dynamic.Interface
ClientSet *kubernetes.Clientset
ASL accesscontrol.AccessSetLookup
Handler http.Handler
// contains filtered or unexported fields
}
func New ¶
func New(ctx context.Context, clientConfig clientcmd.ClientConfig, options config.Options) (*CloudweavServer, error)
func (*CloudweavServer) ListenAndServe ¶
func (s *CloudweavServer) ListenAndServe(listenerCfg *dynamiclistener.Config, opts config.Options) error
func (*CloudweavServer) Scaled ¶
func (s *CloudweavServer) Scaled() *config.Scaled
Scaled returns the *config.Scaled, it should call after Start.
type PostStartHook ¶
type StartHook ¶
type StartHook func(context.Context, *steveserver.Server, *steveserver.Controllers, config.Options) error
Click to show internal directories.
Click to hide internal directories.