f5eac39ea ("feature/acme, ipn/ipnlocal: start moving ACME/cert state
into an extension") started to move the cert code into feature/acme
but was meant as a baby step.
This goes further, moving almost everything, leaving only some hooks
in ipnlocal.
When we later move "serve" support out to feature/serve, this will
look a bit different in that the hooks currently in ipnlocal will move
to feature/serve (cert support already depends on serve).
As part of this, cert-related tests move to feaure/acme too, which
means some test infra from ipnlocal now moves to shared ipnlocaltest.
(it's not big at the moment, but I imagine it growing)
Updates #12614
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
Change-Id: I9ea89aa9754f12d54b81751b6bd830f2664241ff
38 lines
954 B
Go
38 lines
954 B
Go
// Copyright (c) Tailscale Inc & contributors
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
//go:build ts_omit_serve
|
|
|
|
// These are temporary (2025-09-13) stubs for when tailscaled is built with the
|
|
// ts_omit_serve build tag, disabling serve.
|
|
//
|
|
// TODO: move serve to a separate package, out of ipnlocal, and delete this
|
|
// file. One step at a time.
|
|
|
|
package ipnlocal
|
|
|
|
import (
|
|
"tailscale.com/ipn"
|
|
"tailscale.com/tailcfg"
|
|
)
|
|
|
|
const serveEnabled = false
|
|
|
|
type localListener = struct{}
|
|
|
|
func (b *LocalBackend) DeleteForegroundSession(sessionID string) error {
|
|
return nil
|
|
}
|
|
|
|
type funnelFlow = struct{}
|
|
|
|
func (*LocalBackend) hasIngressEnabledLocked() bool { return false }
|
|
func (*LocalBackend) shouldWireInactiveIngressLocked() bool { return false }
|
|
func (*LocalBackend) HasFunnelForHostPort(host string, port uint16) bool {
|
|
return false
|
|
}
|
|
|
|
func (b *LocalBackend) vipServicesFromPrefsLocked(prefs ipn.PrefsView) []*tailcfg.VIPService {
|
|
return nil
|
|
}
|