tests

package
v0.0.0-...-d6d012e Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const WellKnownEndpoint = "/.well-known/open-resource-discovery"

WellKnownEndpoint is the single entry point for the discovery.

Variables

This section is empty.

Functions

func NewGlobalRegistryClient

func NewGlobalRegistryClient(httpClient *http.Client, accessStrategyExecutorProvider accessstrategy.ExecutorProvider) *client

Types

type DocumentDetails

type DocumentDetails struct {
	URL              string                          `json:"url"`
	AccessStrategies accessstrategy.AccessStrategies `json:"accessStrategies"`
	Perspective      string                          `json:"perspective"`
}

DocumentDetails contains fields related to the fetching of each Document

type OpenResourceDiscoveryV1

type OpenResourceDiscoveryV1 struct {
	Documents []DocumentDetails `json:"documents"`
}

OpenResourceDiscoveryV1 contains all Documents' details

type WellKnownConfig

type WellKnownConfig struct {
	BaseURL                 string                  `json:"baseUrl"`
	OpenResourceDiscoveryV1 OpenResourceDiscoveryV1 `json:"openResourceDiscoveryV1"`
}

WellKnownConfig represents the whole config object

Jump to

Keyboard shortcuts

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