Documentation
¶
Index ¶
- Constants
- func ContextAddr(ctx context.Context) string
- func ContextHandlerMiddleware(ctx context.Context) []string
- func ContextHandlerPrefix(ctx context.Context) string
- func ContextHasPluginParent(ctx context.Context, v string) bool
- func ContextParams(ctx context.Context) []string
- func ContextPath(ctx context.Context) string
- func ContextPluginName(ctx context.Context) string
- func ContextUser(ctx context.Context) string
- func ContextVar(ctx context.Context, key string) interface{}
- func ContextVars(ctx context.Context) map[string]interface{}
- func ContextWithAddr(parent context.Context, addr string) context.Context
- func ContextWithAuth(parent context.Context, user string, auth map[string]interface{}) context.Context
- func ContextWithHandler(parent context.Context, handler config.Handler) context.Context
- func ContextWithPathParams(parent context.Context, path string, params []string) context.Context
- func ContextWithPluginName(ctx context.Context, name string) context.Context
- func ContextWithPrefix(ctx context.Context, prefix string) context.Context
- func ContextWithVars(parent context.Context, vars map[string]interface{}) context.Context
- func DumpContext(ctx context.Context) string
- func GetPluginName(path string) (string, error)
- func NewEnvVars(v map[string]interface{}) Env
- func NewProvider(parent context.Context, basepath string, cfg *config.Config) (*provider, error)
- func PluginPath(basepath, path string) string
- type PluginUsageFunc
Constants ¶
View Source
const (
PluginFileExt = ".plugin"
)
Variables ¶
This section is empty.
Functions ¶
func ContextAddr ¶
func ContextHandlerPrefix ¶
func ContextParams ¶
func ContextPath ¶
func ContextPluginName ¶
func ContextUser ¶
func ContextVar ¶ added in v1.0.42
func ContextVars ¶ added in v1.0.42
func ContextWithAuth ¶
func ContextWithHandler ¶
func ContextWithPathParams ¶
func ContextWithPluginName ¶
func ContextWithVars ¶ added in v1.0.42
func DumpContext ¶
func GetPluginName ¶
GetPluginName returns the plugin name from a file path
func NewEnvVars ¶ added in v1.0.42
func NewEnvVars(v map[string]interface{}) Env
func NewProvider ¶
func PluginPath ¶
PluginPath returns absolute path to a plugin or empty string if it can't be located
Types ¶
type PluginUsageFunc ¶
func GetPluginUsage ¶
func GetPluginUsage(path string) (PluginUsageFunc, error)
GetPluginUsage returns the usage function for a plugin
Click to show internal directories.
Click to hide internal directories.