Documentation
¶
Overview ¶
Package platform exposes deployment capabilities and bounded, cached probes.
Index ¶
- func Gate(register func(grpc.ServiceRegistrar), ...) func(grpc.ServiceRegistrar)
- type Probe
- type Service
- func (s *Service) GetCapabilities(context.Context, *consolev1.GetCapabilitiesRequest) (*consolev1.GetCapabilitiesResponse, error)
- func (s *Service) GetInfrastructure(context.Context, *consolev1.GetInfrastructureRequest) (*consolev1.GetInfrastructureResponse, error)
- func (s *Service) Register(r grpc.ServiceRegistrar)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Gate ¶
func Gate(register func(grpc.ServiceRegistrar), disabled func(service, method string) bool, ) func(grpc.ServiceRegistrar)
Gate rejects only disabled runtime methods. Definitions remain accessible.
Types ¶
type Service ¶
type Service struct {
consolev1.UnimplementedPlatformServiceServer
deps.Component
// contains filtered or unexported fields
}
Service keeps per-replica health; requests never probe external systems.
func New ¶
func New(parent deps.Scope, instance string, capabilities []*consolev1.Capability, probes []Probe) *Service
New starts at most one bounded probe per dependency every five seconds.
func (*Service) GetCapabilities ¶
func (s *Service) GetCapabilities(context.Context, *consolev1.GetCapabilitiesRequest) (*consolev1.GetCapabilitiesResponse, error, )
GetCapabilities returns immutable deployment configuration.
func (*Service) GetInfrastructure ¶
func (s *Service) GetInfrastructure(context.Context, *consolev1.GetInfrastructureRequest) (*consolev1.GetInfrastructureResponse, error, )
GetInfrastructure returns the most recent completed checks.
func (*Service) Register ¶
func (s *Service) Register(r grpc.ServiceRegistrar)
Register serves the authenticated platform API.
Click to show internal directories.
Click to hide internal directories.