gatewayconfigurer

package
v0.0.0-...-8ea4bb1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToCIDRStringSlice

func ToCIDRStringSlice(routeObjects []Route) []string

Types

type GatewayConfig

type GatewayConfig struct {
	Routes                   []Route  `json:"routes"`
	RoutesIPv6               []Route  `json:"routes_ipv6"`
	AccessGroupIds           []string `json:"access_group_ids"`
	RequiresPrivilegedAccess bool     `json:"requires_privileged_access"`
}

type GatewayConfigurer

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

func NewGatewayConfigurer

func NewGatewayConfigurer(log *logrus.Entry, db database.Database, bucket bucket.Client) *GatewayConfigurer

func (*GatewayConfigurer) SyncConfig

func (g *GatewayConfigurer) SyncConfig(ctx context.Context) error

type GatewayMetadata

type GatewayMetadata struct {
	Routes                   []string `json:"routes"`
	AccessGroupIDs           []string `json:"access_group_ids"`
	RequiresPrivilegedAccess bool     `json:"requires_privileged_access"`
}

type GoogleMetadata

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

func NewGoogleMetadata

func NewGoogleMetadata(db database.Database, log *logrus.Entry) *GoogleMetadata

func (*GoogleMetadata) SyncConfig

func (g *GoogleMetadata) SyncConfig(ctx context.Context) error

type Route

type Route struct {
	CIDR string `json:"cidr"`
}

Jump to

Keyboard shortcuts

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