privateendpoints

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrivateLinksScope

type PrivateLinksScope interface {
	GetClusterName() types.NamespacedName
	GetSubscriptionID() string
	GetLocation() string
	GetResourceGroup() string
	GetPrivateLinksWithAllowedSubscription(managementClusterSubscriptionID string) []capz.PrivateLink
	LookupPrivateLink(privateLinkResourceID string) (capz.PrivateLink, bool)
	PatchObject(ctx context.Context) error
	PrivateLinksReady() bool
	SetPrivateEndpointIPAddressForWcApi(ip net.IP)
	SetPrivateEndpointIPAddressForMcIngress(ip net.IP)
	Close(ctx context.Context) error
}

PrivateLinksScope is the interface for getting private links for which the private endpoints are needed.

type Scope

type Scope interface {
	GetClusterName() types.NamespacedName
	GetSubscriptionID() string
	GetLocation() string
	GetResourceGroup() string
	GetPrivateEndpoints() []capz.PrivateEndpointSpec
	GetPrivateEndpointsToWorkloadCluster(workloadClusterSubscriptionID, workloadClusterResourceGroup string) []capz.PrivateEndpointSpec
	GetPrivateEndpointIPAddress(ctx context.Context, privateEndpointName string) (net.IP, error)
	ContainsPrivateEndpointSpec(capz.PrivateEndpointSpec) bool
	AddPrivateEndpointSpec(capz.PrivateEndpointSpec)
	RemovePrivateEndpointByName(string)
	PatchObject(ctx context.Context) error
	Close(ctx context.Context) error
}

Scope is the interface for working with private endpoints.

func NewScope

func NewScope(ctx context.Context, cluster *capz.AzureCluster, client client.Client, privateEndpointClient azure.PrivateEndpointsClient) (Scope, error)

type Service

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

func NewService

func NewService(privateEndpointsScope Scope, privateLinksScope PrivateLinksScope) (*Service, error)

func (*Service) DeleteMcToWcApi added in v0.2.0

func (s *Service) DeleteMcToWcApi(_ context.Context) error

func (*Service) ReconcileMcToWcApi added in v0.2.0

func (s *Service) ReconcileMcToWcApi(ctx context.Context) error

func (*Service) ReconcileWcToMcIngress added in v0.2.0

func (s *Service) ReconcileWcToMcIngress(ctx context.Context, wcToMcSpec capz.PrivateEndpointSpec) error

Directories

Path Synopsis
Package mock_privateendpoints is a generated GoMock package.
Package mock_privateendpoints is a generated GoMock package.

Jump to

Keyboard shortcuts

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