discovery

package
v1.1.46 Latest Latest
Warning

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

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

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