Documentation ¶
Index ¶
- Variables
- func RegisterSVIDStoreServer(s grpc.ServiceRegistrar, srv SVIDStoreServer)
- func SVIDStorePluginServer(server SVIDStoreServer) pluginsdk.PluginServer
- type DeleteX509SVIDRequest
- func (*DeleteX509SVIDRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteX509SVIDRequest) GetMetadata() []string
- func (*DeleteX509SVIDRequest) ProtoMessage()
- func (x *DeleteX509SVIDRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteX509SVIDRequest) Reset()
- func (x *DeleteX509SVIDRequest) String() string
- type DeleteX509SVIDResponse
- type PutX509SVIDRequest
- func (*PutX509SVIDRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PutX509SVIDRequest) GetFederatedBundles() map[string][]byte
- func (x *PutX509SVIDRequest) GetMetadata() []string
- 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
- 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: "DeleteX509SVID", Handler: _SVIDStore_DeleteX509SVID_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 DeleteX509SVIDRequest ¶ added in v1.1.0
type DeleteX509SVIDRequest struct { // Relevant information to delete on specific platform Metadata []string `protobuf:"bytes,1,rep,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
func (*DeleteX509SVIDRequest) Descriptor
deprecated
added in
v1.1.0
func (*DeleteX509SVIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteX509SVIDRequest.ProtoReflect.Descriptor instead.
func (*DeleteX509SVIDRequest) GetMetadata ¶ added in v1.1.0
func (x *DeleteX509SVIDRequest) GetMetadata() []string
func (*DeleteX509SVIDRequest) ProtoMessage ¶ added in v1.1.0
func (*DeleteX509SVIDRequest) ProtoMessage()
func (*DeleteX509SVIDRequest) ProtoReflect ¶ added in v1.1.0
func (x *DeleteX509SVIDRequest) ProtoReflect() protoreflect.Message
func (*DeleteX509SVIDRequest) Reset ¶ added in v1.1.0
func (x *DeleteX509SVIDRequest) Reset()
func (*DeleteX509SVIDRequest) String ¶ added in v1.1.0
func (x *DeleteX509SVIDRequest) String() string
type DeleteX509SVIDResponse ¶ added in v1.1.0
type DeleteX509SVIDResponse struct {
// contains filtered or unexported fields
}
func (*DeleteX509SVIDResponse) Descriptor
deprecated
added in
v1.1.0
func (*DeleteX509SVIDResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteX509SVIDResponse.ProtoReflect.Descriptor instead.
func (*DeleteX509SVIDResponse) ProtoMessage ¶ added in v1.1.0
func (*DeleteX509SVIDResponse) ProtoMessage()
func (*DeleteX509SVIDResponse) ProtoReflect ¶ added in v1.1.0
func (x *DeleteX509SVIDResponse) ProtoReflect() protoreflect.Message
func (*DeleteX509SVIDResponse) Reset ¶ added in v1.1.0
func (x *DeleteX509SVIDResponse) Reset()
func (*DeleteX509SVIDResponse) String ¶ added in v1.1.0
func (x *DeleteX509SVIDResponse) String() string
type PutX509SVIDRequest ¶
type PutX509SVIDRequest struct { // X509-SVID to be stored Svid *X509SVID `protobuf:"bytes,1,opt,name=svid,proto3" json:"svid,omitempty"` // Relevant information to store on specific platform Metadata []string `protobuf:"bytes,2,rep,name=metadata,proto3" json:"metadata,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) GetMetadata ¶ added in v1.1.0
func (x *PutX509SVIDRequest) GetMetadata() []string
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) // Deletes an SVID from the store DeleteX509SVID(ctx context.Context, in *DeleteX509SVIDRequest, opts ...grpc.CallOption) (*DeleteX509SVIDResponse, 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) // Deletes an SVID from the store DeleteX509SVID(context.Context, *DeleteX509SVIDRequest) (*DeleteX509SVIDResponse, 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) DeleteX509SVID ¶ added in v1.1.0
func (UnimplementedSVIDStoreServer) DeleteX509SVID(context.Context, *DeleteX509SVIDRequest) (*DeleteX509SVIDResponse, 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