apis

package
v0.5.1-rc3 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServeOptions

type ServeOptions struct {
	SetupOptions

	BindAddress        string
	BindWithDualStack  bool
	TlsMode            TlsMode
	TlsCertFile        string
	TlsPrivateKeyFile  string
	TlsCertDir         string
	TlsAutoCertDomains []string
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer() (*Server, error)

func (*Server) Serve

func (s *Server) Serve(c context.Context, opts ServeOptions) error

func (*Server) Setup

func (s *Server) Setup(ctx context.Context, opts SetupOptions) (http.Handler, error)

type SetupOptions

type SetupOptions struct {
	// Configure from launching.
	EnableAuthn           bool
	ConnQPS               int
	ConnBurst             int
	WebsocketConnMaxPerIP int
	// Derived from configuration.
	K8sConfig   *rest.Config
	ModelClient *model.Client
}

type TlsCertDirMode

type TlsCertDirMode = string
const (
	TlsCertDirByK8sSecrets TlsCertDirMode = "k8s:///secrets"
)

type TlsMode

type TlsMode uint64
const (
	TlsModeDisabled TlsMode = iota
	TlsModeSelfGenerated
	TlsModeAutoGenerated
	TlsModeCustomized
)

Jump to

Keyboard shortcuts

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