server

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

View Source
const WellKnownEstCaCerts = "/.well-known/est/cacerts"
View Source
const (
	ZitiInstanceId = "ziti-instance-id"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientApiFactory

type ClientApiFactory struct {
	InitFunc func(clientApi *ClientApiHandler) error
	// contains filtered or unexported fields
}

func NewClientApiFactory

func NewClientApiFactory(appEnv *env.AppEnv) *ClientApiFactory

func (ClientApiFactory) Binding

func (factory ClientApiFactory) Binding() string

func (ClientApiFactory) New

func (factory ClientApiFactory) New(_ *xweb.ServerConfig, options map[interface{}]interface{}) (xweb.ApiHandler, error)

func (ClientApiFactory) Validate

func (factory ClientApiFactory) Validate(config *xweb.InstanceConfig) error

type ClientApiHandler

type ClientApiHandler struct {
	// contains filtered or unexported fields
}

func NewClientApiHandler

func NewClientApiHandler(ae *env.AppEnv, options map[interface{}]interface{}) (*ClientApiHandler, error)

func (ClientApiHandler) Binding

func (clientApi ClientApiHandler) Binding() string

func (ClientApiHandler) IsDefault

func (clientApi ClientApiHandler) IsDefault() bool

func (ClientApiHandler) IsHandler

func (clientApi ClientApiHandler) IsHandler(r *http.Request) bool

func (ClientApiHandler) Options

func (clientApi ClientApiHandler) Options() map[interface{}]interface{}

func (ClientApiHandler) RootPath

func (clientApi ClientApiHandler) RootPath() string

func (ClientApiHandler) ServeHTTP

func (clientApi ClientApiHandler) ServeHTTP(writer http.ResponseWriter, request *http.Request)

type Controller

type Controller struct {
	AppEnv *env.AppEnv
	// contains filtered or unexported fields
}

func NewController

func NewController(cfg config.Configurable, host env.HostController) (*Controller, error)

func (*Controller) Enabled

func (c *Controller) Enabled() bool

func (*Controller) GetCtrlHandlers

func (c *Controller) GetCtrlHandlers(binding channel.Binding) []channel.TypedReceiveHandler

func (*Controller) GetMgmtHandlers

func (c *Controller) GetMgmtHandlers() []channel.TypedReceiveHandler

func (*Controller) Initialize

func (c *Controller) Initialize()

func (*Controller) IsEnabled

func (c *Controller) IsEnabled() bool

func (*Controller) LoadConfig

func (c *Controller) LoadConfig(cfgmap map[interface{}]interface{}) error

func (*Controller) Run

func (c *Controller) Run()

func (*Controller) SetHostController

func (c *Controller) SetHostController(h env.HostController)

func (*Controller) Shutdown

func (c *Controller) Shutdown()

type ManagementApiFactory

type ManagementApiFactory struct {
	InitFunc func(managementApi *ManagementApiHandler) error
	// contains filtered or unexported fields
}

func NewManagementApiFactory

func NewManagementApiFactory(appEnv *env.AppEnv) *ManagementApiFactory

func (ManagementApiFactory) Binding

func (factory ManagementApiFactory) Binding() string

func (ManagementApiFactory) New

func (factory ManagementApiFactory) New(_ *xweb.ServerConfig, options map[interface{}]interface{}) (xweb.ApiHandler, error)

func (ManagementApiFactory) Validate

func (factory ManagementApiFactory) Validate(_ *xweb.InstanceConfig) error

type ManagementApiHandler

type ManagementApiHandler struct {
	// contains filtered or unexported fields
}

func NewManagementApiHandler

func NewManagementApiHandler(ae *env.AppEnv, options map[interface{}]interface{}) (*ManagementApiHandler, error)

func (ManagementApiHandler) Binding

func (managementApi ManagementApiHandler) Binding() string

func (ManagementApiHandler) IsHandler

func (managementApi ManagementApiHandler) IsHandler(r *http.Request) bool

func (ManagementApiHandler) Options

func (managementApi ManagementApiHandler) Options() map[interface{}]interface{}

func (ManagementApiHandler) RootPath

func (managementApi ManagementApiHandler) RootPath() string

func (ManagementApiHandler) ServeHTTP

func (managementApi ManagementApiHandler) ServeHTTP(writer http.ResponseWriter, request *http.Request)

type OidcApiFactory

type OidcApiFactory struct {
	InitFunc func(*OidcApiHandler) error
	// contains filtered or unexported fields
}

func NewOidcApiFactory

func NewOidcApiFactory(appEnv *env.AppEnv) *OidcApiFactory

func (OidcApiFactory) Binding

func (factory OidcApiFactory) Binding() string

func (OidcApiFactory) New

func (factory OidcApiFactory) New(serverConfig *xweb.ServerConfig, options map[interface{}]interface{}) (xweb.ApiHandler, error)

func (OidcApiFactory) Validate

func (factory OidcApiFactory) Validate(config *xweb.InstanceConfig) error

type OidcApiHandler

type OidcApiHandler struct {
	// contains filtered or unexported fields
}

func NewOidcApiHandler

func NewOidcApiHandler(serverConfig *xweb.ServerConfig, ae *env.AppEnv, options map[interface{}]interface{}) (*OidcApiHandler, error)

func (OidcApiHandler) Binding

func (h OidcApiHandler) Binding() string

func (OidcApiHandler) IsDefault

func (h OidcApiHandler) IsDefault() bool

func (OidcApiHandler) IsHandler

func (h OidcApiHandler) IsHandler(r *http.Request) bool

func (OidcApiHandler) Options

func (h OidcApiHandler) Options() map[interface{}]interface{}

func (OidcApiHandler) RootPath

func (h OidcApiHandler) RootPath() string

func (OidcApiHandler) ServeHTTP

func (h OidcApiHandler) ServeHTTP(writer http.ResponseWriter, request *http.Request)

Jump to

Keyboard shortcuts

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