vault

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigSchema = map[string]*schema.Attribute{
	"address": {
		Type: schema.TypeString,
	},
	"token": {
		Type: schema.TypeString,
	},
}

Functions

func ConfigInstance

func ConfigInstance() interface{}

func GetConfig

func GetConfig(connection *plugin.Connection) vaultConfig

func Plugin

func Plugin(ctx context.Context) *plugin.Plugin

Types

type AuthMethod

type AuthMethod struct {
	Path                  string
	Type                  string
	Description           string
	Accessor              string
	Local                 bool
	SealWrap              bool
	ExternalEntropyAccess bool
	DefaultTtl            int
	MaxTtl                int
	RequestHeaders        []string
}

type AwsRole

type AwsRole struct {
	Path                   string
	Role                   string
	CredentialType         string
	DefaultStsTtl          int64
	MaxStsTtl              int64
	PolicyDocument         string
	UserPath               string
	PermissionsBoundaryArn string
	RoleArns               []string
	PolicyArns             []string
	IamGroups              []string
}

type AzureConfig

type AzureConfig struct {
	Path           string
	SubscriptionId string
	TenantId       string
	ClientId       string
	Environment    string
}

type AzureRole

type AzureRole struct {
	Path string
	Role string
}

type Engine

type Engine struct {
	Path        string
	Type        string
	Description string
	Accessor    string
	Version     int64
	Local       bool
	SealWrap    bool
	DefaultTtl  int
	MaxTtl      int
}

type KvSecret

type KvSecret struct {
	Key          string
	Path         string
	CreatedTime  time.Time
	DeletionTime time.Time
	Destroyed    bool
	Version      int64
}

The structure of a KV secret. Key is the path within the mountpoint. Path is the name of the engine

type PkiCert

type PkiCert struct {
	Path          string
	Serial        string
	RequestID     string
	LeaseID       string
	LeaseDuration int64
	Renewable     bool
}

Types

type PkiRole

type PkiRole struct {
	Path             string
	Name             string
	AllowAnyName     bool
	AllowIpSans      bool
	AllowLocalhost   bool
	AllowSubDomains  bool
	AllowedDomains   []string
	AllowedUriSans   []string
	AllowedOtherSans []string
	ClientFlag       bool
	CodeSigningFlag  bool
	KeyBits          int64
	KeyType          string
	Ttl              int64
	MaxTtl           int64
	ServerFlag       bool
}

Types

type SecretPath

type SecretPath struct {
	Engine string
	Path   string
}

type SysHealth

type SysHealth struct {
	Initialized                bool
	Sealed                     bool
	Standby                    bool
	PerformanceStandby         bool
	ReplicationPerformanceMode string
	ReplicationDrMode          string
	ServerTimeUtc              int64
	Version                    string
	ClusterName                string
	ClusterID                  string
}

Jump to

Keyboard shortcuts

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