api

package
v0.0.0-...-540bb61 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReadinessProbeConfig

type ReadinessProbeConfig struct {
	Enabled bool
	Probe   *probe.ReadyProbe
}

type Server

type Server struct {
	pb.UnimplementedOperatorServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer(cli typedCore.CoreV1Interface, cfg ServerConfig) (*Server, error)

NewServer creates and configure a new Server

func (*Server) GetLogLevel

func (s *Server) GetLogLevel(ctx context.Context, _ *pb.Empty) (*pb.LogLevelConfig, error)

func (*Server) GetVersion

func (s *Server) GetVersion(ctx context.Context, _ *pb.Empty) (*pb.Version, error)

func (*Server) Run

func (s *Server) Run() error

func (*Server) SetLogLevel

func (s *Server) SetLogLevel(ctx context.Context, cfg *pb.LogLevelConfig) (*pb.Empty, error)

type ServerConfig

type ServerConfig struct {
	Namespace                  string
	ServerName                 string
	ServerAltNames             []string
	HTTPAddress                string
	GRPCAddress                string
	TLSSecretName              string
	JWTSecretName              string
	JWTKeySecretName           string
	LivelinessProbe            *probe.LivenessProbe
	ProbeDeployment            ReadinessProbeConfig
	ProbeDeploymentReplication ReadinessProbeConfig
	ProbeStorage               ReadinessProbeConfig
}

ServerConfig settings for the Server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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