Documentation
¶
Overview ¶
Package endpoint resolves public Islandora service endpoints from sitectl ingress route catalogs.
Index ¶
- Constants
- Variables
- type Defaults
- type DefaultsResolver
- type Provider
- func (p Provider) App(cmd *cobra.Command, ctx *config.Context) (Resolved, error)
- func (Provider) BindFlags(cmd *cobra.Command)
- func (p Provider) Blazegraph(cmd *cobra.Command, ctx *config.Context) (Resolved, error)
- func (p Provider) Cantaloupe(cmd *cobra.Command, ctx *config.Context) (Resolved, error)
- func (p Provider) FCRepo(cmd *cobra.Command, ctx *config.Context) (Resolved, error)
- func (p Provider) IIIF(cmd *cobra.Command, ctx *config.Context) (Resolved, error)
- func (p Provider) Resolve(cmd *cobra.Command, ctx *config.Context, name string) (Resolved, error)
- func (p Provider) Routes(cmd *cobra.Command, ctx *config.Context) (plugin.IngressRoutes, error)
- type Resolution
- type Resolved
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 ¶
Defaults contains context-specific public ingress defaults. It carries no authentication or credential material.
type DefaultsResolver ¶
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) Blazegraph ¶
Blazegraph resolves the public Blazegraph endpoint.
func (Provider) Cantaloupe ¶
Cantaloupe resolves the public Cantaloupe endpoint.
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.
Click to show internal directories.
Click to hide internal directories.