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 GetLogs(scope string, id string) []Log GetDeploymentConfiguration(scope string, id string) string GetControlPlaneStatus() []StatusOutput GetMetadata(scope string, id string) MetadataOutput GetActiveActorsCount(metadata MetadataOutput) []MetadataActiveActorsCount GetScopes() []string CheckPlatform() string }
Instances is an interface to interact with running Dapr instances in Kubernetes or Standalone modes
func NewInstances ¶
func NewInstances(platform string, kubeClient *kubernetes.Clientset) Instances
NewInstances returns an Instances instance
type Log ¶ added in v0.2.0
type Log struct { Level string `json:"level"` Timestamp int64 `json:"timestamp"` Container string `json:"container"` Content string `json:"content"` }
Log represents a log message with metadata
type MetadataActiveActorsCount ¶ added in v0.2.0
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 { 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.
Click to show internal directories.
Click to hide internal directories.