instances

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance struct {
	AppID            string `json:"appID"`
	HTTPPort         int    `json:"httpPort"`
	GRPCPort         int    `json:"grpcPort"`
	AppPort          int    `json:"appPort"`
	Command          string `json:"command"`
	Age              string `json:"age"`
	Created          string `json:"created"`
	PID              int    `json:"pid"`
	Replicas         int    `json:"replicas"`
	Address          string `json:"address"`
	SupportsDeletion bool   `json:"supportsDeletion"`
	SupportsLogs     bool   `json:"supportsLogs"`
	Manifest         string `json:"manifest"`
	Status           string `json:"status"`
	Labels           string `json:"labels"`
	Selector         string `json:"selector"`
	Config           string `json:"config"`
}

Instance describes a Dapr sidecar instance information

type Instances

type Instances interface {
	Supported() bool
	GetInstances(scope string) []Instance
	GetInstance(scope string, id string) Instance
	DeleteInstance(scope string, id string) error
	GetContainers(scope string, id string) []string
	GetLogStream(scope, id, containerName string) ([]io.ReadCloser, error)
	GetDeploymentConfiguration(scope string, id string) string
	GetControlPlaneStatus() []StatusOutput
	GetMetadata(scope string, id string) MetadataOutput
	GetScopes() []string
	CheckPlatform() platforms.Platform
}

Instances is an interface to interact with running Dapr instances in Kubernetes or Standalone modes

func NewInstances

func NewInstances(platform platforms.Platform, kubeClient *kubernetes.Clientset, dockerComposePath string) Instances

NewInstances returns an Instances instance

type MetadataActiveActorsCount added in v0.2.0

type MetadataActiveActorsCount struct {
	Type  string `json:"type"`
	Count int    `json:"count"`
}

MetadataActiveActorsCount represents actor metadata: type and count

type MetadataOutput added in v0.2.0

type MetadataOutput struct {
	ID       string                      `json:"id"`
	Actors   []MetadataActiveActorsCount `json:"actors"`
	Extended map[string]interface{}      `json:"extended"`
}

MetadataOutput represents a metadata api call response

type StatusOutput added in v0.2.0

type StatusOutput struct {
	Service   string `json:"service"`
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
	Healthy   string `json:"healthy"`
	Status    string `json:"status"`
	Version   string `json:"version"`
	Age       string `json:"age"`
	Created   string `json:"created"`
}

StatusOutput represents the status of a named Dapr resource.

Jump to

Keyboard shortcuts

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