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: 0

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