config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnv

func GetEnv(key string) (string, error)

GetEnv gets an environment variable or returns an error if unset

func GetSSHizzleDir

func GetSSHizzleDir() (string, error)

GetSSHizzleDir returns the path to the sshizzle config dir

func GetSSHizzleTokenFile

func GetSSHizzleTokenFile() (string, error)

GetSSHizzleTokenFile returns the filename of the token cache

Types

type SSHizzleConfig

type SSHizzleConfig struct {
	Socket      string
	TenantID    string
	ClientID    string
	FuncHost    string
	Signer      ssh.Signer
	OauthConfig *oauth2.Config
}

SSHizzleConfig contains information required to authenticate with Azure AD and invoke the lambda function

func Check

func Check() (*SSHizzleConfig, error)

Check gets config from environment variables and creates sshizzle config dir

Jump to

Keyboard shortcuts

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