apiutil

package
v0.39.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAttachedSubnets

func GetAttachedSubnets(ctx context.Context, kube client.Client, server string) (map[string]ServerAttachment, error)

func IsExternalSubnetReachable

func IsExternalSubnetReachable(ctx context.Context, kube client.Client, sourceServer, destSubnet string) (bool, error)

TODO check if allowed prefix contains destSubnet

func IsServerReachable

func IsServerReachable(ctx context.Context, kube client.Client, sourceServer, destServer string) (bool, error)

func IsSubnetReachable

func IsSubnetReachable(ctx context.Context, kube client.Client, source, dest string) (bool, error)

func IsSubnetReachableBetweenVPCs

func IsSubnetReachableBetweenVPCs(ctx context.Context, kube client.Client, vpc1Name, vpc1Subnet, vpc2Name, vpc2Subnet string) (bool, error)

func IsSubnetReachableWithinVPC

func IsSubnetReachableWithinVPC(ctx context.Context, kube client.Client, vpcName, source, dest string) (bool, error)

Types

type ServerAttachment

type ServerAttachment struct {
	Connection string
	Interfaces []string
	NativeVLAN bool
}

Jump to

Keyboard shortcuts

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