extservice

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: MIT Imports: 16 Imported by: 1 module, 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

View Source
var RestyClient *resty.Client

Functions

func GetAllServices

func GetAllServices(ctx context.Context, client *resty.Client) []discovery_kit_api.Target

func GetDiscoveryList

func GetDiscoveryList() discovery_kit_api.DiscoveryList

func MonitorStatusCheckStatus

func MonitorStatusCheckStatus(ctx context.Context, state *ServiceStatusCheckState, client *resty.Client) (*action_kit_api.StatusResult, error)

func RegisterServiceDiscoveryHandlers

func RegisterServiceDiscoveryHandlers()

Types

type Component

type Component struct {
	Id          int        `json:"id"`
	Name        string     `json:"name"`
	State       State      `json:"state"`
	Properties  Properties `json:"properties"`
	Identifiers []string   `json:"identifiers"`
}

type Properties

type Properties struct {
	NamespaceIdentifier   string `json:"namespaceIdentifier"`
	ClusterNameIdentifier string `json:"clusterNameIdentifier"`
}

type ServiceStatusCheckAction

type ServiceStatusCheckAction struct{}

func (*ServiceStatusCheckAction) Describe

func (*ServiceStatusCheckAction) NewEmptyState

func (*ServiceStatusCheckAction) Start

func (*ServiceStatusCheckAction) Status

type ServiceStatusCheckState

type ServiceStatusCheckState struct {
	ServiceId      string
	ServiceName    string
	ClusterName    string
	End            time.Time
	ExpectedStatus string
}

type State

type State struct {
	HealthState string `json:"healthState"`
}

type ViewSnapshotResponse

type ViewSnapshotResponse struct {
	Components []Component `json:"components"`
}

type ViewSnapshotResponseWrapper

type ViewSnapshotResponseWrapper struct {
	ViewSnapshotResponse ViewSnapshotResponse `json:"viewSnapshotResponse"`
}

Jump to

Keyboard shortcuts

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