mirror of
https://github.com/tailscale/tailscale.git
synced 2025-09-21 13:41:46 +02:00
logpolicy: remove the deprecated and now-unused NewWithConfigPath
Updates #cleanup Signed-off-by: Alex Chan <alexc@tailscale.com>
This commit is contained in:
parent
8608e42103
commit
2b0f59cd38
@ -464,18 +464,6 @@ func New(collection string, netMon *netmon.Monitor, health *health.Tracker, logf
|
|||||||
}.New()
|
}.New()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Use [Options.New] instead.
|
|
||||||
func NewWithConfigPath(collection, dir, cmdName string, netMon *netmon.Monitor, health *health.Tracker, logf logger.Logf) *Policy {
|
|
||||||
return Options{
|
|
||||||
Collection: collection,
|
|
||||||
Dir: dir,
|
|
||||||
CmdName: cmdName,
|
|
||||||
NetMon: netMon,
|
|
||||||
Health: health,
|
|
||||||
Logf: logf,
|
|
||||||
}.New()
|
|
||||||
}
|
|
||||||
|
|
||||||
// Options is used to construct a [Policy].
|
// Options is used to construct a [Policy].
|
||||||
type Options struct {
|
type Options struct {
|
||||||
// Collection is a required collection to upload logs under.
|
// Collection is a required collection to upload logs under.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user