server

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

Registry is the Prometheus registry for all Tink server gRPC metrics. It is separate from the default registry so that gRPC metrics can be served on a dedicated /tink-server/metrics endpoint.

Functions

This section is empty.

Types

type AutoCapabilities added in v0.19.1

type AutoCapabilities struct {
	Enrollment Enrollment
	Discovery  Discovery
}

type Config

type Config struct {
	Backend grpcinternal.Backend
	// V4 and V6 are the per-family listen addresses.
	V4     listener.Bind
	V6     listener.Bind
	Logger logr.Logger
	Auto   AutoCapabilities
	TLS    TLS
}

func NewConfig

func NewConfig(opts ...Option) *Config

func (*Config) SetBackends added in v0.23.0

func (c *Config) SetBackends(b allInterfaces)

SetBackends is a helper function to set a single backend implementation for all backend interfaces. This is useful for backends that implement multiple interfaces, such as the kube backend.

func (*Config) Start

func (c *Config) Start(ctx context.Context, log logr.Logger) error

type Discovery added in v0.19.1

type Discovery struct {
	Enabled           bool
	Namespace         string
	EnrollmentEnabled bool
	HardwareCreator   grpcinternal.HardwareCreator
	HardwareFilterer  grpcinternal.HardwareFilterer
}

type Enrollment added in v0.19.1

type Enrollment struct {
	Enabled               bool
	WorkflowRuleSetLister grpcinternal.WorkflowRuleSetLister
	WorkflowCreator       grpcinternal.WorkflowCreator
}

type Option

type Option func(*Config)

Option is a functional option type.

func WithAutoDiscoveryAutoEnrollmentEnabled added in v0.19.1

func WithAutoDiscoveryAutoEnrollmentEnabled(enabled bool) Option

WithAutoDiscoveryAutoEnrollmentEnabled sets the value for hardware.spec.auto.enrollmentEnabled when auto discovery creates Hardware objects.

func WithAutoDiscoveryNamespace added in v0.19.0

func WithAutoDiscoveryNamespace(ns string) Option

WithAutoDiscoveryNamespace sets the namespace for auto discovery.

func WithBackend

func WithBackend(b grpcinternal.Backend) Option

WithBackend sets the backend for the server.

func WithBindAddrPort

func WithBindAddrPort(addrPort netip.AddrPort) Option

WithBindAddrPort sets the IPv4 bind address and port for the server.

func WithLogger

func WithLogger(l logr.Logger) Option

WithLogger sets the logger for the server.

func WithTLSCert added in v0.22.0

func WithTLSCert(cert credentials.TransportCredentials) Option

WithTLSCert sets the TLS key file for the server.

type TLS added in v0.22.0

type TLS struct {
	Cert credentials.TransportCredentials
}

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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