Documentation ¶
Index ¶
Constants ¶
View Source
const (
SetLinkStatusCadence = 5 * time.Second
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HCPLinkVault ¶ added in v1.13.0
type HCPLinkVault struct { LinkStatus internal.WrappedCoreHCPLinkStatus // contains filtered or unexported fields }
func NewHCPLink ¶
func NewHCPLink(linkConf *configutil.HCPLinkConfig, core *vault.Core, logger hclog.Logger) (*HCPLinkVault, error)
func (*HCPLinkVault) GetConnectionStatusMessage ¶ added in v1.13.0
func (h *HCPLinkVault) GetConnectionStatusMessage(scadaStatus string) string
GetConnectionStatusMessage returns a meaningful message about connection status. If Scada connection is anything other than "connected", it will get the LastError from ScadaProvider, and builds a message with the scada session status, error time and error message, and returns the message.
func (*HCPLinkVault) GetScadaSessionStatus ¶ added in v1.13.0
func (h *HCPLinkVault) GetScadaSessionStatus() string
func (*HCPLinkVault) RunCapabilities ¶ added in v1.13.0
func (h *HCPLinkVault) RunCapabilities() error
func (*HCPLinkVault) Shutdown ¶ added in v1.13.0
func (h *HCPLinkVault) Shutdown() error
Click to show internal directories.
Click to hide internal directories.