discovery

package
v1.1.9-alpha1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: Apache-2.0 Imports: 25 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

This section is empty.

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 {
	// contains filtered or unexported fields
}

Agent links the mulesoft client and the gateway client.

func NewAgent

func NewAgent(cfg *config.AgentConfig, client anypoint.Client, sm subscription.SchemaStore) (agent *Agent)

NewAgent creates a new agent

func (*Agent) Run

func (a *Agent) Run()

Run the agent loop

func (*Agent) Stop

func (a *Agent) Stop()

Stop stops the discovery agent.

type BySpecType

type BySpecType []anypoint.ExchangeFile

BySpecType implements sort.Interface for []ExchangeFile based on preferred specification support.

func (BySpecType) Len

func (a BySpecType) Len() int

func (BySpecType) Less

func (a BySpecType) Less(i, j int) bool

func (BySpecType) Swap

func (a BySpecType) Swap(i, j int)

type Repeater

type Repeater interface {
	Loop()
	OnConfigChange(cfg *config.MulesoftConfig)
	Stop()
}

type ServiceDetail

type ServiceDetail struct {
	AccessRequestDefinition string
	APIName                 string
	APISpec                 []byte
	APIUpdateSeverity       string
	AuthPolicy              string
	CRDs                    []string
	Description             string
	Documentation           []byte
	ID                      string
	Image                   string
	ImageContentType        string
	ResourceType            string
	ServiceAttributes       map[string]string
	AgentDetails            map[string]string
	Stage                   string
	State                   string
	Status                  string
	SubscriptionName        string
	Tags                    []string
	Title                   string
	URL                     string
	Version                 string
}

ServiceDetail is the information for the ex

type ServiceHandler

type ServiceHandler interface {
	ToServiceDetails(asset *anypoint.Asset) []*ServiceDetail
	OnConfigChange(cfg *config.MulesoftConfig)
}

ServiceHandler converts a mulesoft asset to an array of ServiceDetails

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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