extservice

package
v1.0.18 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 GetSnapshotApi added in v1.0.14

type GetSnapshotApi interface {
	GetServiceSnapshot(ctx context.Context, serviceId string) (*resty.Response, ViewSnapshotResponseWrapper, error)
}

type GetSnapshotsApi added in v1.0.14

type GetSnapshotsApi interface {
	GetServiceSnapshots(ctx context.Context) (*resty.Response, ViewSnapshotResponseWrapper, error)
}

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
	StatusCheckMode    string
	StatusCheckSuccess bool
}

type StackStateHttpClient added in v1.0.14

type StackStateHttpClient struct {
	Client *resty.Client
}
var Client *StackStateHttpClient

func (*StackStateHttpClient) GetServiceSnapshot added in v1.0.14

func (s *StackStateHttpClient) GetServiceSnapshot(ctx context.Context, serviceId string) (*resty.Response, ViewSnapshotResponseWrapper, error)

func (*StackStateHttpClient) GetServiceSnapshots added in v1.0.14

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