hashicorp

package
v0.0.0-...-cb0dfba Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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

func NewEARFormat(source string) formatter.Format

NewEARFormat for formatting output

func NewEITFormat

func NewEITFormat(source string) formatter.Format

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) Address

func (c *EARContext) Address() string

Address fetches HCV address

func (*EARContext) AuthNamespace

func (c *EARContext) AuthNamespace() string

AuthNamespace fetches HCV auth namespace

func (*EARContext) Engine

func (c *EARContext) Engine() string

Engine fetches HCV engine

func (*EARContext) KeyName

func (c *EARContext) KeyName() string

KeyName fetches HCV key name

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) RoleID

func (c *EARContext) RoleID() string

RoleID fetches HCV roleID

func (*EARContext) SecretID

func (c *EARContext) SecretID() string

SecretID fetches HCV secretID

func (*EARContext) TTL

func (c *EARContext) TTL() string

TTL fetches HCV TTL

func (*EARContext) TTLExpiry

func (c *EARContext) TTLExpiry() string

TTLExpiry fetches HCV TTL expiry

func (*EARContext) Token

func (c *EARContext) Token() string

Token fetches HCV token

type EITContext

EITContext for provider outputs

func NewEITContext

func NewEITContext() *EITContext

NewEITContext creates a new context for rendering provider

func (*EITContext) Engine

func (c *EITContext) Engine() string

Engine fetches HCV engine

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) Role

func (c *EITContext) Role() string

Role fetches HCV role

func (*EITContext) VaultAddress

func (c *EITContext) VaultAddress() string

VaultAddress fetches HCV vault address

Jump to

Keyboard shortcuts

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