preinstall

package
v0.0.0-...-9be0976 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiInstallConfigure

type ApiInstallConfigure struct {
	DefaultInstallConfigure
}

func InitApi

func InitApi(sampling int, name, version, tracingAddr string) (web.Service, *ApiInstallConfigure, error)

InitApi init a api

func InitService

func InitService(name, version string) (micro.Service, *ApiInstallConfigure)

InitService init a Service

type DefaultInstallConfigure

type DefaultInstallConfigure struct {
	// configure server address
	Addr string
	// system config
	SystemConfig config.Config
	// custom system config server for etcd
	SystemConfigServer *common.ConfigServer
	//K8sConfig          *K8sConfig
	// kubernetes
	RestConfig *rest.Config
	ClientV1   *kubernetes.Clientset
	ClientV2   *clientv2.CacheInformerFactory
}

func NewDefaultInstallConfigure

func NewDefaultInstallConfigure(addr string, mode string) (*DefaultInstallConfigure, error)

type GateWayInstallConfigure

type GateWayInstallConfigure struct {
	DefaultInstallConfigure
	Token     *token.Token
	Whitelist *whitelist.Whitelist
}

func InitGatewayInstallConfigure

func InitGatewayInstallConfigure(name string, check auth.PrivateCheckerType, loginHandle http.Handler, microPlugins ...plugin.Plugin) (*GateWayInstallConfigure, error)

InitGateWay init a gateway

type K8sConfig

type K8sConfig struct {
	Name   string                `json:"name"`
	Config clientcmdapiV1.Config `json:"config"`
}

type ServiceInstallConfigure

type ServiceInstallConfigure struct {
	DefaultInstallConfigure
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL