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
Click to show internal directories.
Click to hide internal directories.