networkcontainer

package
v2.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotFound means an resource is missing
	ErrNotFound = errors.New("not found")

	// ErrContainerInUse is a failure to remove a containe still in use
	ErrContainerInUse = errors.New("container still in use")

	// ErrAmbigousFind fails when a find result is ambiguous,
	// usually more than one result was found when either one or noe was expected
	ErrAmbigousFind = errors.New("ambigous find results")
)

Functions

func ApplyNetworkContainerStatus

func ApplyNetworkContainerStatus(containerStatus *status.AtlasNetworkContainerStatus, container *NetworkContainer)

Types

type AWSContainerStatus

type AWSContainerStatus struct {
	VpcID       string
	ContainerID string
}

type AzureContainerStatus

type AzureContainerStatus struct {
	AzureSubscriptionID string
	VnetName            string
}

type GCPContainerStatus

type GCPContainerStatus struct {
	GCPProjectID string
	NetworkName  string
}

type NetworkContainer

type NetworkContainer struct {
	NetworkContainerConfig
	ID          string
	Provisioned bool
	AWSStatus   *AWSContainerStatus
	AzureStatus *AzureContainerStatus
	GCPStatus   *GCPContainerStatus
}

type NetworkContainerConfig

type NetworkContainerConfig struct {
	Provider string
	akov2.AtlasNetworkContainerConfig
}

func NewNetworkContainerConfig

func NewNetworkContainerConfig(provider string, config *akov2.AtlasNetworkContainerConfig) *NetworkContainerConfig

type NetworkContainerService

type NetworkContainerService interface {
	Create(ctx context.Context, projectID string, cfg *NetworkContainerConfig) (*NetworkContainer, error)
	Get(ctx context.Context, projectID, containerID string) (*NetworkContainer, error)
	Find(ctx context.Context, projectID string, cfg *NetworkContainerConfig) (*NetworkContainer, error)
	Update(ctx context.Context, projectID, containerID string, cfg *NetworkContainerConfig) (*NetworkContainer, error)
	Delete(ctx context.Context, projectID, containerID string) error
}

func NewNetworkContainerService

func NewNetworkContainerService(peeringAPI admin.NetworkPeeringApi) NetworkContainerService

func NewNetworkContainerServiceFromClientSet

func NewNetworkContainerServiceFromClientSet(clientSet *atlas.ClientSet) NetworkContainerService

Jump to

Keyboard shortcuts

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