cmd

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecWrapper

func ExecWrapper(f func(ctx *cli.Context) (int, error)) cli.ActionFunc

ExecWrapper mlocks the process memory (if supported) before our `run` functions, and gracefully logs and exits afterwards.

func Get

func Get(ctx *cli.Context) (int, error)

Get the credentials from Vault or statefile

func Status

func Status(ctx *cli.Context) (int, error)

Status ..

func Switch

func Switch(ctx *cli.Context) (int, error)

Switch ..

Types

type Config

type Config struct {
	Engine    string
	Role      string
	StatePath string
}

Config ..

type GetConfig

type GetConfig struct {
	*Config
	TTL           time.Duration
	MinTTL        time.Duration
	ForceGenerate bool
}

GetConfig ..

type Output

type Output struct {
	Version         int
	AccessKeyID     string `json:"AccessKeyId"`
	SecretAccessKey string
	SessionToken    string
	Expiration      time.Time
}

Output ..

Jump to

Keyboard shortcuts

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