Documentation
¶
Index ¶
- type Config
- type MyUpstreamCA
- func (p *MyUpstreamCA) Configure(ctx context.Context, req *spi.ConfigureRequest) (*spi.ConfigureResponse, error)
- func (p *MyUpstreamCA) GetPluginInfo(context.Context, *spi.GetPluginInfoRequest) (*spi.GetPluginInfoResponse, error)
- func (p *MyUpstreamCA) SetLogger(logger hclog.Logger)
- func (p *MyUpstreamCA) SubmitCSR(ctx context.Context, req *upstreamca.SubmitCSRRequest) (*upstreamca.SubmitCSRResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ExampleString string `hcl:"example_string"`
}
Config contains the configuration fields for the plugin.
type MyUpstreamCA ¶
type MyUpstreamCA struct {
}
MyUpstreamCA implements the upstream.Plugin interface.
func New ¶
func New() *MyUpstreamCA
func (*MyUpstreamCA) Configure ¶
func (p *MyUpstreamCA) Configure(ctx context.Context, req *spi.ConfigureRequest) (*spi.ConfigureResponse, error)
func (*MyUpstreamCA) GetPluginInfo ¶
func (p *MyUpstreamCA) GetPluginInfo(context.Context, *spi.GetPluginInfoRequest) (*spi.GetPluginInfoResponse, error)
func (*MyUpstreamCA) SetLogger ¶
func (p *MyUpstreamCA) SetLogger(logger hclog.Logger)
SetLogger is an optional method. If present, the plugin loading code will provide your plugin implementation with a logger wired up to the SPIRE logger.
func (*MyUpstreamCA) SubmitCSR ¶
func (p *MyUpstreamCA) SubmitCSR(ctx context.Context, req *upstreamca.SubmitCSRRequest) (*upstreamca.SubmitCSRResponse, error)
Click to show internal directories.
Click to hide internal directories.