apis

package
v0.3.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: Apache-2.0 Imports: 37 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
	// Derived from configuration.
	K8sConfig    *rest.Config
	ModelClient  *model.Client
	TlsCertified bool
}

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