libnetwork/drivers/bridge/internal/rlkclient/rootlesskit_client_linux.go
Function NewPortDriverClient
has 7 return statements (exceeds 4 allowed). Open
Open
func NewPortDriverClient(ctx context.Context) (*PortDriverClient, error) {
stateDir := os.Getenv("ROOTLESSKIT_STATE_DIR")
if stateDir == "" {
return nil, errors.New("$ROOTLESSKIT_STATE_DIR needs to be set")
}
Method PortDriverClient.AddPort
has 6 return statements (exceeds 4 allowed). Open
Open
func (c *PortDriverClient) AddPort(
ctx context.Context,
proto string,
hostIP netip.Addr,
childIP netip.Addr,
Method PortDriverClient.AddPort
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ctx context.Context,
proto string,
hostIP netip.Addr,
childIP netip.Addr,
hostPort int,