Documentation ¶
Index ¶
- Variables
- func RegisterSVIDStoreServer(s grpc.ServiceRegistrar, srv SVIDStoreServer)
- func SVIDStorePluginServer(server SVIDStoreServer) pluginsdk.PluginServer
- type PutX509SVIDRequest
- func (*PutX509SVIDRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PutX509SVIDRequest) GetFederatedBundles() map[string][]byte
- func (x *PutX509SVIDRequest) GetSelectors() []*common.Selector
- func (x *PutX509SVIDRequest) GetSvid() *X509SVID
- func (*PutX509SVIDRequest) ProtoMessage()
- func (x *PutX509SVIDRequest) ProtoReflect() protoreflect.Message
- func (x *PutX509SVIDRequest) Reset()
- func (x *PutX509SVIDRequest) String() string
- type PutX509SVIDResponse
- type SVIDStoreClient
- type SVIDStorePluginClient
- type SVIDStoreServer
- type UnimplementedSVIDStoreServer
- func (UnimplementedSVIDStoreServer) Configure(context.Context, *plugin.ConfigureRequest) (*plugin.ConfigureResponse, error)
- func (UnimplementedSVIDStoreServer) GetPluginInfo(context.Context, *plugin.GetPluginInfoRequest) (*plugin.GetPluginInfoResponse, error)
- func (UnimplementedSVIDStoreServer) PutX509SVID(context.Context, *PutX509SVIDRequest) (*PutX509SVIDResponse, error)
- type UnsafeSVIDStoreServer
- type X509SVID
- func (*X509SVID) Descriptor() ([]byte, []int)deprecated
- func (x *X509SVID) GetBundle() [][]byte
- func (x *X509SVID) GetCertChain() [][]byte
- func (x *X509SVID) GetExpiresAt() int64
- func (x *X509SVID) GetPrivateKey() []byte
- func (x *X509SVID) GetSpiffeID() string
- func (*X509SVID) ProtoMessage()
- func (x *X509SVID) ProtoReflect() protoreflect.Message
- func (x *X509SVID) Reset()
- func (x *X509SVID) String() string
Constants ¶
This section is empty.
Variables ¶
var File_spire_plugin_agent_svidstore_v1_svidstore_proto protoreflect.FileDescriptor
var SVIDStore_ServiceDesc = grpc.ServiceDesc{ ServiceName: "spire.agent.svidstore.SVIDStore", HandlerType: (*SVIDStoreServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "PutX509SVID", Handler: _SVIDStore_PutX509SVID_Handler, }, { MethodName: "Configure", Handler: _SVIDStore_Configure_Handler, }, { MethodName: "GetPluginInfo", Handler: _SVIDStore_GetPluginInfo_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "spire/plugin/agent/svidstore/v1/svidstore.proto", }
SVIDStore_ServiceDesc is the grpc.ServiceDesc for SVIDStore service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSVIDStoreServer ¶
func RegisterSVIDStoreServer(s grpc.ServiceRegistrar, srv SVIDStoreServer)
func SVIDStorePluginServer ¶
func SVIDStorePluginServer(server SVIDStoreServer) pluginsdk.PluginServer
Types ¶
type PutX509SVIDRequest ¶
type PutX509SVIDRequest struct { // X509-SVID to be stored Svid *X509SVID `protobuf:"bytes,1,opt,name=svid,proto3" json:"svid,omitempty"` // Entry selectors with relevant information to store on specific platform Selectors []*common.Selector `protobuf:"bytes,2,rep,name=selectors,proto3" json:"selectors,omitempty"` // Federated bundles to store FederatedBundles map[string][]byte `` /* 197-byte string literal not displayed */ // contains filtered or unexported fields }
func (*PutX509SVIDRequest) Descriptor
deprecated
func (*PutX509SVIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use PutX509SVIDRequest.ProtoReflect.Descriptor instead.
func (*PutX509SVIDRequest) GetFederatedBundles ¶
func (x *PutX509SVIDRequest) GetFederatedBundles() map[string][]byte
func (*PutX509SVIDRequest) GetSelectors ¶
func (x *PutX509SVIDRequest) GetSelectors() []*common.Selector
func (*PutX509SVIDRequest) GetSvid ¶
func (x *PutX509SVIDRequest) GetSvid() *X509SVID
func (*PutX509SVIDRequest) ProtoMessage ¶
func (*PutX509SVIDRequest) ProtoMessage()
func (*PutX509SVIDRequest) ProtoReflect ¶
func (x *PutX509SVIDRequest) ProtoReflect() protoreflect.Message
func (*PutX509SVIDRequest) Reset ¶
func (x *PutX509SVIDRequest) Reset()
func (*PutX509SVIDRequest) String ¶
func (x *PutX509SVIDRequest) String() string
type PutX509SVIDResponse ¶
type PutX509SVIDResponse struct {
// contains filtered or unexported fields
}
func (*PutX509SVIDResponse) Descriptor
deprecated
func (*PutX509SVIDResponse) Descriptor() ([]byte, []int)
Deprecated: Use PutX509SVIDResponse.ProtoReflect.Descriptor instead.
func (*PutX509SVIDResponse) ProtoMessage ¶
func (*PutX509SVIDResponse) ProtoMessage()
func (*PutX509SVIDResponse) ProtoReflect ¶
func (x *PutX509SVIDResponse) ProtoReflect() protoreflect.Message
func (*PutX509SVIDResponse) Reset ¶
func (x *PutX509SVIDResponse) Reset()
func (*PutX509SVIDResponse) String ¶
func (x *PutX509SVIDResponse) String() string
type SVIDStoreClient ¶
type SVIDStoreClient interface { // Puts an X509-SVID in a configured secrets store PutX509SVID(ctx context.Context, in *PutX509SVIDRequest, opts ...grpc.CallOption) (*PutX509SVIDResponse, error) // Applies the plugin configuration and returns configuration errors Configure(ctx context.Context, in *plugin.ConfigureRequest, opts ...grpc.CallOption) (*plugin.ConfigureResponse, error) // Returns the version and related metadata of the plugin GetPluginInfo(ctx context.Context, in *plugin.GetPluginInfoRequest, opts ...grpc.CallOption) (*plugin.GetPluginInfoResponse, error) }
SVIDStoreClient is the client API for SVIDStore service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewSVIDStoreClient ¶
func NewSVIDStoreClient(cc grpc.ClientConnInterface) SVIDStoreClient
type SVIDStorePluginClient ¶
type SVIDStorePluginClient struct {
SVIDStoreClient
}
func (*SVIDStorePluginClient) GRPCServiceName ¶
func (c *SVIDStorePluginClient) GRPCServiceName() string
func (*SVIDStorePluginClient) InitClient ¶
func (c *SVIDStorePluginClient) InitClient(conn grpc.ClientConnInterface) interface{}
func (*SVIDStorePluginClient) IsInitialized ¶
func (c *SVIDStorePluginClient) IsInitialized() bool
func (SVIDStorePluginClient) Type ¶
func (s SVIDStorePluginClient) Type() string
type SVIDStoreServer ¶
type SVIDStoreServer interface { // Puts an X509-SVID in a configured secrets store PutX509SVID(context.Context, *PutX509SVIDRequest) (*PutX509SVIDResponse, error) // Applies the plugin configuration and returns configuration errors Configure(context.Context, *plugin.ConfigureRequest) (*plugin.ConfigureResponse, error) // Returns the version and related metadata of the plugin GetPluginInfo(context.Context, *plugin.GetPluginInfoRequest) (*plugin.GetPluginInfoResponse, error) // contains filtered or unexported methods }
SVIDStoreServer is the server API for SVIDStore service. All implementations must embed UnimplementedSVIDStoreServer for forward compatibility
type UnimplementedSVIDStoreServer ¶
type UnimplementedSVIDStoreServer struct { }
UnimplementedSVIDStoreServer must be embedded to have forward compatible implementations.
func (UnimplementedSVIDStoreServer) Configure ¶
func (UnimplementedSVIDStoreServer) Configure(context.Context, *plugin.ConfigureRequest) (*plugin.ConfigureResponse, error)
func (UnimplementedSVIDStoreServer) GetPluginInfo ¶
func (UnimplementedSVIDStoreServer) GetPluginInfo(context.Context, *plugin.GetPluginInfoRequest) (*plugin.GetPluginInfoResponse, error)
func (UnimplementedSVIDStoreServer) PutX509SVID ¶
func (UnimplementedSVIDStoreServer) PutX509SVID(context.Context, *PutX509SVIDRequest) (*PutX509SVIDResponse, error)
type UnsafeSVIDStoreServer ¶
type UnsafeSVIDStoreServer interface {
// contains filtered or unexported methods
}
UnsafeSVIDStoreServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SVIDStoreServer will result in compilation errors.
type X509SVID ¶
type X509SVID struct { // SPIFFE ID of the SVID. SpiffeID string `protobuf:"bytes,1,opt,name=spiffeID,proto3" json:"spiffeID,omitempty"` // Certificate and intermediates (ASN.1 DER encoded) CertChain [][]byte `protobuf:"bytes,2,rep,name=cert_chain,json=certChain,proto3" json:"cert_chain,omitempty"` // Private key (ASN.1 DER encoded) PrivateKey []byte `protobuf:"bytes,3,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` // Bundle certificates (ASN.1 DER encoded) Bundle [][]byte `protobuf:"bytes,4,rep,name=bundle,proto3" json:"bundle,omitempty"` // Expiration timestamp (seconds since Unix epoch). ExpiresAt int64 `protobuf:"varint,5,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` // contains filtered or unexported fields }
func (*X509SVID) Descriptor
deprecated
func (*X509SVID) GetCertChain ¶
func (*X509SVID) GetExpiresAt ¶
func (*X509SVID) GetPrivateKey ¶
func (*X509SVID) GetSpiffeID ¶
func (*X509SVID) ProtoMessage ¶
func (*X509SVID) ProtoMessage()
func (*X509SVID) ProtoReflect ¶
func (x *X509SVID) ProtoReflect() protoreflect.Message