extservice

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RestyClient *resty.Client

Functions

func MonitorStatusCheckStatus

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

func NewServiceDiscovery added in v1.0.6

func NewServiceDiscovery() discovery_kit_sdk.TargetDiscovery

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 (m *ServiceStatusCheckAction) Describe() action_kit_api.ActionDescription

func (*ServiceStatusCheckAction) NewEmptyState

func (*ServiceStatusCheckAction) Prepare

func (m *ServiceStatusCheckAction) Prepare(_ context.Context, state *ServiceStatusCheckState, request action_kit_api.PrepareActionRequestBody) (*action_kit_api.PrepareResult, error)

func (*ServiceStatusCheckAction) Start

func (m *ServiceStatusCheckAction) Start(_ context.Context, _ *ServiceStatusCheckState) (*action_kit_api.StartResult, error)

func (*ServiceStatusCheckAction) Status

func (m *ServiceStatusCheckAction) Status(ctx context.Context, state *ServiceStatusCheckState) (*action_kit_api.StatusResult, error)

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