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 HarvesterServer
- 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 ¶ added in v0.3.0
func RancherRESTConfig(ctx context.Context, restConfig *restclient.Config, options config.Options) (*restclient.Config, error)
Types ¶
type HarvesterServer ¶
type HarvesterServer 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) (*HarvesterServer, error)
func (*HarvesterServer) ListenAndServe ¶
func (s *HarvesterServer) ListenAndServe(listenerCfg *dynamiclistener.Config, opts config.Options) error
func (*HarvesterServer) Scaled ¶
func (s *HarvesterServer) 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.