publicip

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package publicip is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPublicIP

func GetPublicIP(ctx context.Context, client *http.Client, backoffPolicy *backoff.ExponentialBackOff) (net.IP, error)

Types

type Fetcher

type Fetcher interface {
	GetIP(ctx context.Context) (net.IP, error)
}

Fetcher is an interface for fetching the public IP address

type MockFetcher

type MockFetcher struct {
	// contains filtered or unexported fields
}

MockFetcher is a mock of Fetcher interface.

func NewMockFetcher

func NewMockFetcher(ctrl *gomock.Controller) *MockFetcher

NewMockFetcher creates a new mock instance.

func (*MockFetcher) EXPECT

func (m *MockFetcher) EXPECT() *MockFetcherMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockFetcher) GetIP

func (m *MockFetcher) GetIP(ctx context.Context) (net.IP, error)

GetIP mocks base method.

type MockFetcherMockRecorder

type MockFetcherMockRecorder struct {
	// contains filtered or unexported fields
}

MockFetcherMockRecorder is the mock recorder for MockFetcher.

func (*MockFetcherMockRecorder) GetIP

func (mr *MockFetcherMockRecorder) GetIP(ctx interface{}) *gomock.Call

GetIP indicates an expected call of GetIP.

type PublicIPFetcher

type PublicIPFetcher struct {
	// contains filtered or unexported fields
}

func NewPublicIPFetcher

func NewPublicIPFetcher() *PublicIPFetcher

func (*PublicIPFetcher) GetIP

func (p *PublicIPFetcher) GetIP(ctx context.Context) (net.IP, error)

Jump to

Keyboard shortcuts

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