dns

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Log = core.Log.WithName("dns-vips-allocator")

Functions

func AllocateVIPs added in v1.8.1

func AllocateVIPs(global *vips.GlobalView, voView *vips.VirtualOutboundMeshView) (errs error)

func Match added in v1.8.1

Types

type VIPsAllocator

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

func NewVIPsAllocator

func NewVIPsAllocator(rm manager.ReadOnlyResourceManager, configManager config_manager.ConfigManager, config dns_server.Config, zone string) (*VIPsAllocator, error)

NewVIPsAllocator creates new object of VIPsAllocator. You can either call method CreateOrUpdateVIPConfig manually or start VIPsAllocator as a component. In the latter scenario it will call CreateOrUpdateVIPConfig every 'tickInterval' for all meshes in the store.

func (*VIPsAllocator) BuildVirtualOutboundMeshView added in v1.8.1

func (d *VIPsAllocator) BuildVirtualOutboundMeshView(ctx context.Context, mesh string) (*vips.VirtualOutboundMeshView, error)

func (*VIPsAllocator) CreateOrUpdateVIPConfig

func (d *VIPsAllocator) CreateOrUpdateVIPConfig(ctx context.Context, mesh string, viewModificator func(*vips.VirtualOutboundMeshView) error) error

func (*VIPsAllocator) CreateOrUpdateVIPConfigs

func (d *VIPsAllocator) CreateOrUpdateVIPConfigs(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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