visa

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	VisaAppKeyFileEnv     = "VISA_APP_KEY_FILE"
	VisaAppCertFileEnv    = "VISA_APP_CERT_FILE"
	VisaAppUserIDEnv      = "VISA_APP_USERID"
	VisaAppPasswordEnv    = "VISA_APP_PASSWORD" // #nosec G101
	VDPCACertFileEnv      = "VISA_VDP_CA_CERT_FILE"
	GeoTrustCACertFileEnv = "VISA_GEOTRUST_CA_CERT_FILE"
)

Functions

func NewClientEnv

func NewClientEnv() (*http.Client, error)

Types

type Config

type Config struct {
	AppKeyFile    string
	AppCertFile   string
	VDPCACertFile string
	CACertFile    string
	Username      string
	Password      string
}

func ConfigFromEnv

func ConfigFromEnv() Config

func (Config) NewClient added in v0.20.3

func (cfg Config) NewClient() (*http.Client, error)

Jump to

Keyboard shortcuts

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