ingressapi

package
v0.1.0-rc.40 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package ingressapi serves control's private API for ingress processes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(config Config) (http.Handler, error)

NewHandler constructs the private ingress service.

Types

type Config

type Config struct {
	Store               Store
	ClusterSecrets      serviceapi.BearerSecrets
	LeaseDuration       time.Duration
	RoutingPollInterval time.Duration
	Now                 func() time.Time
	Report              func(error)
}

type DirectClient

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

DirectClient executes private ingress operations in-process for standalone.

func NewDirectClient

func NewDirectClient(config DirectConfig) (*DirectClient, error)

func (DirectClient) DrainIngress

func (s DirectClient) DrainIngress(
	ctx context.Context,
	ingressID ingressv1.IngressID,
	body ingressv1.IngressDrainRequest,
) (ingressv1.IngressLease, error)

func (DirectClient) GetIngressRoutingTableEvents

func (s DirectClient) GetIngressRoutingTableEvents(
	ctx context.Context,
	ingressID ingressv1.IngressID,
	params ingressv1.GetIngressRoutingTableEventsParams,
) (ingressv1.IngressRoutingTablePage, error)

func (DirectClient) GetIngressRoutingTableSnapshot

func (s DirectClient) GetIngressRoutingTableSnapshot(
	ctx context.Context,
	ingressID ingressv1.IngressID,
	params ingressv1.GetIngressRoutingTableSnapshotParams,
) (ingressv1.IngressRoutingTableSnapshot, error)

func (DirectClient) ObservePublicURLRecovery

func (s DirectClient) ObservePublicURLRecovery(
	ctx context.Context,
	ingressID ingressv1.IngressID,
	recoveryEpisodeID int64,
	body ingressv1.PublicURLRecoveryObservationRequest,
) (ingressv1.PublicURLRecoveryObservation, error)

func (DirectClient) RegisterIngress

func (s DirectClient) RegisterIngress(ctx context.Context, body ingressv1.IngressRegistration) (ingressv1.IngressLease, error)

func (DirectClient) RenewIngress

func (s DirectClient) RenewIngress(
	ctx context.Context,
	ingressID ingressv1.IngressID,
	body ingressv1.IngressRenewal,
) (ingressv1.IngressLease, error)

func (DirectClient) ReportIngressUsage

func (s DirectClient) ReportIngressUsage(
	ctx context.Context,
	ingressID ingressv1.IngressID,
	body ingressv1.IngressUsageReportBatch,
) error

type DirectConfig

type DirectConfig struct {
	Store               Store
	LeaseDuration       time.Duration
	RoutingPollInterval time.Duration
	Now                 func() time.Time
	Report              func(error)
}

Jump to

Keyboard shortcuts

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