Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompatV1 ¶
type CompatV1 struct {
GetPluginInfo func() papiv1.Info
GetInstance func(user papiv1.UserContext) (papiv1.Plugin, error)
}
CompatV1 is an API interface that is compatible with the V1 API.
type CompatV1Shim ¶
CompatV1Shim is a shim that acts like a plugin server and delegates request to something that implements a V1-style API interface.
func NewCompatV1Rpc ¶
func NewCompatV1Rpc(compatV1 *CompatV1, cliArgs []string) (*CompatV1Shim, error)
NewCompatV1Rpc creates a new CompatV1Shim server.
func (*CompatV1Shim) ServeHTTP ¶
func (h *CompatV1Shim) ServeHTTP(w http.ResponseWriter, r *http.Request)
type GrpcDialer ¶
type GrpcDialer interface {
Dial(ctx context.Context) (*grpc.ClientConn, error)
}
type PluginCli ¶
type PluginCli struct {
KexReqFile *os.File
KexRespFile *os.File
Debug bool
// contains filtered or unexported fields
}
/ PluginCli implements the CLI interface for a Gotify plugin.
func ParsePluginCli ¶
ParsePluginCli parses the CLI arguments and returns a PluginCli instance.
Click to show internal directories.
Click to hide internal directories.