provider

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2021 License: MIT Imports: 8 Imported by: 0

README

github.com/cyberark/summon/provider

Functions to resolve and call a Summon provider.

func Resolve(providerArg string) (string, error)

Searches for a provider in this order:

  1. providerArg, passed in via CLI
  2. Environment variable SUMMON_PROVIDER
  3. Executable in /usr/local/lib/summon (or %ProgramW6432%\Cyberark Conjur\Summon\Providers on Windows).

func Call(provider, specPath string) (string, error)

Given a provider and secret's namespace, runs the provider to resolve the secret's value.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPath = getDefaultPath()

DefaultPath returns the default path where providers are located

Functions

func Call

func Call(provider, specPath string) (string, error)

Call shells out to a provider and return its output If call succeeds, stdout is returned with no error If call fails, "" is return with error containing stderr

func GetAllProviders added in v0.8.2

func GetAllProviders(providerDir string) ([]string, error)

GetAllProviders creates slice of all file names in the default path

func Resolve

func Resolve(providerArg string) (string, error)

Resolve resolves a filepath to a provider Checks the CLI arg, environment and then default path

Types

This section is empty.

Jump to

Keyboard shortcuts

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