Documentation ¶
Index ¶
- func CreateConjurRc(account string, url string, selfSignedCert bool, authnLDAP string) error
- func CreateNetRc(username string, password string) error
- func EnableAuthenticator(serviceID string) error
- func GetAccountFromConjurRc(conjurrcFileName string) string
- func GetCertFromConjurRc(conjurrcFileName string) string
- func GetConjurClient() (*conjurapi.Client, *authn.LoginPair, error)
- func GetConjurPemPath(homeDir string, account string) string
- func GetConjurRcPath(homeDir string) string
- func GetHomeDirectory() (string, error)
- func GetNetRcPath(homeDir string) string
- func GetURLFromConjurRc(conjurrcFileName string) string
- func Info() (map[string]interface{}, error)
- func Login(authnURL string, account string, username string, password []byte, ...) ([]byte, error)
- func Whoami() (map[string]interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateConjurRc ¶
CreateConjurRc creates a ~/.conjurrc file
func CreateNetRc ¶
CreateNetRc create a conjur netrc file
func EnableAuthenticator ¶
EnableAuthenticator enable a specific authenticator in conjur. e.g. serviceID: authn-iam/prod or authn-k8s/k8s-cluster-1
func GetAccountFromConjurRc ¶
GetAccountFromConjurRc retrieve conjur account from the ~/.conjurrc file
func GetCertFromConjurRc ¶
GetCertFromConjurRc retrieve conjur certificate from the ~/.conjurrc file, is empty if no cert will be used
func GetConjurClient ¶
GetConjurClient creates a Conjur API client and login pair from environment variables, an authenticator, or .netrc & .conjurrc files
func GetConjurPemPath ¶
GetConjurPemPath returns path to the ~/conjur-<account>.pem file os-agnostic
func GetConjurRcPath ¶
GetConjurRcPath returns path to the ~/.conjurrc file os-agnostic
func GetHomeDirectory ¶
GetHomeDirectory gets the proper user home directory regardless of GOOS
func GetNetRcPath ¶
GetNetRcPath returns path to the ~/.conjurrc file os-agnostic
func GetURLFromConjurRc ¶
GetURLFromConjurRc retrieve conjur url from the ~/.conjurrc file
Types ¶
This section is empty.