networkpeering

package
v2.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetworkPeer

type NetworkPeer struct {
	akov2.AtlasNetworkPeeringConfig
	ID string
}

func NewNetworkPeer

func NewNetworkPeer(id string, cfg *akov2.AtlasNetworkPeeringConfig) *NetworkPeer

type NetworkPeeringService

type NetworkPeeringService interface {
	PeerConnectionsService
	PeeringContainerService
}

func NewNetworkPeeringService

func NewNetworkPeeringService(peeringAPI admin.NetworkPeeringApi) NetworkPeeringService

type PeerConnectionsService

type PeerConnectionsService interface {
	CreatePeer(ctx context.Context, projectID string, conn *NetworkPeer) (*NetworkPeer, error)
	ListPeers(ctx context.Context, projectID string) ([]NetworkPeer, error)
	DeletePeer(ctx context.Context, projectID, containerID string) error
}

type PeeringContainerService

type PeeringContainerService interface {
	CreateContainer(ctx context.Context, projectID string, container *ProviderContainer) (*ProviderContainer, error)
	GetContainer(ctx context.Context, projectID, containerID string) (*ProviderContainer, error)
	ListContainers(ctx context.Context, projectID, providerName string) ([]ProviderContainer, error)
	DeleteContainer(ctx context.Context, projectID, containerID string) error
}

type ProviderContainer

type ProviderContainer struct {
	akov2.AtlasProviderContainerConfig
	ID       string
	Provider string
}

func NewProviderContainer

func NewProviderContainer(id string, provider string, cfg *akov2.AtlasProviderContainerConfig) *ProviderContainer

Jump to

Keyboard shortcuts

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