datafederation

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: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorNotFound = errors.New("data federation not found")
)

Functions

func MapDatafederationPrivateEndpoints

func MapDatafederationPrivateEndpoints(projectID string, df *akov2.AtlasDataFederation, atlasEndpoints []*DatafederationPrivateEndpointEntry) (map[string]*DataFederationPrivateEndpoint, error)

Types

type AtlasDataFederationService

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

func NewAtlasDataFederationService

func NewAtlasDataFederationService(ctx context.Context, provider atlas.Provider, secretRef *types.NamespacedName, log *zap.SugaredLogger) (*AtlasDataFederationService, error)

func (*AtlasDataFederationService) Create

func (*AtlasDataFederationService) Delete

func (dfs *AtlasDataFederationService) Delete(ctx context.Context, projectID, name string) error

func (*AtlasDataFederationService) Get

func (dfs *AtlasDataFederationService) Get(ctx context.Context, projectID, name string) (*DataFederation, error)

func (*AtlasDataFederationService) Update

type DataFederation

type DataFederation struct {
	*akov2.DataFederationSpec
	ProjectID string
	Hostnames []string
}

func NewDataFederation

func NewDataFederation(spec *akov2.DataFederationSpec, projectID string, hostnames []string) (*DataFederation, error)

func (*DataFederation) SpecEqualsTo

func (df *DataFederation) SpecEqualsTo(target *DataFederation) bool

SpecEqualsTo returns true if the spec of the data federation instance semantically equals to the given one. Note: it assumes the spec is already normalized.

type DataFederationPrivateEndpoint

type DataFederationPrivateEndpoint struct {
	AKO, Atlas, LastApplied *DatafederationPrivateEndpointEntry
}

type DataFederationService

type DataFederationService interface {
	Get(ctx context.Context, projectID, name string) (*DataFederation, error)
	Create(ctx context.Context, df *DataFederation) error
	Update(ctx context.Context, df *DataFederation) error
	Delete(ctx context.Context, projectID, name string) error
}

type DatafederationPrivateEndpointEntry

type DatafederationPrivateEndpointEntry struct {
	*akov2.DataFederationPE
	ProjectID string
}

func NewDataFederationPrivateEndpointEntry

func NewDataFederationPrivateEndpointEntry(projectID string, pe *akov2.DataFederationPE) *DatafederationPrivateEndpointEntry

func (*DatafederationPrivateEndpointEntry) EqualsTo

type DatafederationPrivateEndpoints

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

func NewDatafederationPrivateEndpointService

func NewDatafederationPrivateEndpointService(ctx context.Context, provider atlas.Provider, secretRef *types.NamespacedName, log *zap.SugaredLogger) (*DatafederationPrivateEndpoints, error)

func (*DatafederationPrivateEndpoints) Create

func (*DatafederationPrivateEndpoints) Delete

func (*DatafederationPrivateEndpoints) List

Jump to

Keyboard shortcuts

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