a034ebfd27
* HCP link integration * update configure-git.yml * more OSS stuff * removing internal repos * adding a nil check * removing config test to be included in ENT only * updating hcp-sdk-go to v0.22.0 * remove Hostname and AuthURL link config params Co-authored-by: Chris Capurso <1036769+ccapurso@users.noreply.github.com>
49 lines
1.2 KiB
Go
49 lines
1.2 KiB
Go
package internal
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/hashicorp/vault/helper/namespace"
|
|
"github.com/hashicorp/vault/sdk/helper/consts"
|
|
"github.com/hashicorp/vault/sdk/logical"
|
|
"github.com/hashicorp/vault/vault"
|
|
)
|
|
|
|
type WrappedCoreNodeStatus interface {
|
|
GetSealStatus(ctx context.Context) (*vault.SealStatusResponse, error)
|
|
ReplicationState() consts.ReplicationState
|
|
}
|
|
|
|
var _ WrappedCoreNodeStatus = &vault.Core{}
|
|
|
|
type WrappedCoreStandbyStates interface {
|
|
StandbyStates() (bool, bool)
|
|
}
|
|
|
|
var _ WrappedCoreStandbyStates = &vault.Core{}
|
|
|
|
type WrappedCoreHCPToken interface {
|
|
Sealed() bool
|
|
CreateToken(context.Context, *logical.TokenEntry) error
|
|
WrappedCoreStandbyStates
|
|
}
|
|
|
|
var _ WrappedCoreHCPToken = &vault.Core{}
|
|
|
|
type WrappedCoreListNamespacesMounts interface {
|
|
NamespaceByID(ctx context.Context, nsID string) (*namespace.Namespace, error)
|
|
ListNamespaces(includePath bool) []*namespace.Namespace
|
|
ListMounts() ([]*vault.MountEntry, error)
|
|
ListAuths() ([]*vault.MountEntry, error)
|
|
}
|
|
|
|
var _ WrappedCoreListNamespacesMounts = &vault.Core{}
|
|
|
|
type WrappedCoreHCPLinkStatus interface {
|
|
WrappedCoreStandbyStates
|
|
SetHCPLinkStatus(status, name string)
|
|
GetHCPLinkStatus() (string, string)
|
|
}
|
|
|
|
var _ WrappedCoreHCPLinkStatus = &vault.Core{}
|