Documentation
¶
Index ¶
- func ConvertAnyToInterface(anyValue *anypb.Any) (interface{}, error)
- func ConvertInterfaceToAny(v interface{}) (*anypb.Any, error)
- func DeexpandTilde(path string) string
- func ExpandTilde(path string) (string, error)
- func GetPluginStorePath(pluginID string) (string, error)
- func GetStore(capability, pluginID string) (*os.File, error)
- func InitializePluginStore(pluginID string) error
- func NewServerInterceptors(log logging.Logger) ([]grpc.UnaryServerInterceptor, []grpc.StreamServerInterceptor)
- func RegisterServerOpts(opts []grpc.ServerOption, log logging.Logger) []grpc.ServerOption
- func RemoveStore(capability, pluginID string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertAnyToInterface ¶
func ConvertInterfaceToAny ¶
func DeexpandTilde ¶
DeexpandTilde takes a path and if it is in the home directory, it will replace it with a ~.
func ExpandTilde ¶
ExpandTilde takes a path and if it starts with a ~, it will replace it with the home directory.
func GetPluginStorePath ¶
GetPluginStorePath returns a validated store path for an installed plugin. SDK operations use directory handles rather than reopening this advisory path.
func InitializePluginStore ¶
InitializePluginStore creates the private store for an installed plugin.
func NewServerInterceptors ¶
func NewServerInterceptors(log logging.Logger) ([]grpc.UnaryServerInterceptor, []grpc.StreamServerInterceptor)
NewServerInterceptors returns the default unary and stream interceptor chains for the plugin SDK gRPC server.
func RegisterServerOpts ¶
func RegisterServerOpts(opts []grpc.ServerOption, log logging.Logger) []grpc.ServerOption
RegisterServerOpts returns a list of gRPC server options with the necessary interceptors for the plugin SDK.
func RemoveStore ¶
RemoveStore removes only the selected plugin's capability store.
Types ¶
This section is empty.