service

package
v0.0.0-...-10084c7 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2025 License: Apache-2.0 Imports: 58 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatchLabels

func MatchLabels(candidate map[string]string, target map[string]string) int

func NewSelfSignedCertificate

func NewSelfSignedCertificate(commonName string, dnsnames []string, ipaddresses []net.IP) (*tls.Certificate, error)

Types

type ControllerService

type ControllerService struct {
	pb.UnimplementedControllerServiceServer
	Client       client.WithWatch
	Scheme       *runtime.Scheme
	Authn        authentication.ContextAuthenticator
	Authz        authorizer.Authorizer
	Attr         authorization.ContextAttributesGetter
	ServerOption grpc.ServerOption
	Router       config.Router
	// contains filtered or unexported fields
}

ControllerService exposes a gRPC service

func (*ControllerService) Dial

func (*ControllerService) GetLease

func (*ControllerService) ListLeases

func (*ControllerService) Listen

func (*ControllerService) Register

func (*ControllerService) ReleaseLease

func (*ControllerService) RequestLease

func (*ControllerService) SetupWithManager

func (s *ControllerService) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

func (*ControllerService) Start

func (s *ControllerService) Start(ctx context.Context) error

func (*ControllerService) Status

Status is a stream of status updates for the exporter. It is used to:

  • Notify the exporter of the current status of the lease
  • Track the exporter's last seen time

func (*ControllerService) Unregister

func (s *ControllerService) Unregister(
	ctx context.Context,
	req *pb.UnregisterRequest,
) (
	*pb.UnregisterResponse,
	error,
)

type DashboardService

type DashboardService struct {
	client.Client
	Scheme *runtime.Scheme
}

func (*DashboardService) NeedLeaderElection

func (s *DashboardService) NeedLeaderElection() bool

func (*DashboardService) SetupWithManager

func (s *DashboardService) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

func (*DashboardService) Start

func (s *DashboardService) Start(ctx context.Context) error

type OIDCService

type OIDCService struct {
	Signer *oidc.Signer
	Cert   *tls.Certificate
}

RouterService exposes a gRPC service

func (*OIDCService) NeedLeaderElection

func (s *OIDCService) NeedLeaderElection() bool

func (*OIDCService) SetupWithManager

func (s *OIDCService) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

func (*OIDCService) Start

func (s *OIDCService) Start(ctx context.Context) error

type RouterService

type RouterService struct {
	pb.UnimplementedRouterServiceServer
	ServerOption grpc.ServerOption
	// contains filtered or unexported fields
}

RouterService exposes a gRPC service

func (*RouterService) SetupWithManager

func (s *RouterService) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

func (*RouterService) Start

func (s *RouterService) Start(ctx context.Context) error

func (*RouterService) Stream

Directories

Path Synopsis
client
v1

Jump to

Keyboard shortcuts

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