hcp_link

package
v1.12.4 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: MPL-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// Connected HCP link connection status when it is connected
	Connected = SessionStatus("connected")
	// Disconnected HCP link connection status when it is disconnected
	Disconnected = SessionStatus("disconnected")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HCPLinkVaultInterface

type HCPLinkVaultInterface interface {
	Shutdown() error
	GetScadaSessionStatus() string
	GetConnectionStatusMessage(string) string
}

type SessionStatus

type SessionStatus = string

SessionStatus is used to express the current status of the SCADA session.

type WrappedHCPLinkVault

type WrappedHCPLinkVault struct {
	HCPLinkVaultInterface
}
func NewHCPLink(linkConf *configutil.HCPLinkConfig, core *vault.Core, logger hclog.Logger) (*WrappedHCPLinkVault, error)

func (*WrappedHCPLinkVault) GetConnectionStatusMessage

func (h *WrappedHCPLinkVault) GetConnectionStatusMessage(scadaStatus string) string

func (*WrappedHCPLinkVault) GetScadaSessionStatus

func (h *WrappedHCPLinkVault) GetScadaSessionStatus() string

func (*WrappedHCPLinkVault) Shutdown

func (h *WrappedHCPLinkVault) 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