endpoint

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package endpoint resolves public Islandora service endpoints from sitectl ingress route catalogs.

Index

Constants

View Source
const (
	ResolutionTraefik = plugin.IngressRouteResolutionTraefik
	ResolutionCatalog = plugin.IngressRouteResolutionCatalog
)
View Source
const (
	// AppRoute is the public Drupal application route name.
	AppRoute = "app"
	// FCRepoRoute is the public Fedora repository route name.
	FCRepoRoute = "fcrepo"
	// IIIFRoute is the public Triplet IIIF route name.
	IIIFRoute = "iiif"
	// CantaloupeRoute is the public Cantaloupe route name.
	CantaloupeRoute = "cantaloupe"
	// BlazegraphRoute is the public Blazegraph route name.
	BlazegraphRoute = "blazegraph"
)

Variables

View Source
var (
	ErrRouteNotFound      = plugin.ErrIngressRouteNotFound
	ErrRouteURLUnresolved = plugin.ErrIngressRouteURLUnresolved
)

Functions

This section is empty.

Types

type Defaults

type Defaults struct {
	Scheme string
	Domain string
}

Defaults contains context-specific public ingress defaults. It carries no authentication or credential material.

type DefaultsResolver

type DefaultsResolver func(ctx *config.Context) Defaults

DefaultsResolver returns public ingress defaults for a sitectl context.

type Provider

type Provider struct {
	Defaults DefaultsResolver
}

Provider supplies and resolves the public routes for an ISLE context.

func (Provider) App

func (p Provider) App(cmd *cobra.Command, ctx *config.Context) (Resolved, error)

App resolves the public Drupal application endpoint.

func (Provider) BindFlags

func (Provider) BindFlags(cmd *cobra.Command)

BindFlags implements plugin.IngressRouteProvider.

func (Provider) Blazegraph

func (p Provider) Blazegraph(cmd *cobra.Command, ctx *config.Context) (Resolved, error)

Blazegraph resolves the public Blazegraph endpoint.

func (Provider) Cantaloupe

func (p Provider) Cantaloupe(cmd *cobra.Command, ctx *config.Context) (Resolved, error)

Cantaloupe resolves the public Cantaloupe endpoint.

func (Provider) FCRepo

func (p Provider) FCRepo(cmd *cobra.Command, ctx *config.Context) (Resolved, error)

FCRepo resolves the public Fedora repository endpoint.

func (Provider) IIIF

func (p Provider) IIIF(cmd *cobra.Command, ctx *config.Context) (Resolved, error)

IIIF resolves the public Triplet IIIF endpoint.

func (Provider) Resolve

func (p Provider) Resolve(cmd *cobra.Command, ctx *config.Context, name string) (Resolved, error)

Resolve resolves a named ISLE public endpoint.

func (Provider) Routes

func (p Provider) Routes(cmd *cobra.Command, ctx *config.Context) (plugin.IngressRoutes, error)

Routes returns the routes whose Compose services are present in the context.

type Resolution

type Resolution = plugin.IngressRouteResolution

Resolution identifies the route source selected for an endpoint.

type Resolved

type Resolved = plugin.ResolvedIngressRoute

Resolved pairs a plugin-owned ingress route with its public URL.

Jump to

Keyboard shortcuts

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