Movatterモバイル変換


[0]ホーム

URL:


localclient

package
v1.92.2Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License:BSD-3-ClauseImports:5Imported by:0

Details

Repository

github.com/tailscale/tailscale

Links

Documentation

Overview

Package localclient provides an interface for all the local.Client methodskube needs to use, so that we can easily mock it in tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

typeCertIssuer

type CertIssuer interface {CertPair(context.Context,string) ([]byte, []byte,error)}

typeFakeIPNBusWatcher

type FakeIPNBusWatcher struct {NotifyChan chanipn.Notify}

func (*FakeIPNBusWatcher)Close

func (f *FakeIPNBusWatcher) Close()error

func (*FakeIPNBusWatcher)Next

func (f *FakeIPNBusWatcher) Next() (ipn.Notify,error)

typeFakeLocalClient

type FakeLocalClient struct {FakeIPNBusWatcher}

func (*FakeLocalClient)CertPair

func (f *FakeLocalClient) CertPair(ctxcontext.Context, domainstring) ([]byte, []byte,error)

func (*FakeLocalClient)WatchIPNBus

typeIPNBusWatcher

type IPNBusWatcher interface {io.CloserNext() (ipn.Notify,error)}

IPNBusWatcher is local.IPNBusWatcher's methods restated in an interface toallow for easier mocking in tests.

typeLocalClient

type LocalClient interface {WatchIPNBus(ctxcontext.Context, maskipn.NotifyWatchOpt) (IPNBusWatcher,error)CertIssuer}

LocalClient is roughly a subset of the local.Client struct's methods, usedfor easier testing.

funcNew

func New(lc *local.Client)LocalClient

New returns a LocalClient that wraps the provided local.Client.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp