Documentation ¶
Index ¶
- Constants
- func NewEARFormat(source string) formatter.Format
- func NewEITFormat(source string) formatter.Format
- type EARContext
- func (c *EARContext) Address() string
- func (c *EARContext) AuthNamespace() string
- func (c *EARContext) Engine() string
- func (c *EARContext) KeyName() string
- func (c *EARContext) MarshalJSON() ([]byte, error)
- func (c *EARContext) MountPath() string
- func (c *EARContext) RoleID() string
- func (c *EARContext) SecretID() string
- func (c *EARContext) TTL() string
- func (c *EARContext) TTLExpiry() string
- func (c *EARContext) Token() string
- type EITContext
Constants ¶
View Source
const ( // EIT provides header for EIT cert info EIT = "table {{.Engine}}\t{{.MountPath}}\t{{.Role}}\t{{.VaultAddress}}\t{{.Token}}" // EAR1 for HcVaultAuthConfigField listing EAR1 = "table {{.Address}}\t{{.Engine}}" // EAR2 for HcVaultAuthConfigField listing EAR2 = "table {{.MountPath}}\t{{.KeyName}}" // EAR3 for HcVaultAuthConfigField listing EAR3 = "table {{.Token}}" // EAR4 for HcVaultAuthConfigField listing EAR4 = "table {{.RoleID}}\t{{.SecretID}}\t{{.AuthNamespace}}" // EAR5 for HcVaultAuthConfigField listing EAR5 = "table {{.TTL}}\t{{.TTLExpiry}}" )
Variables ¶
This section is empty.
Functions ¶
func NewEARFormat ¶
NewEARFormat for formatting output
func NewEITFormat ¶
NewEITFormat for formatting output
Types ¶
type EARContext ¶
type EARContext struct { formatter.HeaderContext formatter.Context Hashicorp util.HcVaultAuthConfigField }
EARContext for provider outputs
func NewEARContext ¶
func NewEARContext() *EARContext
NewEARContext creates a new context for rendering provider
func (*EARContext) AuthNamespace ¶
func (c *EARContext) AuthNamespace() string
AuthNamespace fetches HCV auth namespace
func (*EARContext) MarshalJSON ¶
func (c *EARContext) MarshalJSON() ([]byte, error)
MarshalJSON function
func (*EARContext) MountPath ¶
func (c *EARContext) MountPath() string
MountPath fetches HCV mount path
func (*EARContext) TTLExpiry ¶
func (c *EARContext) TTLExpiry() string
TTLExpiry fetches HCV TTL expiry
type EITContext ¶
type EITContext struct { formatter.HeaderContext formatter.Context Hashicorp ybaclient.HashicorpVaultConfigParams }
EITContext for provider outputs
func NewEITContext ¶
func NewEITContext() *EITContext
NewEITContext creates a new context for rendering provider
func (*EITContext) MarshalJSON ¶
func (c *EITContext) MarshalJSON() ([]byte, error)
MarshalJSON function
func (*EITContext) MountPath ¶
func (c *EITContext) MountPath() string
MountPath fetches HCV mount path
func (*EITContext) VaultAddress ¶
func (c *EITContext) VaultAddress() string
VaultAddress fetches HCV vault address
Click to show internal directories.
Click to hide internal directories.