cloudcidrs

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

cloudcidrs contains Cloud CIDR matching

Index

Constants

View Source
const AWS = "AWS"

AWS cloud

View Source
const GCP = "GCP"

GCP cloud

Variables

This section is empty.

Functions

func NewIPMapper

func NewIPMapper() cidrs.IPMapper[IPInfo]

NewIPMapper returns cidrs.IPMapper populated with cloud region info for the clouds we have resources for, currently GCP and AWS

Types

type IPInfo

type IPInfo struct {
	Cloud  string
	Region string
}

func AllIPInfos added in v0.3.1

func AllIPInfos() []IPInfo

AllIPInfos returns a slice of all known results that a NewIPMapper could return

Directories

Path Synopsis
internal
ranges2go
ranges2go generates a go source file with pre-parsed AWS IP ranges data.
ranges2go generates a go source file with pre-parsed AWS IP ranges data.

Jump to

Keyboard shortcuts

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