privateendpoint

package
v2.7.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ProviderAWS   = "AWS"
	ProviderAzure = "AZURE"
	ProviderGCP   = "GCP"

	StatusInitiating        = "INITIATING"
	StatusPending           = "PENDING"
	StatusPendingAcceptance = "PENDING_ACCEPTANCE"
	StatusWaitingForUser    = "WAITING_FOR_USER"
	StatusVerified          = "VERIFIED"
	StatusFailed            = "FAILED"
	StatusRejected          = "REJECTED"
	StatusDeleting          = "DELETING"
)
View Source
const (
	ErrorServiceNotFound = "PRIVATE_ENDPOINT_SERVICE_NOT_FOUND"
)

Variables

This section is empty.

Functions

func MapPrivateEndpoints

func MapPrivateEndpoints(akoInterfaces, atlasInterfaces []EndpointInterface) map[string]CompositeEndpointInterface

Types

type AWSInterface

type AWSInterface struct {
	CommonEndpointInterface
}

type AWSService

type AWSService struct {
	CommonEndpointService

	ServiceName string
}

func (*AWSService) Provider

func (s *AWSService) Provider() string

type AzureInterface

type AzureInterface struct {
	CommonEndpointInterface
	IP             string
	ConnectionName string
}

type AzureService

type AzureService struct {
	CommonEndpointService
	ServiceName string
	ResourceID  string
}

func (*AzureService) Provider

func (s *AzureService) Provider() string

type CommonEndpointInterface

type CommonEndpointInterface struct {
	ID              string
	InterfaceStatus string
	Error           string
}

func (*CommonEndpointInterface) ErrorMessage

func (i *CommonEndpointInterface) ErrorMessage() string

func (*CommonEndpointInterface) InterfaceID

func (i *CommonEndpointInterface) InterfaceID() string

func (*CommonEndpointInterface) Status

func (i *CommonEndpointInterface) Status() string

type CommonEndpointService

type CommonEndpointService struct {
	ID            string
	CloudRegion   string
	ServiceStatus string
	Error         string
	Interfaces    EndpointInterfaces
}

func (*CommonEndpointService) EndpointInterfaces

func (s *CommonEndpointService) EndpointInterfaces() EndpointInterfaces

func (*CommonEndpointService) ErrorMessage

func (s *CommonEndpointService) ErrorMessage() string

func (*CommonEndpointService) Region

func (s *CommonEndpointService) Region() string

func (*CommonEndpointService) ServiceID

func (s *CommonEndpointService) ServiceID() string

func (*CommonEndpointService) Status

func (s *CommonEndpointService) Status() string

type CompositeEndpointInterface

type CompositeEndpointInterface struct {
	AKO   EndpointInterface
	Atlas EndpointInterface
}

type EndpointInterface

type EndpointInterface interface {
	InterfaceID() string
	Status() string
	ErrorMessage() string
}

type EndpointInterfaces

type EndpointInterfaces []EndpointInterface

func (EndpointInterfaces) Get

type EndpointService

type EndpointService interface {
	ServiceID() string
	EndpointInterfaces() EndpointInterfaces
	Provider() string
	Region() string
	Status() string
	ErrorMessage() string
}

func NewPrivateEndpoint

func NewPrivateEndpoint(akoPrivateEndpoint *akov2.AtlasPrivateEndpoint) EndpointService

type GCPInterface

type GCPInterface struct {
	CommonEndpointInterface
	Endpoints []GCPInterfaceEndpoint
}

type GCPInterfaceEndpoint

type GCPInterfaceEndpoint struct {
	Name   string
	IP     string
	Status string
}

type GCPService

type GCPService struct {
	CommonEndpointService
	AttachmentNames []string
}

func (*GCPService) Provider

func (s *GCPService) Provider() string

type PrivateEndpoint

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

func (*PrivateEndpoint) CreatePrivateEndpointInterface

func (pe *PrivateEndpoint) CreatePrivateEndpointInterface(ctx context.Context, projectID, provider, serviceID, gcpProjectID string, peInterface EndpointInterface) (EndpointInterface, error)

func (*PrivateEndpoint) CreatePrivateEndpointService

func (pe *PrivateEndpoint) CreatePrivateEndpointService(ctx context.Context, projectID string, peService EndpointService) (EndpointService, error)

func (*PrivateEndpoint) DeleteEndpointInterface

func (pe *PrivateEndpoint) DeleteEndpointInterface(ctx context.Context, projectID, provider, serviceID, ID string) error

func (*PrivateEndpoint) DeleteEndpointService

func (pe *PrivateEndpoint) DeleteEndpointService(ctx context.Context, projectID, provider, ID string) error

func (*PrivateEndpoint) GetPrivateEndpoint

func (pe *PrivateEndpoint) GetPrivateEndpoint(ctx context.Context, projectID, provider, ID string) (EndpointService, error)

func (*PrivateEndpoint) ListPrivateEndpoints

func (pe *PrivateEndpoint) ListPrivateEndpoints(ctx context.Context, projectID, provider string) ([]EndpointService, error)

type PrivateEndpointService

type PrivateEndpointService interface {
	ListPrivateEndpoints(ctx context.Context, projectID, provider string) ([]EndpointService, error)
	GetPrivateEndpoint(ctx context.Context, projectID, provider, ID string) (EndpointService, error)
	CreatePrivateEndpointService(ctx context.Context, projectID string, peService EndpointService) (EndpointService, error)
	DeleteEndpointService(ctx context.Context, projectID, provider, ID string) error
	CreatePrivateEndpointInterface(ctx context.Context, projectID, provider, serviceID, gcpProjectID string, peInterface EndpointInterface) (EndpointInterface, error)
	DeleteEndpointInterface(ctx context.Context, projectID, provider, serviceID, ID string) error
}

Jump to

Keyboard shortcuts

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