credentials

package
v0.0.0-...-811c986 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

The package credentials provides encryption for mergo The main utility you will find is to save, get and delete user's credentials You should use these functions when managing user's credentials since they come with their way of handling encryption

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoHostConfig = errors.New("no config for given host")
)

Functions

func DeleteHostConfig

func DeleteHostConfig(host string) error

DeletedHostConfig takes a host name and deletes its credentials

func GetHostConfig

func GetHostConfig(host string) ([]byte, error)

GetHostConfig returns the credentials stored for the host 'host'

func WriteHostConfig

func WriteHostConfig(host string, content []byte) error

WriteHostConfig writes the config 'content' as the credentials for the host 'host'

Types

This section is empty.

Jump to

Keyboard shortcuts

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