connector

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GcpConnector

type GcpConnector struct {
	BucketName    string
	BaseCidrRange string
	FileName      string
	// contains filtered or unexported fields
}

func New

func New(bucketName string, baseCidr string) GcpConnector

func (*GcpConnector) ReadRemote

func (gcp *GcpConnector) ReadRemote(ctx context.Context) (*NetworkConfig, error)

func (*GcpConnector) RecursiveRetryReadWrite

func (gcp *GcpConnector) RecursiveRetryReadWrite(ctx context.Context, retryCount int8) error

func (*GcpConnector) WriteRemote

func (gcp *GcpConnector) WriteRemote(networkConfig *NetworkConfig, ctx context.Context) error

type NetworkConfig

type NetworkConfig struct {
	Subnets map[string]string `json:"subnets"`
}

Jump to

Keyboard shortcuts

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