svidstorev1unofficial

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_spire_plugin_agent_svidstore_v1unofficial_svidstore_proto protoreflect.FileDescriptor
View Source
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/v1unofficial/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

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

func (*DeleteX509SVIDRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteX509SVIDRequest.ProtoReflect.Descriptor instead.

func (*DeleteX509SVIDRequest) GetMetadata

func (x *DeleteX509SVIDRequest) GetMetadata() []string

func (*DeleteX509SVIDRequest) ProtoMessage

func (*DeleteX509SVIDRequest) ProtoMessage()

func (*DeleteX509SVIDRequest) ProtoReflect

func (x *DeleteX509SVIDRequest) ProtoReflect() protoreflect.Message

func (*DeleteX509SVIDRequest) Reset

func (x *DeleteX509SVIDRequest) Reset()

func (*DeleteX509SVIDRequest) String

func (x *DeleteX509SVIDRequest) String() string

type DeleteX509SVIDResponse

type DeleteX509SVIDResponse struct {
	// contains filtered or unexported fields
}

func (*DeleteX509SVIDResponse) Descriptor deprecated

func (*DeleteX509SVIDResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteX509SVIDResponse.ProtoReflect.Descriptor instead.

func (*DeleteX509SVIDResponse) ProtoMessage

func (*DeleteX509SVIDResponse) ProtoMessage()

func (*DeleteX509SVIDResponse) ProtoReflect

func (x *DeleteX509SVIDResponse) ProtoReflect() protoreflect.Message

func (*DeleteX509SVIDResponse) Reset

func (x *DeleteX509SVIDResponse) Reset()

func (*DeleteX509SVIDResponse) String

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

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

func (UnimplementedSVIDStoreServer) PutX509SVID

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) Descriptor() ([]byte, []int)

Deprecated: Use X509SVID.ProtoReflect.Descriptor instead.

func (*X509SVID) GetBundle

func (x *X509SVID) GetBundle() [][]byte

func (*X509SVID) GetCertChain

func (x *X509SVID) GetCertChain() [][]byte

func (*X509SVID) GetExpiresAt

func (x *X509SVID) GetExpiresAt() int64

func (*X509SVID) GetPrivateKey

func (x *X509SVID) GetPrivateKey() []byte

func (*X509SVID) GetSpiffeID

func (x *X509SVID) GetSpiffeID() string

func (*X509SVID) ProtoMessage

func (*X509SVID) ProtoMessage()

func (*X509SVID) ProtoReflect

func (x *X509SVID) ProtoReflect() protoreflect.Message

func (*X509SVID) Reset

func (x *X509SVID) Reset()

func (*X509SVID) String

func (x *X509SVID) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL