Documentation ¶
Index ¶
- Constants
- func NewLinkConfig(nodeID string, nodeVersion string, resource cloud.HashicorpCloudLocationLink, ...) (*linkConfig.Config, error)
- func NewScadaConfig(linkConf *configutil.HCPLinkConfig, logger hclog.Logger) (*scada.Config, error)
- type WrappedCoreHCPLinkStatus
- type WrappedCoreHCPToken
- type WrappedCoreMeta
- type WrappedCoreNodeStatus
- type WrappedCoreStandbyStates
Constants ¶
View Source
const ServiceName = "vault-link"
Variables ¶
This section is empty.
Functions ¶
func NewLinkConfig ¶ added in v1.13.0
func NewLinkConfig(nodeID string, nodeVersion string, resource cloud.HashicorpCloudLocationLink, scadaProvider scada.SCADAProvider, hcpConfig sdkConfig.HCPConfig, nodeStatusReporter nodestatus.Reporter, logger hclog.Logger) (*linkConfig.Config, error)
NewLinkConfig validates the provided values and constructs an instance of a Config.
func NewScadaConfig ¶ added in v1.13.0
func NewScadaConfig(linkConf *configutil.HCPLinkConfig, logger hclog.Logger) (*scada.Config, error)
Types ¶
type WrappedCoreHCPLinkStatus ¶
type WrappedCoreHCPLinkStatus interface { WrappedCoreStandbyStates SetHCPLinkStatus(status, name string) GetHCPLinkStatus() (string, string) }
type WrappedCoreHCPToken ¶
type WrappedCoreHCPToken interface { Sealed() bool CreateToken(context.Context, *logical.TokenEntry) error WrappedCoreStandbyStates }
type WrappedCoreMeta ¶ added in v1.13.0
type WrappedCoreMeta interface { NamespaceByID(ctx context.Context, nsID string) (*namespace.Namespace, error) ListNamespaces(includePath bool) []*namespace.Namespace ListMounts() ([]*vault.MountEntry, error) ListAuths() ([]*vault.MountEntry, error) HAEnabled() bool HAStateWithLock() consts.HAState GetHAPeerNodesCached() []vault.PeerNode GetRaftConfiguration(ctx context.Context) (*raft.RaftConfigurationResponse, error) GetRaftAutopilotState(ctx context.Context) (*raft.AutopilotState, error) StorageType() string Cluster(ctx context.Context) (*vault.Cluster, error) }
type WrappedCoreNodeStatus ¶
Click to show internal directories.
Click to hide internal directories.