discovery

package
v0.0.0-...-88829d4 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: Apache-2.0 Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// MAJOR -
	MAJOR = "MAJOR"
	// MINOR -
	MINOR = "MINOR"
)

Variables

This section is empty.

Functions

func BuildServiceBody

func BuildServiceBody(service *ServiceDetail) (apic.ServiceBody, error)

BuildServiceBody - creates the service definition

Types

type Agent

type Agent struct {
	Cfg config.AgentConfig
	// contains filtered or unexported fields
}

Agent struct for running the agent

func NewAgent

func NewAgent(cfg config.AgentConfig) *Agent

NewAgent creates an agent for API Discovery

func (*Agent) Run

func (a *Agent) Run() error

Run starts the agent

func (*Agent) Stop

func (a *Agent) Stop()

Stop stops the agent

type ServiceDetail

type ServiceDetail struct {
	AgentDetails      map[string]string
	APIName           string
	APISpec           []byte
	APIUpdateSeverity string
	AuthPolicy        string
	Description       string
	Documentation     []byte
	Endpoint          string
	Endpoints         []apic.EndpointDefinition
	ID                string
	ResourceType      string
	ServiceAttributes map[string]string
	Title             string
}

ServiceDetail - Sample struct representing the API definition in API gateway

Jump to

Keyboard shortcuts

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