mapipwriter

package
v1.14.0-rc.6 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mapipwriter provides MapIPWriter struct that can handle events related to v1.Node

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event added in v1.8.0

type Event struct {
	Translation
	Type watch.EventType
}

Event represents event for the mapipwriter

type MapIPWriter

type MapIPWriter struct {
	OutputPath string
	// contains filtered or unexported fields
}

MapIPWriter writes IPs from the v1.Node into OutputPath

func (*MapIPWriter) Start

func (m *MapIPWriter) Start(ctx context.Context, eventCh <-chan Event)

Start starts reading events from the passed channel in the current goroutine

type Translation added in v1.8.0

type Translation struct {
	From, To string
}

Translation represents translation of ip addrses

func (*Translation) Reverse added in v1.8.0

func (e *Translation) Reverse() Translation

Reverse creates a new Translation with swapped From/To fields

func (*Translation) String added in v1.8.0

func (e *Translation) String() string

Jump to

Keyboard shortcuts

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