internal

package
v1.14.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

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

type WrappedCoreNodeStatus interface {
	ActiveTime() time.Time
	GetSealStatus(ctx context.Context) (*vault.SealStatusResponse, error)
	IsRaftVoter() bool
	ListenerAddresses() ([]string, error)
	LogLevel() string
	ReplicationState() consts.ReplicationState
}

type WrappedCoreStandbyStates

type WrappedCoreStandbyStates interface {
	StandbyStates() (bool, bool)
}

Jump to

Keyboard shortcuts

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