sbcs

package
v0.0.0-...-1fec092 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSbcNotFound error = errors.New("SBC not found")

Functions

func New

func New(input *Input) *client

New returns a new SBC client

Types

type Client

type Client interface {
	AssignSbc() *Sbc
	GetSbc(id string) (*Sbc, bool)
}

type Config

type Config struct {
	Namespace string
}

type Input

type Input struct {
	Ctx           context.Context
	Config        *Config
	Logger        *zap.SugaredLogger
	SbcV1Client   clientsetv1.SbcV1Interface
	SbcV1Informer informerv1.SBCInformer
}

type Sbc

type Sbc struct {
	Obj  *v1.SBC
	Conn *net.UDPConn
}

Jump to

Keyboard shortcuts

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