Documentation ¶
Index ¶
- type ACLResolver
- type Config
- type MockACLResolver
- type Server
- func (s *Server) GetEnvoyBootstrapParams(ctx context.Context, req *pbdataplane.GetEnvoyBootstrapParamsRequest) (*pbdataplane.GetEnvoyBootstrapParamsResponse, error)
- func (s *Server) GetSupportedDataplaneFeatures(ctx context.Context, req *pbdataplane.GetSupportedDataplaneFeaturesRequest) (*pbdataplane.GetSupportedDataplaneFeaturesResponse, error)
- func (s *Server) Register(grpcServer *grpc.Server)
- type StateStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ACLResolver ¶
type ACLResolver interface {
ResolveTokenAndDefaultMeta(string, *acl.EnterpriseMeta, *acl.AuthorizerContext) (resolver.Result, error)
}
type Config ¶
type Config struct { GetStore func() StateStore Logger hclog.Logger ACLResolver ACLResolver // Datacenter of the Consul server this gRPC server is hosted on Datacenter string }
type MockACLResolver ¶
MockACLResolver is an autogenerated mock type for the ACLResolver type
func NewMockACLResolver ¶
func NewMockACLResolver(t testing.TB) *MockACLResolver
NewMockACLResolver creates a new instance of MockACLResolver. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockACLResolver) ResolveTokenAndDefaultMeta ¶
func (_m *MockACLResolver) ResolveTokenAndDefaultMeta(_a0 string, _a1 *acl.EnterpriseMeta, _a2 *acl.AuthorizerContext) (resolver.Result, error)
ResolveTokenAndDefaultMeta provides a mock function with given fields: _a0, _a1, _a2
type Server ¶
type Server struct {
Config
}
func (*Server) GetEnvoyBootstrapParams ¶
func (s *Server) GetEnvoyBootstrapParams(ctx context.Context, req *pbdataplane.GetEnvoyBootstrapParamsRequest) (*pbdataplane.GetEnvoyBootstrapParamsResponse, error)
func (*Server) GetSupportedDataplaneFeatures ¶
func (s *Server) GetSupportedDataplaneFeatures(ctx context.Context, req *pbdataplane.GetSupportedDataplaneFeaturesRequest) (*pbdataplane.GetSupportedDataplaneFeaturesResponse, error)
type StateStore ¶
type StateStore interface {
ServiceNode(string, string, string, *acl.EnterpriseMeta, string) (uint64, *structs.ServiceNode, error)
}
Click to show internal directories.
Click to hide internal directories.