Documentation ¶
Index ¶
- Constants
- func DefaultComponentsDirPath() string
- func DefaultConfigFilePath() string
- func GetDashboardVersion() string
- func GetRuntimeVersion() string
- func Init(runtimeVersion, dashboardVersion string, dockerNetwork string, slimMode bool) error
- func NewDashboardCmd(port int) *exec.Cmd
- func Stop(appID string) error
- func Uninstall(uninstallAll bool, dockerNetwork string) error
- type Client
- type DaprProcess
- type ListOutput
- type RunConfig
- type RunOutput
- type Standalone
Constants ¶
View Source
const ( // DaprPlacementContainerName is the container name of placement service. DaprPlacementContainerName = "dapr_placement" // DaprRedisContainerName is the container name of redis. DaprRedisContainerName = "dapr_redis" // DaprZipkinContainerName is the container name of zipkin. DaprZipkinContainerName = "dapr_zipkin" )
Variables ¶
This section is empty.
Functions ¶
func DefaultComponentsDirPath ¶ added in v0.9.0
func DefaultComponentsDirPath() string
func DefaultConfigFilePath ¶ added in v0.9.0
func DefaultConfigFilePath() string
func GetDashboardVersion ¶ added in v0.10.0
func GetDashboardVersion() string
GetDashboardVersion returns the version for the local Dapr dashboard.
func GetRuntimeVersion ¶ added in v0.10.0
func GetRuntimeVersion() string
GetRuntimeVersion returns the version for the local Dapr runtime.
func NewDashboardCmd ¶ added in v0.11.0
NewDashboardCmd creates the command to run dashboard.
Types ¶
type Client ¶ added in v1.0.0
type Client interface { // Invoke is a command to invoke a remote or local dapr instance Invoke(appID, method, data, verb string) (string, error) // Publish is used to publish event to a topic in a pubsub for an app ID. Publish(publishAppID, pubsubName, topic, payload string) error }
Client is the interface the wraps all the methods exposed by the Dapr CLI.
type DaprProcess ¶ added in v1.0.0
type DaprProcess interface {
List() ([]ListOutput, error)
}
type ListOutput ¶
type ListOutput struct { AppID string `csv:"APP ID"` HTTPPort int `csv:"HTTP PORT"` GRPCPort int `csv:"GRPC PORT"` AppPort int `csv:"APP PORT"` MetricsEnabled bool `csv:"-"` // Not displayed, consumed by dashboard. Command string `csv:"COMMAND"` Age string `csv:"AGE"` Created string `csv:"CREATED"` PID int }
ListOutput represents the application ID, application port and creation time.
type RunConfig ¶
type RunConfig struct { AppID string AppPort int HTTPPort int GRPCPort int ConfigFile string Protocol string Arguments []string EnableProfiling bool ProfilePort int LogLevel string MaxConcurrency int PlacementHost string ComponentsPath string AppSSL bool MetricsPort int }
RunConfig represents the application configuration parameters.
type RunOutput ¶
type RunOutput struct { DaprCMD *exec.Cmd DaprHTTPPort int DaprGRPCPort int AppID string AppCMD *exec.Cmd }
RunOutput represents the run output.
type Standalone ¶ added in v1.0.0
type Standalone struct {
// contains filtered or unexported fields
}
func (*Standalone) Invoke ¶ added in v1.0.0
func (s *Standalone) Invoke(appID, method, data, verb string) (string, error)
Invoke is a command to invoke a remote or local dapr instance.
func (*Standalone) Publish ¶ added in v1.0.0
func (s *Standalone) Publish(publishAppID, pubsubName, topic, payload string) error
Publish publishes payload to topic in pubsub referenced by pubsubName.
Click to show internal directories.
Click to hide internal directories.