Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllServicesResponse ¶
type AllServicesResponse struct { Services []platform.Service ErrorResponse }
type ApplyResponse ¶
type ApplyResponse struct { Result fluxrpc.ApplyResult ErrorResponse }
type ErrorResponse ¶
ErrorResponse is for dropping into responses so they have appropriate fields. The field `Error` carries either an empty string (no error), or the error message to be reconstituted as an error). The field `Fatal` indicates that the error resulted in the connection to the daemon being torn down.
type ExportResponse ¶
type ExportResponse struct { Config []byte ErrorResponse }
type NATS ¶
type NATS struct {
// contains filtered or unexported fields
}
func NewMessageBus ¶
func NewMessageBus(url string, metrics platform.BusMetrics) (*NATS, error)
func (*NATS) AwaitPresence ¶
Wait up to `timeout` for a particular instance to connect. Mostly useful for synchronising during testing.
func (*NATS) Connect ¶
Connect returns a platform.Platform implementation that can be used to talk to a particular instance.
type PingResponse ¶
type PingResponse struct {
ErrorResponse
}
type SomeServicesResponse ¶
type SomeServicesResponse struct { Services []platform.Service ErrorResponse }
type SyncResponse ¶
type SyncResponse struct { Result fluxrpc.SyncResult ErrorResponse }
type VersionResponse ¶
type VersionResponse struct { Version string ErrorResponse }
Click to show internal directories.
Click to hide internal directories.