utils

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VaultClient

type VaultClient struct {
	AuthType string // Authentication type
	URL      string // Tenant URL
	AppID    string // OAuth2 application id
	Scope    string // OAuth2 or DMC scope definition name
	Token    string // OAuth2 or DMC token
	User     string // User to run the command as (or OAuth2 client if requesting a token)
	Password string // Password for user (or OAuth2 client secret if requesting a token)
	Skipcert bool   // Whether to skip certificate validation
	Debug    bool
	// contains filtered or unexported fields
}

VaultClient represents vault client structure

func (*VaultClient) GetClient

func (c *VaultClient) GetClient() (*restapi.RestClient, error)

GetClient returns REST client

func (*VaultClient) GetCmdParms

func (c *VaultClient) GetCmdParms()

GetCmdParms parse command line argument

Jump to

Keyboard shortcuts

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