Documentation
¶
Index ¶
- Constants
- type CSR
- type Handler
- func (h *Handler) Attest(stream node.Node_AttestServer) (err error)
- func (h *Handler) AuthorizeCall(ctx context.Context, fullMethod string) (context.Context, error)
- func (h *Handler) FetchBundle(ctx context.Context, req *node.FetchBundleRequest) (_ *node.FetchBundleResponse, err error)
- func (h *Handler) FetchJWTSVID(ctx context.Context, req *node.FetchJWTSVIDRequest) (resp *node.FetchJWTSVIDResponse, err error)
- func (h *Handler) FetchX509CASVID(ctx context.Context, req *node.FetchX509CASVIDRequest) (_ *node.FetchX509CASVIDResponse, err error)
- func (h *Handler) FetchX509SVID(server node.Node_FetchX509SVIDServer) (err error)
- func (h *Handler) PushJWTKeyUpstream(ctx context.Context, req *node.PushJWTKeyUpstreamRequest) (resp *node.PushJWTKeyUpstreamResponse, err error)
- type HandlerConfig
- type Limiter
Constants ¶
View Source
const ( AttestMsg = iota CSRMsg JSRMsg PushJWTKey )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(config HandlerConfig) (*Handler, error)
func (*Handler) Attest ¶
func (h *Handler) Attest(stream node.Node_AttestServer) (err error)
Attest attests the node and gets the base node SVID.
func (*Handler) AuthorizeCall ¶
func (*Handler) FetchBundle ¶ added in v0.10.0
func (h *Handler) FetchBundle(ctx context.Context, req *node.FetchBundleRequest) (_ *node.FetchBundleResponse, err error)
func (*Handler) FetchJWTSVID ¶
func (h *Handler) FetchJWTSVID(ctx context.Context, req *node.FetchJWTSVIDRequest) (resp *node.FetchJWTSVIDResponse, err error)
func (*Handler) FetchX509CASVID ¶
func (h *Handler) FetchX509CASVID(ctx context.Context, req *node.FetchX509CASVIDRequest) (_ *node.FetchX509CASVIDResponse, err error)
func (*Handler) FetchX509SVID ¶
func (h *Handler) FetchX509SVID(server node.Node_FetchX509SVIDServer) (err error)
FetchX509SVID gets Workload, Agent certs and CA trust bundles. Also used for rotation Base Node SVID or the Registered Node SVID used for this call. List can be empty to allow Node Agent cache refresh).
func (*Handler) PushJWTKeyUpstream ¶ added in v0.10.0
func (h *Handler) PushJWTKeyUpstream(ctx context.Context, req *node.PushJWTKeyUpstreamRequest) (resp *node.PushJWTKeyUpstreamResponse, err error)
type HandlerConfig ¶
Click to show internal directories.
Click to hide internal directories.