visibility

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GatewayType

type GatewayType string

GatewayType represents the type of gateway used to expose endpoints

const (
	// GatewayExternal is the gateway used to expose endpoints that are publicly accessible from outside the cluster
	GatewayExternal GatewayType = "gateway-external"

	// GatewayInternal is the gateway used to expose endpoints that are only accessible within the organization
	GatewayInternal GatewayType = "gateway-internal"
)

type OrganizationVisibilityStrategy

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

func NewOrganizationVisibilityStrategy

func NewOrganizationVisibilityStrategy() *OrganizationVisibilityStrategy

func (*OrganizationVisibilityStrategy) GetGatewayType

func (s *OrganizationVisibilityStrategy) GetGatewayType() GatewayType

func (*OrganizationVisibilityStrategy) IsHTTPRouteFilterRequired added in v0.3.0

func (s *OrganizationVisibilityStrategy) IsHTTPRouteFilterRequired(epCtx *dataplane.EndpointContext) bool

func (*OrganizationVisibilityStrategy) IsHTTPRouteRequired

func (s *OrganizationVisibilityStrategy) IsHTTPRouteRequired(epCtx *dataplane.EndpointContext) bool

func (*OrganizationVisibilityStrategy) IsSecurityPolicyRequired

func (s *OrganizationVisibilityStrategy) IsSecurityPolicyRequired(epCtx *dataplane.EndpointContext) bool

type PublicVisibilityStrategy

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

func NewPublicVisibilityStrategy

func NewPublicVisibilityStrategy() *PublicVisibilityStrategy

func (*PublicVisibilityStrategy) GetGatewayType

func (s *PublicVisibilityStrategy) GetGatewayType() GatewayType

func (*PublicVisibilityStrategy) IsHTTPRouteFilterRequired added in v0.3.0

func (s *PublicVisibilityStrategy) IsHTTPRouteFilterRequired(epCtx *dataplane.EndpointContext) bool

func (*PublicVisibilityStrategy) IsHTTPRouteRequired

func (s *PublicVisibilityStrategy) IsHTTPRouteRequired(epCtx *dataplane.EndpointContext) bool

func (*PublicVisibilityStrategy) IsSecurityPolicyRequired

func (s *PublicVisibilityStrategy) IsSecurityPolicyRequired(epCtx *dataplane.EndpointContext) bool

type Visibility

type Visibility string

Visibility represents the accessibility level of an endpoint

const (
	// VisibilityPublic indicates that an endpoint should be accessible from outside the cluster
	// through the external gateway
	VisibilityPublic Visibility = "Public"

	// VisibilityPrivate indicates that an endpoint should only be accessible within the
	// organization through the internal gateway
	VisibilityPrivate Visibility = "Organization"
)

type VisibilityStrategy

type VisibilityStrategy interface {
	IsHTTPRouteRequired(epCtx *dataplane.EndpointContext) bool
	IsHTTPRouteFilterRequired(epCtx *dataplane.EndpointContext) bool
	IsSecurityPolicyRequired(epCtx *dataplane.EndpointContext) bool
	GetGatewayType() GatewayType
}

Jump to

Keyboard shortcuts

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