hcp_link

package
v1.14.4 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: MPL-2.0 Imports: 19 Imported by: 1

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(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

Directories

Path Synopsis
proto module

Jump to

Keyboard shortcuts

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